Review: Mix 7
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Jennie Malonek
Used 4+ times
FREE Resource
Student preview

5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A programmer is developing a word game. The programmer wants to create an algorithm that will take a list of words and return a list containing the first letter of all words that are palindromes (words that read the same backward or forward). The returned list should be in alphabetical order. For example, if the list contains the words ["banana", "kayak", "mom", "apple", "level"], the returned list would contain ["k", "l", "m"] (because "kayak", "level", and "mom" are palindromes). The programmer knows that the following steps are necessary for the algorithm but is not sure in which order they should be executed. Executing which of the following sequences of steps will enable the algorithm to work as intended?
I. First shorten, then keep palindromes, then sort
II. First keep palindromes, then shorten, then sort
III. First sort, then keep palindromes, then shorten
I only
II only
I and III
II and III
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following best describes the purpose of machine learning programs?
To analyze large data sets, recognize patterns, and make predictions based on data
To automatically translate algorithms from natural language to machine language
To determine whether an algorithm can be constructed to answer “yes” or “no” for all possible inputs
To find approximate solutions to problems that would otherwise require an unreasonably long amount of
time to solve
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A programmer notices the following two procedures in a library. The procedures do similar, but not identical,
things.
Procedure square (n) returns the value n2
Procedure cube (n) returns the value n3
Which of the following procedures is a generalization of the procedures described above?
Procedure Add (n, m), which returns the value n + m
Procedure Fourth (n), which returns the value n4
Procedure Polynomial(n), which returns the value n3 +n2
Procedure Power (n, m), which returns the value nm
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A student wrote the procedure below, which is intended to ask whether a user wants to keep playing a game.
The procedure does not work as intended.
Which of the following best describes the result of running the procedure?
The procedure returns true when the user inputs the value "y" and returns false otherwise.
The procedure returns true when the user inputs the value "n" and returns false otherwise.
The procedure returns true no matter what the input value is.
The procedure returns false no matter what the input value is.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following describes a benefit of using hexadecimal numbers instead of binary numbers to
represent data?
Hexadecimal can be used to represent fractional values, but binary can only represent integers.
Hexadecimal can be used to represent a wider variety of data types than binary can, including color and
geolocation data.
Hexadecimal is easier for a computer to understand than binary is.
A hexadecimal representation of a value generally requires fewer digits than a binary representation of the
same value.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade