CS A 3.1 Boolean Expressions
Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Diane Glasgow
Used 18+ times
FREE Resource
Enhance your content in a minute
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given the following variable declarations, what is printed as a result of each line of code?
int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 10;
int number1 = 19;
int number2 = 38;
System.out.println( a == b );
True
False
0
1
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given the following variable declarations, what is printed as a result of each line of code?
int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 10;
int number1 = 19;
int number2 = 38;
System.out.println( e/a == d );
True
False
0
1
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given the following variable declarations, what is printed as a result of each line of code?
int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 10;
int number1 = 19;
int number2 = 38;
System.out.println( c != d );
True
False
0
1
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given the following variable declarations, what is printed as a result of each line of code?
int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 10;
int number1 = 19;
int number2 = 38;
System.out.println(e < d );
True
False
0
1
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given the following variable declarations, what is printed as a result of each line of code?
int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 10;
int number1 = 19;
int number2 = 38;
System.out.println( a+b >= d );
True
False
0
1
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given the following variable declarations, what is printed as a result of each line of code?
int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 10;
int number1 = 19;
int number2 = 38;
System.out.println( 2*a+1 < c );
True
False
0
1
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given the following variable declarations, what is printed as a result of each line of code?
int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 10;
int number1 = 19;
int number2 = 38;
System.out.println( e - d >= c + 1 );
True
False
0
1
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
30 questions
Python программалоо тили
Quiz
•
7th - 11th Grade
35 questions
IT Fundamentals Topic 2
Quiz
•
10th - 12th Grade
30 questions
ทดสอบปลายภาค การเขียนโปรแกรมเชิงวัตถุเบื้องต้น
Quiz
•
10th - 12th Grade
36 questions
Ôn Tập HK1 Tin Học 11
Quiz
•
11th Grade - University
30 questions
MYSQL
Quiz
•
11th Grade
30 questions
Excel Exam 1: Multiple Choice
Quiz
•
9th - 12th Grade
30 questions
ASESMEN TENGAH SEMESTER INFORMATIKA KELAS X - SMKN 52 JAKARTA
Quiz
•
10th Grade
33 questions
Excel/Access 1
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
