MIDTERM - BOOLEAN PRACTICE

Quiz
•
Computers
•
12th Grade
•
Medium
Amber Fowler
Used 21+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Wrong Wrong Correct Wrong
True True False True
Correct Correct Wrong Correct
Correct Wrong Correct
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In the procedure Mystery below, the parameter number is a positive integer. Which of the following best describes the result of running the procedure Mystery?
The procedure returns true when the initial value of number is 2, and it otherwise returns false.
The procedure returns true when the initial value of number is greater than 2, and it otherwise returns false.
The procedure returns true when the initial value of number is even, and it otherwise returns false.
The procedure returns true when the initial value of number is odd, and it otherwise returns false.
3.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Code for the procedure Mystery is shown below. Assume that the parameter p has been assigned a positive integer value (e.g. 1,2,3...) Which of the following shows a POSSIBLE result of calling the procedure?
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing toward the top of the grid. Which of the following code segments will move the robot to the gray square along the path indicated by the arrows?
5.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Consider the following program, which uses the variables START, END, and CURRENT
What is displayed as a result of executing the program?
1, 3
3, 3
3, 4
4, 4
6.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
A computer science student completes a program and asks a classmate for feedback. The classmate suggests rewriting some of the code to include more procedural abstraction.
Which of the following is NOT a benefit of procedural abstraction?
Making the code more readable
Providing more opportunities for code reuse
Reducing the amount of duplicated code
Making the code run faster
7.
MULTIPLE SELECT QUESTION
2 mins • 2 pts
Assume that the two variables age and day have been initialized with the values shown.
var age = 16;
var day = "Monday";
Determine if the following statement evaluates to true or false.
(age > 10) && (age < 20)
TRUE
FALSE
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
9618 Chp11 Programming Basics Quiz

Quiz
•
11th Grade - University
26 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Quiz
•
9th - 12th Grade
25 questions
AP CSP Exam Reference Sheet Practie

Quiz
•
12th Grade
21 questions
Programming - Python (year 12)

Quiz
•
9th - 12th Grade
24 questions
Javascript Basics

Quiz
•
7th Grade - University
20 questions
Recursion

Quiz
•
12th Grade
22 questions
BJC Unit 1 Practice Quizizz

Quiz
•
9th - 12th Grade
28 questions
AP Computer Science Final Review

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University