time()) die(); ?> AP CS
Loading
notes intro/old submit AP Problems the dump links
 

Quiz 3 - Programming

 

id:

1. What company developed Java?

Eclipse

Sun

IBM

JavaNET

 

2. Which of the following is not an acceptable identifier-

a) 1total

b) total1

c) total$5

d) *total

d

a

a,d

a,c,d

 

all are acceptable

 

3. True or false: Reserved words can NOT be used for any other purpose (ie naming a variable). true false

 

4. True or false: You must put only alphanumeric characters in a comment true false

 

5. True or false: Total and total are considered to be the same identifier. true false

 

6. What is the true of "white space"?

I. It is used To make code easier to read

II. It is used To emphasize parts of the code.

III. It affects how the program runs.

I

II

I,II

I,II,III

 

7. What can be said about this line:

System.out.println("Hello"); //prints Hello

Useless comment

Good comment

You shouldn't put a comment after a line of code.

Confusing comment