Navigating the Git Workflow

In the previous post of this series, you learned how to create a Git repository, stage changes, and make your first commit. Now, let’s dive deeper into understanding the Git workflow.

Explore the Basic Git Commands

1. git init
  • As you’ve learned before, git init initializes a new Git repository in your project folder.
  • It’s a one-time setup for each project.
2. git add
  • Use git add to stage changes you want to include in your next commit.
  • You can add specific files, like git add filename, or all changes with git add ..
3. git commit
  • After staging changes, commit them using git commit.
  • Remember to provide a meaningful commit message: git commit -m "Your commit message here".

Understand the Concept of the Git Workflow

The Git workflow is a series of steps you follow when working with Git to manage your project’s version history.
It helps you keep track of changes, collaborate with others, and maintain a clear history of your project. Here’s a more detailed explanation with examples:

1. Create or Clone a Repository

Creating a New Repository (git init):

  • Imagine you’re starting a new coding project called “MyApp.”
  • You navigate to your project folder in the terminal:

cd path/to/MyApp

  • To initialize a new Git repository, simply run:

git init

Cloning an Existing Repository (git clone):

  • Alternatively, if you want to work on an existing project hosted on a platform like GitHub, you can clone it to your local machine.
  • For instance, if you find a project on GitHub called “AwesomeApp,” you can clone it with:

git clone https://github.com/username/AwesomeApp.git

2. Make Changes

Now that you have a Git repository set up, you can start making changes to your project. For example, you might add new files, modify existing ones, or delete unnecessary ones.

# Create a new file
touch index.html

# Edit an existing file
nano app.js

# Delete a file
rm oldfile.txt

3. Stage Changes (git add)

Not all changes you make are automatically saved in Git. You need to tell Git which changes you want to include in the next commit. This is where the staging area comes in.

  • To stage specific files for a commit, use git add filename:

git add index.html git add app.js

  • To stage all changes, use git add .:

git add .

4. Commit Changes (git commit)

Once you’ve staged your changes, you’re ready to create a commit. A commit is like taking a snapshot of your project at a specific point in time.

git commit -m "Add index.html and update app.js"

Make sure to provide a meaningful commit message. This helps you and others understand what this commit does.

5. View History (git log)

You can use git log to see a history of your commits, including their unique identifiers, authors, timestamps, and commit messages.

git log

6. Collaborate and Share

If you’re working with others, you can push your commits to a remote repository using git push and pull their changes with git pull.

# Push your commits to a remote repository
git push origin main
# Pull changes from a remote repository
git pull origin main

7. Resolve Conflicts (When Needed)

In collaborative projects, sometimes two people may edit the same part of a file, leading to conflicts. Git provides tools to help you resolve these conflicts, ensuring your changes are integrated correctly.

That’s a basic overview of the Git workflow! Remember, Git allows you to manage your project’s history efficiently and collaborate seamlessly with others. As you gain experience, you can explore more advanced features like branching for parallel development.


Question 1: What is the purpose of the staging area in the Git workflow?

a) To automatically save all changes made to your project.
b) To view the commit history of your project.
c) To select which changes should be included in the next commit.
d) To undo all changes made to your project.

Question 2: What command is used to initialize a new Git repository in your project folder?

a) git start
b) git create
c) git init
d) git setup

Question 3: When you create a commit in Git, what should you include in the commit message?

a) Your favorite song lyrics.
b) A brief description of your changes.
c) Your project's entire history.
d) The name of your computer.

Question 4: In the Git workflow, what comes after “View History”?

a) Make Changes
b) Collaborate and Share
c) Stage Changes
d) Resolve Conflicts

Question 5: What command is used to push your commits to a remote repository in Git?

a) git send
b) git upload
c) git push
d) git pull

1C. -2C – 3B – 4B – 5C

Activation functions in Neural Network

Activation functions are a crucial component of artificial neural networks, and they play a fundamental role in determining the output of a neuron or node within the network. Imagine a neural network as a collection of interconnected nodes or neurons, organized into layers. Each neuron takes inputs, processes them, and produces an output that gets passed to the next layer or eventually becomes the final output of the network.

The purpose of an activation function is to introduce non-linearity into the network. Without activation functions, no matter how many layers you add to your neural network, the entire network would behave like a single-layer linear model. In other words, it wouldn’t be able to learn complex patterns and relationships in the data.

Here are some key points to understand about activation functions:

  1. Non-linearity: Activation functions introduce non-linearity to the neural network. This non-linearity allows the network to model and learn complex relationships in the data. Without non-linearity, the network could only learn linear transformations, which are not sufficient for solving many real-world problems.
  2. Thresholding: Activation functions often involve a threshold or a turning point. When the input to a neuron surpasses a certain threshold, the neuron “activates” and produces an output. This activation is what enables the network to make decisions and capture patterns in the data.
  3. Common Activation Functions: There are several common activation functions used in neural networks, including:
    • Sigmoid Function: It produces outputs in the range (0, 1) and is historically used in the output layer for binary classification problems.
    • Hyperbolic Tangent (tanh) Function: Similar to the sigmoid but produces outputs in the range (-1, 1), making it centered around zero.
    • Rectified Linear Unit (ReLU): The most popular activation function, ReLU returns the input for positive values and zero for negative values. It’s computationally efficient and has been successful in many deep learning models.
    • Leaky ReLU: An improved version of ReLU that addresses the “dying ReLU” problem by allowing a small, non-zero gradient for negative inputs.
    • Exponential Linear Unit (ELU): Another variation of ReLU that smooths the negative values to avoid the dying ReLU problem.
  4. Choice of Activation Function: The choice of activation function depends on the problem you’re trying to solve and the architecture of your neural network. ReLU is often a good starting point due to its simplicity and effectiveness, but different problems may benefit from different activation functions.
  5. Activation Functions in Hidden Layers: Activation functions are typically applied to the output of neurons in hidden layers. The choice of activation function in the output layer depends on the type of problem (e.g., sigmoid for binary classification, softmax for multi-class classification, linear for regression).

In summary, activation functions are crucial elements in neural networks that introduce non-linearity, allowing the network to learn complex patterns and make decisions. Understanding how different activation functions work and when to use them is essential for building effective neural network models.


Question 1: What is the primary role of an activation function in a neural network?

A) To calculate the weight updates during training.
B) To introduce non-linearity into the network.
C) To determine the number of hidden layers.
D) To initialize the weights of the neurons.

Question 2: Which of the following activation functions is commonly used in the output layer for binary classification problems?

A) Sigmoid
B) ReLU
C) Tanh
D) Leaky ReLU

Question 3: What is the key benefit of using the ReLU activation function in neural networks?

A) It guarantees convergence during training.
B) It returns values in the range (-1, 1).
C) It smoothly smooths the negative values.
D) It is computationally efficient and helps mitigate the vanishing gradient problem.

Question 4: Which activation function is an improved version of ReLU designed to address the “dying ReLU” problem?

A) Sigmoid
B) Hyperbolic Tangent (tanh)
C) Leaky ReLU
D) Exponential Linear Unit (ELU)

Question 5: In a neural network, where are activation functions typically applied?

A) Only in the input layer.
B) Only in the output layer.
C) Only in the first hidden layer.
D) At the output of neurons in hidden layers.

1B – 2A – 3D – 4C – 5D

The Building Blocks of Neural Networks

Neural networks might seem like a big, scary idea, but in this second post of this series, we’re breaking them down into bite-sized pieces! Imagine it’s like building with colorful blocks!

Explore the layers in a neural network: input, hidden, and output

Imagine a neural network like a sandwich-making robot!

  • Input Layer: This is where we show the robot our ingredients, like bread and fillings. It’s the first stop where data enters the network. It’s where we give our network data to munch on. It’s where we introduce our data to the network. Think of it as the foundation of our structure, where information enters.
  • Hidden Layers: These are like the robot’s secret kitchen. They process the ingredients in a special way, making the sandwich taste just right! The “hidden” layers do secret stuff in between, like solving puzzles. These layers process and learn from the data. They uncover patterns and details that might not be obvious at first glance.
    We can have 0 or more hidden layers, and each hidden layer takes inputs from the previous layer.
  • Output Layer: Here, the robot serves us the final sandwich. It’s what we wanted all along! the “output” layer gives us the answer.
    This is the end result, our network’s way of expressing what it’s learned. It could be an answer to a question or a classification of data.

Understand the Purpose of Activation Functions

Activation functions are like the chef’s special spices! They are used in the hidden layers.

  • Without Activation: Our robot might make bland sandwiches, never too spicy or too mild.
  • With Activation: Now, our chef (the neural network) can add just the right amount of spice to make the sandwich taste amazing!

Activation functions are like buttons in our network. Activation functions are like the glue that holds our blocks together. They decide if a neuron (a tiny decision-maker in the network) should get excited or stay calm, should fire up or stay quiet.
One common button is ReLU, which says, “If you’re positive, be happy; if you’re negative, stay quiet.”, Other functions like Sigmoid, and Tanh help the network make sense of complex data.It helps our network learn better!

Let’s see a simple Python example:

# Imagine we're making a sandwich with two ingredients (input layer)
bread = 2 # Bread slices
filling = 3 # Fillings (cheese, lettuce, etc.)

# Hidden layer - adding them up and doubling the taste!
hidden_layer = (bread + filling) * 2 # activation function
# Output layer - serving our delicious sandwich!
output_layer = hidden_layer

print("Our tasty sandwich has", output_layer, "layers!")

In this fun example, we used Python to show how the input layer (bread and filling) goes through the hidden layer, valuate the inputs, apply a function to them, and gets served in the output layer. Activation functions add that extra flavor!



Question 1: What role does the Input Layer play in a neural network?

A) It serves the final output.
B) It processes data like a secret kitchen.
C) It’s where data enters the network.
D) It adds flavor to the output.

Question 2: What is the purpose of Hidden Layers in a neural network?

A) They serve as the final output.
B) They process data like a secret kitchen.
C) They add extra spice to the robot’s cooking.
D) They let data enter the network.

Question 3: In the context of activation functions, what happens when you don’t use them in a neural network?

A) The robot makes bland sandwiches.
B) The robot serves amazing sandwiches.
C) The robot becomes too smart.
D) The robot becomes too slow.

Question 4: How do activation functions affect the output of a neural network?

A) They make the output extremely spicy.
B) They have no impact on the output.
C) They add just the right amount of “flavor” to the output.
D) They double the output.

Question 5: What is the main purpose of activation functions in a neural network?

A) To make the network run faster.
B) To make the output extremely bland.
C) To add the right amount of flavor to the output.
D) To remove all flavor from the output.

1C – 2B – 3A – 4C – 5C

Operations Fundamentals

Hello, everyone! This time we’re going to explore the fundamentals of IT Operations, a critical component in the world of DevOps.

Introduction to IT Operations

IT Operations, often referred to as Ops, is a crucial part of the DevOps equation. This field focuses on managing and maintaining the infrastructure, servers, networks, and other resources that software applications rely on. The goal of IT Operations is to ensure that these systems run smoothly and efficiently.

Traditional IT vs. DevOps

Let’s start by understanding the key differences between traditional IT and DevOps:

  1. Silos vs. Collaboration: In traditional IT, there are often silos where different teams (e.g., development, operations, and QA) work independently. DevOps encourages collaboration and cross-functional teamwork.
  2. Manual vs. Automated Processes: Traditional IT relies heavily on manual processes, which can be slow and error-prone. DevOps emphasizes automation to speed up tasks and reduce human error.
  3. Long Deployment Cycles vs. Continuous Delivery: Traditional IT tends to have long deployment cycles, with infrequent updates. DevOps enables continuous delivery, allowing for frequent and smaller releases.
  4. Risk Aversion vs. Experimentation: Traditional IT often prioritizes stability over change, fearing that updates might cause disruptions. DevOps embraces experimentation and views change as an opportunity for improvement.

Role of Operations in DevOps

In DevOps, Operations teams play a pivotal role in enabling the continuous delivery of software. Here are some of the key responsibilities of operations within a DevOps context:

  • Infrastructure as Code (IaC): Operations teams use tools like Terraform or Ansible to define and manage infrastructure as code, allowing for consistent and automated provisioning of resources.
  • Automation: Automating repetitive tasks, such as server provisioning, configuration management, and deployment, is essential for DevOps success. Tools like Puppet and Chef are commonly used for configuration management.
  • Monitoring and Alerting: Operations teams implement monitoring solutions to keep an eye on system health and performance. This includes tools like Nagios, Prometheus, and Grafana. When issues arise, automated alerts notify teams for rapid response.
  • Scalability and High Availability: Ensuring that systems can scale horizontally to accommodate increased load and maintain high availability is a core concern of operations. Cloud services like AWS, Azure, and Google Cloud offer resources to achieve this.

Now, it’s your turn to think about how you would automate a task. Consider a scenario where you need to automate a repetitive task in your daily life or at work. What task would you choose, and what programming language or tool would you use?


Now, let’s conclude this post with some questions to test your understanding:

1) What is the primary focus of IT Operations in DevOps?
a) Developing software applications
b) Managing and maintaining infrastructure
c) Providing customer support
d) Creating user interfaces

2) What are the key differences between traditional IT and DevOps?
a) Traditional IT prioritizes risk-taking, while DevOps prioritizes stability.
b) Traditional IT encourages automation, while DevOps relies on manual processes.
c) Traditional IT has silos, while DevOps promotes collaboration.
d) Traditional IT emphasizes frequent and smaller releases, while DevOps prefers infrequent updates.

3) Which of the following tasks is typically automated by DevOps operations teams?
a) Writing code for new software features
b) Monitoring server performance
c) Managing customer support tickets
d) Creating marketing materials

4) What is the purpose of infrastructure as code (IaC) in DevOps?
a) To manually configure servers and networks
b) To automate the provisioning and management of infrastructure
c) To write code for application development
d) To monitor server performance

5) Which of the following tools is commonly used for configuration management in DevOps?
a) Terraform
b) Nagios
c) Python
d) Git

1 b – 2 C – 3 b – 4 b – 5 a

Creating Your First Repository

In this post, we will take our first steps into the world of Git by creating a local Git repository. We will also introduce you to two essential concepts: the staging area and commits.

Create a Local Git Repository

A Git repository is like a folder that tracks changes to your project over time. It helps you manage different versions of your project.

Step 1: Create a New Folder

  1. Open your computer’s file explorer or terminal.
  2. Choose a location where you want to create your project folder.
  3. Right-click (or use the terminal) and create a new folder with a meaningful name. This will be your project’s main folder.

Step 2: Initialize a Git Repository

Now, let’s turn this folder into a Git repository.

  • Open your terminal (command prompt or Git Bash on Windows, or any terminal on macOS/Linux).
  • Navigate to your project folder using the cd command. For example:
cd path/to/your/project-folder

Run the following command to initialize a Git repository:

git init

Congratulations! You’ve just created your first Git repository.

Learn About the Staging Area and Commits

Git uses a staging area to prepare changes before saving them as a commit. A commit is like a snapshot of your project at a specific point in time.

Step 1: Add Files to the Staging Area

  1. Create or add some files to your project folder.
  2. To stage changes, run:
    git add filename

Replace filename with the actual name of your file. You can also use git add . to stage all changes.

Step 2: Create a Commit

After staging your changes, you can create a commit to save them in the Git history.

  • Run the following command:
git commit -m "Your commit message here"

Replace "Your commit message here" with a brief description of your changes. This message helps you and others understand what this commit does.

You’ve just made your first commit!

Congratulations! You’ve taken your first steps into the Git world. Now, your project is tracked, and you can save and manage changes efficiently.


Question 1: What is the purpose of creating a Git repository?

a) To organize files alphabetically.
b) To track changes to your project over time.
c) To delete files.
d) To change file permissions.

Question 2: What does the staging area in Git help you with?

a) It automatically saves all your changes.
b) It prepares changes before saving them as commits.
c) It deletes unwanted files.
d) It renames your project folder.

Question 3: How do you add files to the staging area in Git?

a) By using the `git stash` command.
b) By using the `git add` command.
c) By using the `git push` command.
d) By using the `git remove` command.

Question 4: What is a commit in Git?

a) A snapshot of your project at a specific point in time.
b) A Git repository.
c) A way to rename files.
d) A folder where Git stores its data.

Question 5: Why is it important to include a meaningful commit message?

a) To confuse other collaborators.
b) To make your Git repository larger.
c) To help you and others understand the purpose of the commit.
d) To slow down the commit process.

1 b – 2 b – 3 b – 4 a – 5 c

Software Development Fundamentals

Today we’re going to dive into the fundamental aspects of software development. This post is all about building a fast understanding how software is created and how it relates to DevOps practices.

Introduction to Software Development

Software development is at the core of the DevOps process. Before we can understand DevOps, it’s essential to grasp the basics of software development.

Waterfall vs. Agile methodologies

Historically, software development followed a rigid approach known as the Waterfall methodology.

It was a linear process with distinct phases:

requirements ==> design ==> implementation ==> testing ==> maintenance.

Agile methodologies, on the other hand, introduced a more flexible and iterative approach, emphasizing collaboration, customer feedback, and adaptability.

In DevOps, we often use Agile practices to enable continuous delivery and deployment.

Agile and DevOps Alignment

Agile and DevOps go hand in hand. Agile methodologies promote close collaboration between developers, testers, and stakeholders, encouraging incremental and frequent software releases.

DevOps extends this collaboration to include operations, aiming for the seamless integration of development and IT operations.

Role of Developers in DevOps

Developers play a crucial role in the DevOps journey. They write the code that powers applications and services, but in a DevOps culture, they are also responsible for ensuring that their code can be easily and reliably deployed. This means writing code that is modular, well-documented, and thoroughly tested.


Let’s consider a few key takeaways from today’s post:

1) What is the primary difference between Waterfall and Agile methodologies in software development?
a) Waterfall emphasizes flexibility, while Agile is more structured.
b) Waterfall follows a linear approach, while Agile is iterative and collaborative.
c) Waterfall focuses on continuous deployment, while Agile is more traditional.
d) Waterfall promotes faster development cycles than Agile.

2) In the context of Agile, what is the significance of customer feedback?
a) Customer feedback is not relevant in Agile.
b) Agile teams use customer feedback to improve their products continuously.
c) Customer feedback is only considered after the software is fully developed.
d) Agile teams wait until the end of the project to gather customer feedback.

3) Why is it important for developers to write modular code in DevOps?
a) Modular code is only relevant for large projects.
b) Modular code makes it easier to test and maintain software.
c) Modular code has no impact on DevOps practices.
d) Modular code is a requirement in Waterfall, not DevOps.

4) How does DevOps extend the collaboration introduced by Agile?
a) DevOps focuses on reducing collaboration between teams.
b) DevOps eliminates the need for collaboration altogether.
c) DevOps includes operations teams in the collaboration between development and IT operations.
d) DevOps removes the need for Agile practices.

5) Which of the following best describes the DevOps approach to software development?
a) DevOps replaces software development with IT operations.
b) DevOps focuses solely on writing code.
c) DevOps aims to integrate development and IT operations seamlessly.
d) DevOps eliminates the need for software development.

1 b – 2 b – 3 b – 4 c – 5 c

Setting Up Git

Welcome back, everyone! In today’s post, we’ll focus on getting Git set up on your system and configuring some basic settings. Don’t worry; I’ll explain everything in non-technical terms so that everyone can follow along. Let’s dive right in!

Installing Git

Download Git

  1. Go to the official Git website: https://git-scm.com/.
  2. Look for a prominent download button on the homepage. It’s usually labeled “Download for Windows,” “Download for macOS,” or “Download for Linux” Click on the appropriate one for your operating system.

Installation

For Windows:

  • Once the download is complete, double-click the downloaded file to start the installer.
  • Follow the on-screen instructions, leaving most settings as their default values.
  • When you reach the “Adjusting your PATH environment” screen, choose the “Use Git from the Windows Command Prompt” option. This will make Git accessible from the regular command prompt.

For macOS:

  • Open the downloaded .dmg file.
  • Drag the Git icon into the Applications folder.
  • Open Terminal and type git --version to ensure Git was installed correctly.

For Linux:

  • Use your package manager (e.g., apt, yum, or dnf) to install Git. The command may vary based on your Linux distribution.
  • After installation, open a terminal and type git --version to verify that Git is installed.

Verify Installation

In your terminal or command prompt, type:

git --version

You should see Git’s version information, which confirms that Git is installed on your system.

 ~ % git --version
git version 2.37.1 (Apple Git-137.1)

Configuring Basic Settings

Now that Git is installed, let’s configure some basic settings so that Git knows who you are when you make commits. This helps keep track of who made what changes in a project.

Set Your Name and Email

In your terminal or command prompt, type the following commands, replacing “Your Name” and “Your Email” with your actual name and email address:

git config --global user.name "Your Name" git config --global user.email "Your Email"

These settings are global and will be used for all your Git repositories.

Verify Configuration

To double-check that you’ve set your name and email correctly, type:

git config --global user.name 
git config --global user.email

You should see your name and email displayed on the screen.

That’s it! You’ve successfully installed Git and configured some basic settings. You’re now ready to start using Git for version control in your projects.

In our next post, we’ll learn how to create your first Git repository and make your first commit. Stay tuned!


Let’s recap trying to answer the following questions 🙂

Question 1: What is the purpose of setting your name and email in Git configuration?

a) To customize the appearance of your Git terminal.

b) To set your preferred text editor for Git.

c) To identify yourself as the author of commits.

d) To change the color scheme of Git's user interface.

Question 2: Where can you download Git for your specific operating system?

a) Only from the Mac App Store.

b) The official Git website.

c) Any software download website.

d) The terminal using a command like "git download."

Question 3: Which step is necessary for Windows users during the Git installation process?

a) Choosing a username and password.

b) Selecting the type of version control system.

c) Deciding on the installation path.

d) Configuring Git to work with the Windows Command Prompt.

Question 4: What command should you use to verify if Git is installed correctly on your system?

a) check git installation

b) git --verify

c) git status

d) git --version

Question 5: After configuring your name and email in Git, where can you check to ensure these settings are correctly configured?

a) In your web browser's settings.

b) In the Git configuration file.

c) By running `git config --global user.name` and `git config --global user.email` commands.

d) In your computer's system preferences.

Answers: 1 c – 2 b – 3 d – 4 d – 5 c

Exploring the World of Artificial Intelligence

Understanding the Power and Potential of AI

Welcome to the world of artificial intelligence (AI)! Today, we’re going to embark on an exciting journey to discover what AI is all about and how it impacts our lives. From virtual assistants like Siri and Alexa to self-driving cars and recommendation systems, AI has become an integral part of our modern world.

What is Artificial Intelligence?

Artificial Intelligence refers to the creation of machines that can think, learn, and perform tasks that typically require human intelligence.

Imagine computers that can understand human language, play complex games, recognize faces in photos, and even diagnose diseases. AI enables machines to simulate human-like cognitive functions.

The Birth of AI

The concept of AI has been around for decades, with pioneers like Alan Turing and John McCarthy laying the foundation.

Turing proposed the famous “Turing Test,” a benchmark for determining a machine’s ability to exhibit intelligent behavior indistinguishable from that of a human.

McCarthy coined the term “artificial intelligence” in the 1950s.

Types of AI

There are two main types of AI:

  • Narrow or Weak AI
  • General AI

Narrow AI is designed to perform specific tasks, such as language translation or playing chess. It excels in one area but lacks the broader cognitive abilities of a human.

General AI, on the other hand, would possess human-like intelligence and the ability to perform a wide range of tasks – like the robots we often see in science fiction.

Machine Learning and Neural Networks

Machine Learning is a subset of AI that focuses on the development of algorithms that allow computers to learn from and make predictions or decisions based on data. Neural Networks, which we’ll dive into deeper in later posts, are a crucial component of machine learning. They are inspired by the human brain and are capable of recognising complex patterns in data.

The Impact of AI

AI is transforming industries and aspects of our daily lives. Self-driving cars are becoming a reality, medical diagnoses are becoming more accurate, and even our social media feeds are curated using AI algorithms. While AI offers tremendous opportunities, it also raises ethical questions and challenges related to privacy, job displacement, and bias in algorithms.

Wrap-up

You now understand what AI is and how it’s changing the world around us. In the upcoming posts, we’ll delve deeper into the mechanics of neural networks, the backbone of many AI applications. So get ready to unravel the mystery behind how machines learn and make intelligent decisions!


To impress more this post in your brain, here they are 5 questions!

Question 1: What is the main goal of artificial intelligence (AI)?

A) To create machines that can perform only one specific task.
B) To develop robots with human-like physical abilities.
C) To enable machines to think, learn, and perform tasks that require human intelligence.
D) To design computers that can only understand programming languages.

Question 2: Which term refers to the benchmark for determining a machine’s ability to exhibit human-like intelligence?

A) The Turing Benchmark
B) The Machine Test
C) The Intelligence Test
D) The Turing Test

Question 3: What is the difference between Narrow AI and General AI?

A) Narrow AI can perform a wide range of tasks, while General AI specializes in one area.
B) Narrow AI possesses human-like intelligence, while General AI can only perform specific tasks.
C) Narrow AI excels in one specific task, while General AI can perform a wide range of tasks.
D) Narrow AI is used for entertainment, while General AI is used for industrial purposes.

Question 4: Which of the following is a subset of artificial intelligence that focuses on algorithms allowing computers to learn from data?

A) Human Intelligence
B) Deep Learning
C) Machine Learning
D) Strong AI

Question 5: What is a significant ethical challenge posed by the advancement of AI?

A) Machines becoming more intelligent than humans.
B) AI algorithms being too slow to process large datasets.
C) Job displacement due to automation.
D) General AI becoming mainstream before Narrow AI.

Answers: 1 C, 2 D, 3 C, 4 C, 5 C