0%
0 votes, 0 avg
23

This quiz randomly generates 20 questions as asked in AP Computer Science A (AP CSA) - Programming in Java.

Congratulations!

(AP CSA) - Programming in Java

AP Computer Science A (AP CSA) - Programming in Java

This quiz randomly generates 20 questions (in 30 mins) as asked in AP Computer Science A (AP CSA) - Programming in Java.

1 / 20

Question

2 / 20

Question

3 / 20

Refer to the Point, Quadrilateral, and Rectangle classes below:

Which statement about the Quadrilateral class is false?

4 / 20

A middle school is expanding to open a high school next year, doubling the total number of students. The school keeps a database in which each student's unique ID number is stored as an 8 bit number called studentID. Before the arrival of the new students almost every 8 bit number has already been assigned to a student. Of the options provided below, which is the smallest change to the way studentID is represented necessary to ensure each incoming student receives a unique ID?

Four words become HiHowAreYou, since its length is more than 4, nothing will be removed and HiHowAreYou removed will be printed.

5 / 20

What is the output?

6 / 20

What is the output?

7 / 20

8 bits is enough to represent 256 different numbers. How many total bits do you need to represent 512 (twice as many) numbers?

8 / 20

What will be the output?

9 / 20

Question

10 / 20

Question

11 / 20

What is the output?

12 / 20

What is the output ?

13 / 20

What is the output?

14 / 20

Question

15 / 20

Which statement is true about the switch statement?

16 / 20

Question

 

17 / 20

Question

Which of the following correctly constructs a Date object?

18 / 20

Consider the following loop, where n is some positive integer.

19 / 20

Question

20 / 20

Which code fragment, when inserted at line 6, enables the code to print true?

Your score is

0%

Scroll to Top