
Java Basics - Day 21 SQ

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Courtney Yatteau
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Suppose that addition and subtraction had higher precedence than multiplication and division. Then the expression:
2 + 3 * 12 / 7 - 4 + 8
would evaluate to which of the following?
11
12
5
9
-4
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Assume that a and b are integers. The boolean expression
!( a <= b) && (a * b > 0)
will always evaluate to true given that
a = b
a > b
a < b
a > b and b > 0
a > b and b < 0
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Consider the following code segment:
Line 1: int a = 10;
Line 2: double b = 10.7;
Line 3: double c = a + b;
Line 4: int d = a + c;
Line 5: System.out.println(c + " " + d);
What will be output as a result of executing the code segment?
20 20
20.0 30
20.7 31
20.7 30.7
Nothing will be printed because of a compile-time error.
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Consider the following code segment:
int var = 12;
var = var % 7;
var = var - 1;
System.out.println(var);
What is printed as a result of executing the code segment?
0
1
2
4
5
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Unit 4 Test JS

Quiz
•
9th - 12th Grade
9 questions
Java Basics #1

Quiz
•
10th - 12th Grade
15 questions
CS IGCSE Unit 2. Logic Gates

Quiz
•
10th Grade
10 questions
Algoritma Dan Pemograman P2

Quiz
•
10th Grade
13 questions
Lesson 1: Variables (Activity)

Quiz
•
8th - 10th Grade
10 questions
Java Script

Quiz
•
10th - 12th Grade
15 questions
AP CSP Unit 4

Quiz
•
10th - 12th Grade
10 questions
data_type

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade