Which of these should be declared as a final?
double pi = 3.14159;
double radius = 1.5;
double area = radius * radius * pi ;
Feb 20, 2025 AP CompSci - 1st Period
Quiz
•
Computers
•
12th Grade
•
Easy
Scotty Johnson
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these should be declared as a final?
double pi = 3.14159;
double radius = 1.5;
double area = radius * radius * pi ;
pi
radius
area
all three
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
int a = 5;
int b = 8;
int c = 3;
System.out.println(a + b / c * 2);
2
8
9
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would be the one's digit if num were a two-digit number?
int A = num / 10;
int B = num % 10;
int C = num % 100;
int D = num % 100;
A
B
C
D
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would be the ten's digit if num were a two-digit number?
int A = num / 10;
int B = num % 10;
int C = num % 100;
int D = num % 100;
A
B
C
D
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of A?
int A = 9 + 10 % 12;
1
7
11
19
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of A?
int A = (9 + 10) % 12;
1
7
11
19
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of A?
int A = 9 – 2 % 12;
1
7
11
19
20 questions
Array
Quiz
•
10th - 12th Grade
23 questions
Java
Quiz
•
11th Grade - University
20 questions
CodeHS - Intro to Python - Basics and Console Interaction
Quiz
•
9th Grade - Professio...
20 questions
CSE C Section
Quiz
•
University
20 questions
Functions
Quiz
•
9th - 12th Grade
20 questions
Quantitative Aptitude Series
Quiz
•
University
20 questions
Java Summative Assessment 2
Quiz
•
12th Grade
21 questions
SAINS KOMPUTER TINGKATAN 4 (BAB1)
Quiz
•
KG - University
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
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