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 browse the internet
B. To version control and track changes in code
C. To run Python scripts
D. To edit text files

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

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

3 What is the difference between Git and GitHub?

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

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

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

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

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

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

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

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

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

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

A. To delete the repository
B. To work on a new feature continuously without affecting the main codebase
C. To encrypt the code
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. On GitHub immediately
D. In the recycle bin

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

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

11 Artificial Intelligence (AI) is best described as:

A. A database management system
B. A programming language
C. The study of hardware components
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. Saving drafts
B. Displaying the date
C. Changing fonts
D. Spam filtering

13 What distinguishes Generative AI from traditional AI?

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

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

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

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

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

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

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

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 is a social media platform
B. It provides real-time search results with citations
C. It generates images only
D. It writes code exclusively

19 NotebookLM by Google is designed primarily to:

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

20 JenniAI is a tool most commonly used for:

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

21 What is 'Prompt Engineering'?

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

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

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

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

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

24 Figma is a platform primarily used for:

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

25 Stack Overflow is best described as:

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

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

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

27 GeeksforGeeks is a popular resource for:

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

28 LeetCode is widely used by software engineers to:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

38 What is a 'Zero-shot' prompt?

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

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 get more likes
C. To play games
D. To store large video files

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

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

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

A. Copy paste without looking
B. Ignore security warnings
C. Review, test, and understand the code before using it
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 copy
B. git clone
C. git fork
D. git download

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. Paint
B. Git Bash
C. Stack Overflow
D. Notepad++

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

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

47 A 'poor prompt' usually suffers from:

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

48 Which command lists all the branches in your repository?

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

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

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

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

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