1
What is the primary purpose of Git?
A. To run Python scripts
B. To browse the internet
C. To version control and track changes in code
D. To edit text files
Correct Answer: To version control and track changes in code
Explanation:
Git is a distributed version control system used to track changes in source code during software development.
2
Which command is used to initialize a new local Git repository?
A. git boot
B. git init
C. git start
D. git new
Correct Answer: git init
Explanation:
The 'git init' command creates a new empty Git repository or reinitializes an existing one.
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 for images, GitHub is for text
C. Git is a web service, GitHub is a command line tool
D. They are the same thing
Correct Answer: Git is a version control tool, GitHub is a cloud hosting service for Git repositories
Explanation:
Git is the local tool used for version control, while GitHub is a web-based platform that hosts Git repositories.
4
Which command adds a specific file named 'index.html' to the staging area?
A. git add index.html
B. git push index.html
C. git commit index.html
D. git stage index.html
Correct Answer: git add index.html
Explanation:
The 'git add' command adds a change in the working directory to the staging area.
5
What is the purpose of the '-m' flag in the command 'git commit -m'?
A. To modify a file
B. To move files
C. To merge branches
D. To provide a commit message
Correct Answer: To provide a commit message
Explanation:
The '-m' flag allows the user to associate a descriptive message with the commit to explain what changes were made.
6
How do you check the current state of the working directory and staging area?
A. git status
B. git info
C. git state
D. git check
Correct Answer: git status
Explanation:
'git status' displays the state of the working directory and the staging area, showing which changes have been staged and which haven't.
7
Which command creates a new branch named 'feature-login'?
A. git new feature-login
B. git branch feature-login
C. git checkout feature-login
D. git create feature-login
Correct Answer: git branch feature-login
Explanation:
The 'git branch' command followed by a name creates a new branch pointer.
8
What is the purpose of creating a branch in Git?
A. To encrypt the code
B. To work on a new feature continuously without affecting the main codebase
C. To speed up the internet connection
D. To delete the repository
Correct Answer: To work on a new feature continuously without affecting the main codebase
Explanation:
Branching allows developers to diverge from the main line of development and continue work without messing up the main branch.
9
After creating a commit, where are the changes saved?
A. In the staging area
B. On GitHub immediately
C. In the local repository history
D. In the recycle bin
Correct Answer: In the local repository history
Explanation:
A commit saves the changes from the staging area into the local repository's history timeline.
10
To configure your username in Git, which command should you use?
A. git identity 'Your Name'
B. git set user 'Your Name'
C. git name 'Your Name'
D. git config --global user.name 'Your Name'
Correct Answer: git config --global user.name 'Your Name'
Explanation:
Git config is used to set configuration variables that control all aspects of how Git looks and operates.
11
Artificial Intelligence (AI) is best described as:
A. A database management system
B. A programming language
C. Simulation of human intelligence processes by machines
D. The study of hardware components
Correct Answer: Simulation of human intelligence processes by machines
Explanation:
AI refers to the simulation of human intelligence in machines that are programmed to think like humans and mimic their actions.
12
Which of the following is a real-life application of AI used in email services?
A. Spam filtering
B. Displaying the date
C. Changing fonts
D. Saving drafts
Correct Answer: Spam filtering
Explanation:
Email providers use AI algorithms to analyze email content and metadata to filter out spam and phishing attempts.
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
Correct Answer: Generative AI creates new content (text, images, audio)
Explanation:
While traditional AI often classifies or predicts based on existing data, Generative AI creates new data instances.
14
Which of the following is a type of Generative AI model specifically for text?
A. LLM (Large Language Model)
B. Decision Tree
C. CNN
D. Regression Model
Correct Answer: LLM (Large Language Model)
Explanation:
LLMs, like GPT-4, are designed to understand and generate human-like text.
15
DALL-E and Midjourney are examples of what type of Generative AI tools?
A. Audio Synthesis
B. Code Generation
C. Image Generation
D. Text Generation
Correct Answer: Image Generation
Explanation:
Both DALL-E and Midjourney are AI systems capable of generating images from natural language descriptions (prompts).
16
Which tool is primarily known for AI-assisted text generation and conversation?
A. Figma
B. Stable Diffusion
C. ChatGPT
D. Runway Gen-2
Correct Answer: ChatGPT
Explanation:
ChatGPT is a chatbot and text generation tool developed by OpenAI.
17
Which Generative AI tool is best suited for creating videos from text prompts?
A. GitHub Copilot
B. Grammarly
C. Sora or Runway
D. Audacity
Correct Answer: Sora or Runway
Explanation:
Tools like OpenAI's Sora or Runway Gen-2 specialize in generating video content from text instructions.
18
What is the primary advantage of using Perplexity AI for research?
A. It generates images only
B. It is a social media platform
C. It provides real-time search results with citations
D. It writes code exclusively
Correct Answer: It provides real-time search results with citations
Explanation:
Perplexity AI functions as an answer engine that searches the web and provides citations for the information it retrieves.
19
NotebookLM by Google is designed primarily to:
A. Interact with and analyze your own uploaded documents
B. Create 3D models
C. Generate music
D. Edit videos
Correct Answer: Interact with and analyze your own uploaded documents
Explanation:
NotebookLM allows users to upload documents (like PDFs) and acts as an AI research assistant grounded in those specific sources.
20
JenniAI is a tool most commonly used for:
A. Academic writing and research assistance
B. Video conferencing
C. Debugging Java code
D. Creating logos
Correct Answer: Academic writing and research assistance
Explanation:
JenniAI is an AI writing assistant designed to help with academic papers, ensuring citations and overcoming writer's block.
21
What is 'Prompt Engineering'?
A. Building hardware for AI
B. Writing code in Python
C. The practice of designing inputs for AI models to get optimal outputs
D. Installing AI software
Correct Answer: The practice of designing inputs for AI models to get optimal outputs
Explanation:
Prompt engineering involves crafting precise and effective text prompts to guide Generative AI models to produce desired results.
22
Which of the following represents a 'Good Prompt'?
A. Write a story.
B. Tell me about space.
C. Make it cool.
D. Write a 500-word science fiction story about a colony on Mars, focusing on a botanist's discovery.
Correct Answer: Write a 500-word science fiction story about a colony on Mars, focusing on a botanist's discovery.
Explanation:
A good prompt is specific, provides context, sets constraints (length), and defines the topic clearly.
23
An ethical concern regarding the use of Generative AI is:
A. It consumes too much electricity only at night
B. Bias in training data leading to unfair outputs
C. It is too slow
D. It requires internet
Correct Answer: Bias in training data leading to unfair outputs
Explanation:
AI models can inherit biases present in the data they were trained on, leading to discriminatory or unfair results.
24
Figma is a platform primarily used for:
A. Competitive coding
B. Hosting databases
C. Version control
D. Interface design (UI/UX) and prototyping
Correct Answer: Interface design (UI/UX) and prototyping
Explanation:
Figma is a popular web-based vector graphics editor and prototyping tool used for UI/UX design.
25
Stack Overflow is best described as:
A. A Q&A community for developers
B. An IDE
C. A version control system
D. A video hosting site
Correct Answer: A Q&A community for developers
Explanation:
Stack Overflow is a question-and-answer website for professional and enthusiast programmers.
26
Which platform is primarily known for hosting competitive programming challenges and hackathons?
A. HackerRank
B. Dropbox
C. Pinterest
D. Figma
Correct Answer: HackerRank
Explanation:
HackerRank focuses on competitive programming challenges for both consumers and businesses.
27
GeeksforGeeks is a popular resource for:
A. Buying hardware
B. Computer Science tutorials and interview preparation
C. Social networking
D. Creating 3D animations
Correct Answer: Computer Science tutorials and interview preparation
Explanation:
GeeksforGeeks provides articles, tutorials, and coding problems focused on computer science subjects.
28
LeetCode is widely used by software engineers to:
A. Prepare for technical interviews through coding problems
B. Design logos
C. Manage project teams
D. Edit videos
Correct Answer: Prepare for technical interviews through coding problems
Explanation:
LeetCode is a platform for practicing coding skills and preparing for technical job interviews.
29
Which command is used to switch from one branch to another in Git?
A. git move
B. git switch or git checkout
C. git jump
D. git select
Correct Answer: git switch or git checkout
Explanation:
To switch branches, you use 'git checkout <branch_name>' or the newer 'git switch <branch_name>'.
30
What is a 'Hallucination' in the context of AI?
A. When the AI becomes sentient
B. When the AI runs too fast
C. When the AI crashes
D. When the AI generates confident but factually incorrect information
Correct Answer: When the AI generates confident but factually incorrect information
Explanation:
Hallucination refers to instances where an AI model generates false information that is not based on its training data or reality.
31
Which tool would be best for an animation studio looking to use AI for lip-syncing avatars?
A. Excel
B. Stack Overflow
C. Synthesia
D. PowerPoint
Correct Answer: Synthesia
Explanation:
Synthesia is an AI video generation platform that specializes in creating AI avatars with accurate lip-syncing.
32
In Prompt Engineering, what is 'Persona' adoption?
A. Creating a new login
B. Asking the AI to act as a specific character or professional (e.g., 'Act as a Senior Developer')
C. Hacking a user's account
D. Ignoring the AI
Correct Answer: Asking the AI to act as a specific character or professional (e.g., 'Act as a Senior Developer')
Explanation:
Assigning a persona helps the AI understand the context, tone, and level of expertise required for the response.
33
HackerEarth is similar to HackerRank in that it helps with:
A. Graphic Design
B. Music streaming
C. Assessment, coding interviews, and hackathons
D. Cloud storage
Correct Answer: Assessment, coding interviews, and hackathons
Explanation:
HackerEarth provides enterprise software that helps organizations with technical recruitment and innovation management.
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
Correct Answer: git push
Explanation:
'git push' is used to upload local repository content to a remote repository.
35
What file is used to tell Git which files to ignore?
A. .gitkeep
B. .gitignore
C. .gitremove
D. .gitconfig
Correct Answer: .gitignore
Explanation:
A .gitignore file specifies intentionally untracked files that Git should ignore.
36
Which of the following is NOT a Generative AI type?
A. Text-to-Image
B. Text-to-Video
C. Calculator-to-Math
D. Text-to-Text
Correct Answer: Calculator-to-Math
Explanation:
Calculator-to-Math is not a standard classification of Generative AI; the others are established modalities.
37
Which AI research tool uses a 'knowledge graph' approach to find connections in data?
A. Notepad
B. Paint
C. NotebookLM
D. Elicit or similar research tools
Correct Answer: Elicit or similar research tools
Explanation:
While Perplexity and NotebookLM are listed, tools in this category analyze research papers to find connections.
38
What is a 'Zero-shot' prompt?
A. A prompt with no text
B. A prompt meant for image generation only
C. Asking the AI to do a task without providing examples
D. A prompt that fails
Correct Answer: Asking the AI to do a task without providing examples
Explanation:
Zero-shot prompting involves giving the model a task to perform without any prior examples of how to do it.
39
Why is creating a professional profile on GitHub important for developers?
A. To play games
B. To get more likes
C. To serve as a portfolio of code and collaboration history for recruiters
D. To store large video files
Correct Answer: To serve as a portfolio of code and collaboration history for recruiters
Explanation:
A GitHub profile acts as a resume for developers, showcasing their actual coding skills and contributions.
40
Which of the following is a popular Text-to-Image model developed by Stability AI?
A. Stable Diffusion
B. GPT-4
C. Bard
D. Llama 2
Correct Answer: Stable Diffusion
Explanation:
Stable Diffusion is a deep learning, text-to-image model released by Stability AI.
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. Claim the code is entirely their own
D. Copy paste without looking
Correct Answer: Review, test, and understand the code before using it
Explanation:
AI can generate insecure or incorrect code; developers must verify it.
42
What command allows you to download an existing remote repository to your local machine?
A. git clone
B. git download
C. git copy
D. git fork
Correct Answer: git clone
Explanation:
'git clone' creates a copy of an existing Git repository.
43
Which symbol is often used in a prompt to indicate a variable or placeholder?
A. [ ] or { }
B. @
C. $
D. #
Correct Answer: [ ] or { }
Explanation:
Brackets are commonly used in prompt engineering templates to indicate where specific information should be inserted.
44
What is the main benefit of using NotebookLM over a standard chat bot?
A. It is grounded in the specific sources you upload
B. It has access to the entire dark web
C. It generates 4K video
D. It is funnier
Correct Answer: It is grounded in the specific sources you upload
Explanation:
NotebookLM restricts its answers to the context of the documents provided, reducing hallucinations.
45
Which platform uses a 'reputation points' system to grade user contributions?
A. Stack Overflow
B. Paint
C. Notepad++
D. Git Bash
Correct Answer: Stack Overflow
Explanation:
Stack Overflow rewards users with reputation points for asking good questions and providing helpful answers.
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
Correct Answer: Natural Language Processing
Explanation:
NLP is a branch of AI concerned with the interactions between computers and human language.
47
A 'poor prompt' usually suffers from:
A. Using correct grammar
B. Being too long
C. Vagueness and lack of context
D. Being polite
Correct Answer: Vagueness and lack of context
Explanation:
Vague prompts lead to generic or irrelevant outputs because the AI doesn't know exactly what is required.
48
Which command lists all the branches in your repository?
A. git show
B. git branch
C. git list
D. git all
Correct Answer: git branch
Explanation:
Running 'git branch' without arguments lists local branches.
49
What is the role of a 'Diff' in version control?
A. To compile code
B. To show the difference between two versions of a file
C. To delete files
D. To run the program
Correct Answer: To show the difference between two versions of a file
Explanation:
A diff function shows the changes line-by-line between commits or the working tree.
50
Which tool is used for AI-generated music and audio?
A. GitHub
B. PowerBI
C. Suno or Udio
D. Excel
Correct Answer: Suno or Udio
Explanation:
Suno and Udio are examples of generative AI tools specifically designed to create music and audio.