BUSINESS 13 - Machine Learning Practice Quiz
.docx
keyboard_arrow_up
School
United States International University (USIU - Africa) *
*We aren’t endorsed by this school
Course
13
Subject
Computer Science
Date
Jun 24, 2024
Type
docx
Pages
4
Uploaded by SuperTapirMaster1209
Title: Machine Learning Practice Quiz
Introduction:
Machine Learning is a rapidly growing field in computer science that focuses on developing algorithms and statistical models that enable computers to learn and make decisions from data without being explicitly programmed. Testing your knowledge through practice quizzes is a great way to reinforce your understanding of key concepts in Machine Learning.
This quiz includes 15 multiple-choice questions to assess your knowledge and test your skills. Each question has multiple answer choices, and the correct answers are provided at the end.
Instruction:
Choose the best answer for each of the following questions based on your knowledge of Machine Learning concepts. At the end of the quiz, you can check your answers to see how well you did.
Quiz Questions:
1. Which of the following is a supervised learning algorithm?
A) K-means clustering
B) Decision tree
C) Apriori
D) AdaBoost
Answer: B) Decision tree
2. What is the purpose of the activation function in a neural network?
A) Normalize the input data
B) Compute the dot product of input and weights
C) Introduce non-linearity
D) Reduce the dimensionality of the data
Answer: C) Introduce non-linearity
3. Which evaluation metric is commonly used for regression tasks in Machine Learning?
A) Precision
B) F1-score
C) Mean Absolute Error
D) Recall
Answer: C) Mean Absolute Error
4. What does the term "overfitting" refer to in Machine Learning?
A) Model performs well on training data but poorly on unseen data
B) Model performs poorly on training data and unseen data
C) Model captures noise in the training data
D) Model is under-trained
Answer: C) Model captures noise in the training data
5. Which algorithm is used for dimensionality reduction in Machine Learning?
A) K-nearest neighbors
B) Random Forest
C) Principal Component Analysis (PCA)
D) Support Vector Machines (SVM)
Answer: C) Principal Component Analysis (PCA)
6. What is the objective of unsupervised learning?
A) Predict a target variable
B) Learn from labeled data
C) Discover patterns and relationships in data
D) Classify input data into categories
Answer: C) Discover patterns and relationships in data
7. Which method is used for handling imbalanced data in Machine Learning?
A) Upsampling
B) Lasso regression
C) Gradient descent
D) Stochastic gradient boosting
Answer: A) Upsampling
8. Which technique is used for feature scaling in Machine Learning?
A) One-hot encoding
B) Standardization
C) Ensemble learning
D) ReLU activation
Answer: B) Standardization
9. What is the purpose of the bias term in a neural network?
A) Regularize the model
B) Initialze weights
C) Shift the activation function
D) Prevent underfitting
Answer: C) Shift the activation function
10. Which algorithm is a type of ensemble learning method?
A) k-means clustering
B) Gradient Boosting
C) Linear Regression
D) Naive Bayes
Answer: B) Gradient Boosting
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Question 4 - Algorithm Design
Imagine you are a treasure hunter standing at one side of the river. There are n (a positive
integer) stones on the river. They are aligned on a straight line and at the nth stone, there is
treasure waiting for you. Your target is to reach the nth stone. For each move, you have the
choice of either walking (move one stone ahead) or leaping (move two stones ahead). Also, you
are not allowed to travel backwards. Design an algorithm that calculates the number of ways
(sequences of walks/leaps) that get you to the treasure stone. You should clearly explain the
algorithm and demonstrate the correctness of the algorithm with a complete proof.
Here is an example. For n =
1
5, there are 8 ways:
Method 1: walk → walk → walk → walk → walk
Method 2: walk → walk → walk → leap
Method 3: walk → walk → leap → walk
Method 4: walk → leap → walk →
walk
walk
Method 5: leap → walk → walk →
Method 6: leap → leap walk
Method 7: leap → walk → leap
Method 8: walk → leap leap
arrow_forward
LABView
Draw by hand the diagram for a program that displays a count that increments 4 times per seconduntil the user pushes a stop button. Turn on a boolean light when the count is even. Thecount starts at 0 and goes until the user pushes the stop button.
arrow_forward
Computation theory The study of computers When compared to passing by value, what are the advantages and disadvantages of passing by reference?
arrow_forward
Part 6: Boolean Logic Expressions
Boolean expressions are types of logical operations that we can perform on true and false values. Note that the word Boolean is always capitalized because it was named after its inventor, George Boole. Boolean algebra is a very important topic in computer science, and if you haven't learned it before you definitely will in the future. However, for our purposes we are only interested in how we can use them to manipulate binary numbers. The way we use them on binary numbers is by treating 1 as true and 0 as false. From this point on I will be using 0 and 1 instead of false and true.
There are many types of Boolean expressions, but the three most important ones are AND, OR, and NOT.
AND takes 2 operands and will output 1 if they are both 1, or 0 otherwise
OR takes 2 operands and will output 1 if either one is 1, or 0 if neither is 1
NOT takes 1 operand and reverses it: 1 becomes 0, and 0 becomes 1
We can represent this behavior using something called a…
arrow_forward
Algorithm writing
Instructions:
Algorithms are a generic way of describing a
solution to a computational problem without
use of any specific programming language
syntax. It cannot be executed on a real
computer, but it can model and resemble real
programming code. Natural language is used
whenever details are unimportant or
distracting.
Your algorithm:
Must be unambiguous (exact)..are the steps
numbered? .do we always know where to go next
or are we left hanging?
Must be correct (solves the problem)...are the
'requirements' being met?
Must come to an end (terminate)...how do we
know when to end this?
Must be general (for all cases).. .can we input
any data & still solve the problem?
Must be at the right level of detail... . will a
computer (in general) understand what we are
asking it to do?
Requirements --> You have a store that sells
lemons and oranges. Oranges are $.30 each and
lemons are $.15 each. Your solution to this
problem should get from the user the numbers
of oranges and…
arrow_forward
In computer science, there is a distinction between pure and applied mathematics.
arrow_forward
Data structures and algorithms problem
arrow_forward
The properties of an algorithm should be mentioned.
arrow_forward
Monte Carlo is a kind of simulation technique that uses random numbers to determine the development of a system.
arrow_forward
Python Algorithms
Part 1 – Binary SearchLet's play a little game to give you an idea of how different algorithms for the same problem can have wildly different efficiencies. If I choose an integer from 1 to 16 and ask you to guess what the number is, you can keep guessing numbers until you hit on it. When you guess wrong, I tell you whether you are too high or too low. Once you've guessed the number, think about the technique you used to decide each of your next guesses.If you guessed 1, then 2, then 3, then 4, and so on, until you guessed the right number, you used an approach called “linear search,” meaning you guessed the numbers serially and sequentially, as if they were lined up in a row. This is definitely one way to find the mystery number, but it could require as many as 16 guesses. However, you could get lucky, if the number was 1, you’d only need 1 guess. Using a linear search process, on average, you'd need 8 guesses.There is an approach that is more efficient than just…
arrow_forward
A step-by-step procedure used to solve a problem is called Algorithm explain?
arrow_forward
This problem strategy begins with the
result and applies a set of mathematical
operations in reverse order to arrive
at the answer
Trial and error
Working backwords
Searching for patterns
Guess and check
arrow_forward
Select all the statements that are true
Select all the statements that are true
Algorithms solve problems
Algorithms always finish
Algorithms are general solutions
Algorithms were created to help computers solve problems
Algorithms each consist of a single step to be taken or action to be performed
arrow_forward
An
is a step-by-step procedure for finding the solution to a problem.
arrow_forward
When discussing an algorithm, it's important to highlight its qualities.
arrow_forward
Question-1
Friend's Party Circle:
There are a few friends living in the same area.
They have a party every weekend and the place
of party change each week. It is always a
lifficult task to select a place which is nearest
for everyone. They
advantage of Computer Science to solve this
problem.
all decided to take
Names of friends are Ahmed, Rehman, Careem,
Basit, Dawood, Ghani, and Farid. Ahmed lives
at 5 minutes' walk from rehman and at 10
minutes' walk from Careem. Careem lives at 3
minutes' walk from Dawood. Rehman lives at 4
minutes' walk from Basit and 2 minutes' walk
from Dawood. Dawood lives at two minutes'
walk from Farid. Ghani lives at 2 minutes' walk
from Basit.
a. If we represent a graph G = V (V, E) in
which set of vertices are home of each
Friend and an edge represents a path
between
two
homes.
Provide the
adjacency matrix of directed graph of
the graph G.
b. In above directed graph G. You are
required to devise an algorithm to find
all possible paths.
arrow_forward
Question-1
Friend's Party Circle:
There are a few friends living in the same area.
They have a party every weekend and the place
of party change each week. It is always a
difficult task to select a place which is nearest
for everyone. They all decided
advantage of Computer Science to solve this
problem.
to take
Names of friends are Ahmed, Rehman, Careem,
Basit, Dawood, Ghani, and Farid. Ahmed lives
at 5 minutes’walk from rehman and at 10
minutes' walk from Careem. Careem lives at 3
minutes' walk from Dawood. Rehman lives at 4
minutes' walk from Basit and 2 minutes' walk
from Dawood. Dawood lives at two minutes'
walk from Farid. Ghani lives at 2 minutes' walk
from Basit.
b. In above directed graph G. You are
required to devise an algorithm to find
all possible paths.
arrow_forward
True or False
The strategy of breaking down the problem into smaller pieces is often called trial and error and it represents the fundamental principle for problem solving.
Modularization is the process of reducing or factoring out details that are not necessary in order to describe an algorithm.
Bugs are problems/errors with a program that cause it to stop working or produce incorrect or undesirable results
Coding a program is the process of telling the computer to evaluate the compiled instructions
Computational process in present context means a set of steps that a machine can perform for solving a problem.
arrow_forward
It is important to call attention to certain characteristics of an algorithm.
arrow_forward
When explaining an algorithm, it is critical to emphasise its strengths.
arrow_forward
A well-considered algorithm will have no room for interpretation.
arrow_forward
ID: A
Name:
ID: A
6. There are 32 students standing in a classroom. Two different algorithms are given for finding the average
height of the students.
Algorithm A
Step 1: All students stand.
gniwolldi odT
gaihnel vd
Step 2: A randomly selected student writes his or her height on a card and is seated.
Step 3: A randomly selected standing student adds his or her height to the value on the card, records the new
value on the card, and is seated. The previous value on the card is erased.
Step 4: Repeat step 3 until no students remain standing.
Step 5: The sum on the card is divided by 32. The result is given to the teacher.
Algorithm B
Step 1: All students stand.
Step 2: Each student is given a card. Each student writes his or her height on the card.
Step 3: Standing students form random pairs at the same time. Each pair adds the numbers written on their
cards and writes the result on one student's card; the other student is seated. The previous value on the card is
erased.
Step 4: Repeat…
arrow_forward
Query Board Python or Java(Preferred Python please) Thank you!
Programming challenge description:
There is a board (matrix). Every cell of the board contains one integer, which is 0 initially.The following operations can be applied to the Query Board:SetRow i x: change all values in the cells on row "i" to value "x".SetCol j x: change all values in the cells on column "j" to value "x".QueryRow i: output the sum of values on row "i".QueryCol j: output the sum of values on column "j".The board's dimensions are 256x256."i" and "j" are integers from 0 to 255."x" is an integer from 0 to 31.
Input:
Your program should read lines from standard input. Each line contains one of the above operations.
Output:
For each query, output the result of the query.
Test 1
Test InputDownload Test 1 Input
SetCol 32 20 SetRow 15 7 SetRow 16 31 QueryCol 32 SetCol 2 14 QueryRow 10
Expected OutputDownload Test 1 Input
5118 34
arrow_forward
Skydiving
Bibi is a skydiving instructor. Before carrying out skydiving
activities, Bibi will always ask the name, height, and age
of the participants. Bibi's participants is always 2 people.
To make it easier to remember their identities, Bibi gave
them a paper to write down their identity. But because
they are very enthusiastic in doing skydiving, they write
their identity in a single line only (for both of the
participants), so it wasn't quite neat and it made difficult
for Bibi to see it, and resulted in the skydiving process
being disturbed. As one of the organizer committee, you
do not want this activity to be disturbed and plan to
provide a program that provides their identity neatly to
Bibi.
Format Input
Input consists of 1 line. It contains the identity of 2 people
in a row Ni, Ti, Ui - the name, height, and age of the i-th
participant.
Format Output
The output consists of 6 lines. The first line, "Name 1: N1".
The second line, "Height 1: T1". The third line, "Age: U1".
For…
arrow_forward
SPIM simulator (QtSpim).
Simulation: Write a MIPS program that computes the expression;
y = A * B + C * D Where A, B, C, and D are integers
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Related Questions
- Question 4 - Algorithm Design Imagine you are a treasure hunter standing at one side of the river. There are n (a positive integer) stones on the river. They are aligned on a straight line and at the nth stone, there is treasure waiting for you. Your target is to reach the nth stone. For each move, you have the choice of either walking (move one stone ahead) or leaping (move two stones ahead). Also, you are not allowed to travel backwards. Design an algorithm that calculates the number of ways (sequences of walks/leaps) that get you to the treasure stone. You should clearly explain the algorithm and demonstrate the correctness of the algorithm with a complete proof. Here is an example. For n = 1 5, there are 8 ways: Method 1: walk → walk → walk → walk → walk Method 2: walk → walk → walk → leap Method 3: walk → walk → leap → walk Method 4: walk → leap → walk → walk walk Method 5: leap → walk → walk → Method 6: leap → leap walk Method 7: leap → walk → leap Method 8: walk → leap leaparrow_forwardLABView Draw by hand the diagram for a program that displays a count that increments 4 times per seconduntil the user pushes a stop button. Turn on a boolean light when the count is even. Thecount starts at 0 and goes until the user pushes the stop button.arrow_forwardComputation theory The study of computers When compared to passing by value, what are the advantages and disadvantages of passing by reference?arrow_forward
- Part 6: Boolean Logic Expressions Boolean expressions are types of logical operations that we can perform on true and false values. Note that the word Boolean is always capitalized because it was named after its inventor, George Boole. Boolean algebra is a very important topic in computer science, and if you haven't learned it before you definitely will in the future. However, for our purposes we are only interested in how we can use them to manipulate binary numbers. The way we use them on binary numbers is by treating 1 as true and 0 as false. From this point on I will be using 0 and 1 instead of false and true. There are many types of Boolean expressions, but the three most important ones are AND, OR, and NOT. AND takes 2 operands and will output 1 if they are both 1, or 0 otherwise OR takes 2 operands and will output 1 if either one is 1, or 0 if neither is 1 NOT takes 1 operand and reverses it: 1 becomes 0, and 0 becomes 1 We can represent this behavior using something called a…arrow_forwardAlgorithm writing Instructions: Algorithms are a generic way of describing a solution to a computational problem without use of any specific programming language syntax. It cannot be executed on a real computer, but it can model and resemble real programming code. Natural language is used whenever details are unimportant or distracting. Your algorithm: Must be unambiguous (exact)..are the steps numbered? .do we always know where to go next or are we left hanging? Must be correct (solves the problem)...are the 'requirements' being met? Must come to an end (terminate)...how do we know when to end this? Must be general (for all cases).. .can we input any data & still solve the problem? Must be at the right level of detail... . will a computer (in general) understand what we are asking it to do? Requirements --> You have a store that sells lemons and oranges. Oranges are $.30 each and lemons are $.15 each. Your solution to this problem should get from the user the numbers of oranges and…arrow_forwardIn computer science, there is a distinction between pure and applied mathematics.arrow_forward
- Python Algorithms Part 1 – Binary SearchLet's play a little game to give you an idea of how different algorithms for the same problem can have wildly different efficiencies. If I choose an integer from 1 to 16 and ask you to guess what the number is, you can keep guessing numbers until you hit on it. When you guess wrong, I tell you whether you are too high or too low. Once you've guessed the number, think about the technique you used to decide each of your next guesses.If you guessed 1, then 2, then 3, then 4, and so on, until you guessed the right number, you used an approach called “linear search,” meaning you guessed the numbers serially and sequentially, as if they were lined up in a row. This is definitely one way to find the mystery number, but it could require as many as 16 guesses. However, you could get lucky, if the number was 1, you’d only need 1 guess. Using a linear search process, on average, you'd need 8 guesses.There is an approach that is more efficient than just…arrow_forwardA step-by-step procedure used to solve a problem is called Algorithm explain?arrow_forwardThis problem strategy begins with the result and applies a set of mathematical operations in reverse order to arrive at the answer Trial and error Working backwords Searching for patterns Guess and checkarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education