Which of the following is a valid constructor declaration for the Cube class?
I. public static Cube()
II public void Cube()
III. public Cube()
IV. public Cube(int side)
AP CSA| Final S2 Exam Review by Mr. B
Quiz
•
Computers
•
12th Grade
•
Hard
Cyber Professor - Mr. B
Used 3+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following is a valid constructor declaration for the Cube class?
I. public static Cube()
II public void Cube()
III. public Cube()
IV. public Cube(int side)
III and IV only
I only
III only
II only
I and II only
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is the exact output of the following code?
int radius = 3;
double pi = 3.142;
double area = pi*( radius * radius ); System.out.print("area ");
System.out.print(area);
area 28.278
28.278 28.278
area 28
there will be an error because of incompatible data types
3.
FILL IN THE BLANK QUESTION
1 min • 5 pts
What value is the result of evaluating this expression?
(5 * 3 - 4 / 2 ) % 3
4.
MULTIPLE SELECT QUESTION
1 min • 5 pts
Which of the following paired correctly?
<label> : it defines a label for an input element.
<textarea> : it defines a caption for a<fieldset> element.
<button> : it defines a clickable button.
<fieldset> : it defines an HTML form to enter inputs by the user.
5.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What is a subclass ?
Tests out code and can run with errors
Where the class gains attributes and methods of another
Argument defined as variables under a function.
A type a class that is specified under a normal class, inheriting the features of the normal class
6.
MULTIPLE SELECT QUESTION
1 min • 3 pts
An expression is a combination of operands and operators that evaluate to a single value. 4 + 6 = (a) or 21 - 3 (b) = 15.0
15%
10
2.0
8
17
7.
MULTIPLE SELECT QUESTION
1 min • 4 pts
Which of these relational operators is part of the JOIN operator? Select all that apply.
UNION
PRODUCT
SELECT
PROJECT
40 questions
Socrathecs 2
Quiz
•
1st - 12th Grade
41 questions
CS 1 Block 3 Exam Review
Quiz
•
9th - 12th Grade
35 questions
RPL-Web-02 (Web)
Quiz
•
12th Grade - University
35 questions
CIE As A level Chpt_20: Object-Oriented Programming
Quiz
•
11th Grade - University
36 questions
PEKAN ULANGAN HARIAN RPL
Quiz
•
12th Grade
35 questions
Upper 6th - IP Addresses and Subnet
Quiz
•
12th Grade
40 questions
CSS12-1Q-ST2
Quiz
•
12th Grade
35 questions
term 2 practice grade 7
Quiz
•
7th Grade - 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