
Praxis 5652 Computer Science Prep Mod 6 Basic Boolean Logic
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Easy
Brandon Milam
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following code segment.
boolean x <- true
boolean y <- false
boolean z <- true
Which expression evaluates to true?
(x and y) and (y or z)
not((x and y) or (x and z))
(x and y) and (x and z)
(x and y) or (x and z)
Answer explanation
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following variable declarations and initializations.
Which expression evaluates to false?
a < b == c < b
a < b == b < c
Answer explanation
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
daysMissed is 6, gpa 3.5
daysMissed is 4, gpa 3.0
daysMissed is 5, gpa 2.5
daysMissed is 6, gpa 3.0
Answer explanation
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following variable declarations and initializations.
What is printed as a result of executing the code segment?
a == b
false
true
10 == 10
Answer explanation
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following statement.
What is the value of z after the statement has been executed?
9
6
true
false
Answer explanation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following Boolean expression in which the int variables x and y have been properly declared and initialized..
Which expression below is equivalent to the one above?
Answer explanation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
Select the correct missing code that will make z evaluate to true?
a <- true
b <- false
c <- true
d <- false
a <- false
b <- false
c <- false
d <- false
a <- false
b <- true
c <- false
d <- true
a <- true
b <- true
c <- false
d <- false
Answer explanation
Create a free account and access millions of resources
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?
Similar Resources on Wayground
0 questions
Unit 3 Booleans and Conditional Statements
Quiz
•
0 questions
Chapter 5-Boolean Expressions and If Statements-Ch 5 Rev. Drill
Quiz
•
0 questions
Praxis 5652 Computer Science Prep Mod 7 Conditionals
Quiz
•
0 questions
Boolean Expressions
Quiz
•
0 questions
Praxis 5652 Computer Science Prep Mod 5 Operators
Quiz
•
0 questions
Z'yon Computer Science
Quiz
•
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...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
