wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ISPFL8 Midterm Online Quiz #2

Total questions: 20

Worksheet time: 30mins

Name
Class
Date
1.
True or False: In B4A, the "And" operator evaluates to true if both conditions it connects are true.
a)
TRUE
b)
FALSE
2.
True or False: The "Or" operator in B4A evaluates to true if at least one of the conditions it connects is true.
a)
TRUE
b)
FALSE
3.
True or False: B4A supports the "Not" operator to negate a logical expression.
a)
TRUE
b)
FALSE
4.
True or False: In B4A, the expression (x > 5) And (x < 10) evaluates to true if the variable x is greater than 5 and less than 10.
a)
TRUE
b)
FALSE
5.
True or False: The "And" operator in B4A has higher precedence than the "Or" operator.
a)
TRUE
b)
FALSE
6.
True or False: In B4A, the expression (x > 5) Or (y < 3) evaluates to true if either x is greater than 5 or y is less than 3.
a)
TRUE
b)
FALSE
7.
True or False: The "Not" operator in B4A reverses the logical value of the expression it precedes.
a)
TRUE
b)
FALSE
8.
True or False: In B4A, the expression (x = 5) Or (y = 5) evaluates to true if either x or y is equal to 5.
a)
TRUE
b)
FALSE
9.
True or False: B4A supports short-circuit evaluation, meaning it stops evaluating a logical expression as soon as the result is determined.
a)
TRUE
b)
FALSE
10.
True or False: The result of a logical expression in B4A is always either true or false.
a)
TRUE
b)
FALSE
11.
True or False: In B4A, if the value of x is 5, then the statement "x > 3" evaluates to true.
a)
TRUE
b)
FALSE
12.
True or False: If the user's age is 18 years old, then the statement "age >= 18" evaluates to true.
a)
TRUE
b)
FALSE
13.
True or False: If the temperature is less than or equal to 32 degrees Fahrenheit, then the statement "temperature < 32" evaluates to false.
a)
TRUE
b)
FALSE
14.
True or False: If a student scored 85 out of 100 on a test, then the statement "score <= 70" evaluates to false.
a)
TRUE
b)
FALSE
15.
True or False: If the current time is 10:00 AM, then the statement "time >= 12:00 PM" evaluates to false.
a)
TRUE
b)
FALSE
16.
True or False: If the distance traveled by a car is 200 miles, then the statement "distance < 150" evaluates to false.
a)
TRUE
b)
FALSE
17.
True or False: If the price of a product is $20, then the statement "price > 25" evaluates to false.
a)
TRUE
b)
FALSE
18.
True or False: If a person's height is 6 feet, then the statement "height < 5" evaluates to false.
a)
TRUE
b)
FALSE
19.
True or False: If a student's grade is "A", then the statement "grade = B" evaluates to false.
a)
TRUE
b)
FALSE
20.
True or False: If the number of likes on a post is 100, then the statement "likes >= 100" evaluates to true.
a)
TRUE
b)
FALSE