Unit 6: Version Control - Practice Quiz

CSE111 — Orientation To Computing-I 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary purpose of Git?

A. To version control and track changes in code
B. To edit text files
C. To browse the internet
D. To run Python scripts

2 Which command is used to initialize a new local Git repository?

A. git init
B. git start
C. git boot
D. git new

3 What is the difference between Git and GitHub?

A. Git is for images, GitHub is for text
B. Git is a web service, GitHub is a command line tool
C. Git is a version control tool, GitHub is a cloud hosting service for Git repositories
D. They are the same thing

4 Which command adds a specific file named 'index.html' to the staging area?

A. git commit index.html
B. git push index.html
C. git stage index.html
D. git add index.html

5 What is the purpose of the '-m' flag in the command 'git commit -m'?

A. To merge branches
B. To provide a commit message
C. To move files
D. To modify a file

6 How do you check the current state of the working directory and staging area?

A. git state
B. git check
C. git info
D. git status

7 Which command creates a new branch named 'feature-login'?

A. git new feature-login
B. git create feature-login
C. git branch feature-login
D. git checkout feature-login

8 What is the purpose of creating a branch in Git?

A. To delete the repository
B. To encrypt the code
C. To work on a new feature continuously without affecting the main codebase
D. To speed up the internet connection

9 After creating a commit, where are the changes saved?

A. In the staging area
B. In the local repository history
C. In the recycle bin
D. On GitHub immediately

10 To configure your username in Git, which command should you use?

A. git config --global user.name 'Your Name'
B. git identity 'Your Name'
C. git name 'Your Name'
D. git set user 'Your Name'

11 Artificial Intelligence (AI) is best described as:

A. The study of hardware components
B. A programming language
C. A database management system
D. Simulation of human intelligence processes by machines

12 Which of the following is a real-life application of AI used in email services?

A. Spam filtering
B. Displaying the date
C. Saving drafts
D. Changing fonts

13 What distinguishes Generative AI from traditional AI?

A. Generative AI creates new content (text, images, audio)
B. Traditional AI creates images
C. Traditional AI is faster
D. Generative AI only analyzes data

14 Which of the following is a type of Generative AI model specifically for text?

A. Regression Model
B. LLM (Large Language Model)
C. Decision Tree
D. CNN

15 DALL-E and Midjourney are examples of what type of Generative AI tools?

A. Image Generation
B. Text Generation
C. Code Generation
D. Audio Synthesis

16 Which tool is primarily known for AI-assisted text generation and conversation?

A. ChatGPT
B. Figma
C. Runway Gen-2
D. Stable Diffusion

17 Which Generative AI tool is best suited for creating videos from text prompts?

A. Sora or Runway
B. Audacity
C. Grammarly
D. GitHub Copilot

18 What is the primary advantage of using Perplexity AI for research?

A. It provides real-time search results with citations
B. It is a social media platform
C. It writes code exclusively
D. It generates images only

19 NotebookLM by Google is designed primarily to:

A. Interact with and analyze your own uploaded documents
B. Edit videos
C. Generate music
D. Create 3D models

20 JenniAI is a tool most commonly used for:

A. Video conferencing
B. Academic writing and research assistance
C. Debugging Java code
D. Creating logos

21 What is 'Prompt Engineering'?

A. Installing AI software
B. The practice of designing inputs for AI models to get optimal outputs
C. Writing code in Python
D. Building hardware for AI

22 Which of the following represents a 'Good Prompt'?

A. Tell me about space.
B. Write a story.
C. Make it cool.
D. Write a 500-word science fiction story about a colony on Mars, focusing on a botanist's discovery.

23 An ethical concern regarding the use of Generative AI is:

A. It requires internet
B. It consumes too much electricity only at night
C. It is too slow
D. Bias in training data leading to unfair outputs

24 Figma is a platform primarily used for:

A. Interface design (UI/UX) and prototyping
B. Version control
C. Hosting databases
D. Competitive coding

25 Stack Overflow is best described as:

A. A version control system
B. A video hosting site
C. A Q&A community for developers
D. An IDE

26 Which platform is primarily known for hosting competitive programming challenges and hackathons?

A. Pinterest
B. Dropbox
C. HackerRank
D. Figma

27 GeeksforGeeks is a popular resource for:

A. Social networking
B. Buying hardware
C. Computer Science tutorials and interview preparation
D. Creating 3D animations

28 LeetCode is widely used by software engineers to:

A. Edit videos
B. Design logos
C. Prepare for technical interviews through coding problems
D. Manage project teams

29 Which command is used to switch from one branch to another in Git?

A. git select
B. git switch or git checkout
C. git jump
D. git move

30 What is a 'Hallucination' in the context of AI?

A. When the AI generates confident but factually incorrect information
B. When the AI becomes sentient
C. When the AI runs too fast
D. When the AI crashes

31 Which tool would be best for an animation studio looking to use AI for lip-syncing avatars?

A. Synthesia
B. Stack Overflow
C. PowerPoint
D. Excel

32 In Prompt Engineering, what is 'Persona' adoption?

A. Asking the AI to act as a specific character or professional (e.g., 'Act as a Senior Developer')
B. Creating a new login
C. Ignoring the AI
D. Hacking a user's account

33 HackerEarth is similar to HackerRank in that it helps with:

A. Graphic Design
B. Music streaming
C. Cloud storage
D. Assessment, coding interviews, and hackathons

34 What is the command to upload local repository content to a remote repository?

A. git push
B. git upload
C. git send
D. git pull

35 What file is used to tell Git which files to ignore?

A. .gitconfig
B. .gitremove
C. .gitignore
D. .gitkeep

36 Which of the following is NOT a Generative AI type?

A. Calculator-to-Math
B. Text-to-Image
C. Text-to-Video
D. Text-to-Text

37 Which AI research tool uses a 'knowledge graph' approach to find connections in data?

A. Notepad
B. NotebookLM
C. Elicit or similar research tools
D. Paint

38 What is a 'Zero-shot' prompt?

A. A prompt meant for image generation only
B. A prompt that fails
C. Asking the AI to do a task without providing examples
D. A prompt with no text

39 Why is creating a professional profile on GitHub important for developers?

A. To serve as a portfolio of code and collaboration history for recruiters
B. To play games
C. To store large video files
D. To get more likes

40 Which of the following is a popular Text-to-Image model developed by Stability AI?

A. Bard
B. Stable Diffusion
C. GPT-4
D. Llama 2

41 When using AI for coding (e.g., via GitHub Copilot), an ethical developer should:

A. Ignore security warnings
B. Review, test, and understand the code before using it
C. Copy paste without looking
D. Claim the code is entirely their own

42 What command allows you to download an existing remote repository to your local machine?

A. git clone
B. git copy
C. git download
D. git fork

43 Which symbol is often used in a prompt to indicate a variable or placeholder?

A. $
B. [ ] or { }
C. @
D. #

44 What is the main benefit of using NotebookLM over a standard chat bot?

A. It is funnier
B. It generates 4K video
C. It is grounded in the specific sources you upload
D. It has access to the entire dark web

45 Which platform uses a 'reputation points' system to grade user contributions?

A. Stack Overflow
B. Git Bash
C. Paint
D. Notepad++

46 In the context of AI, what does NLP stand for?

A. Natural Language Processing
B. Neural Linguistic Programming
C. New Learning Protocol
D. Network Latency Ping

47 A 'poor prompt' usually suffers from:

A. Vagueness and lack of context
B. Being polite
C. Using correct grammar
D. Being too long

48 Which command lists all the branches in your repository?

A. git list
B. git show
C. git branch
D. git all

49 What is the role of a 'Diff' in version control?

A. To compile code
B. To run the program
C. To show the difference between two versions of a file
D. To delete files

50 Which tool is used for AI-generated music and audio?

A. Excel
B. PowerBI
C. GitHub
D. Suno or Udio