wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

QUIZ #1 - WEB PROG. 1

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.

The purpose of this in your code is to explain what the code is doing.

a)

Java

b)

Comments

c)

Variables

d)

String

2.

Used for terminating certain control structures, such as switch statements and loops.

a)

continue Statement

b)

switch Statement

c)

default Statement

d)

break Statement

3.

The + (plus sign) operator between string values adds them together to make a new string.

a)

String Concatenation

b)

String Type

c)

String Interpolation

d)

String Value

4.

Assigns the value on the right side of the operator to the variable on the left side. 

a)

Increment Operator

b)

Assignment Operators

c)

Decrement Operator

d)

AND Operator

5.

Operators that are used to join multiple expressions and/or conditions.

a)

Primitive Operators

b)

Arithmetic Operators

c)

Assignment Operators

d)

Logical Operators

6.

It is used mostly to evaluate conditions for conditional statements.

a)

Relational Operators

b)

Logical Operators

c)

Arithmetic Operators

d)

Primitive Operators

7.

A conditional statement that executes a block of code when a condition returns a Boolean value of true.

a)

if... else Statement

b)

if Statement

c)

if-else-if Statement

d)

Nested if-else Statement

8.

Reverses the logical state of an existing operand (an operand that normally evaluates as true will return a value of false, and vice-versa)

a)

OR Operator

b)

AND Operator

c)

NOT Operator

d)

Operators

9.

A type of loop that executes a statement for a specific number of times.

a)

do-while Loop

b)

for Loop

c)

while Loop

d)

foreach Loop

10.

It can be used for performing a task when none of the cases is matched.

a)

break Statement

b)

continue Statement

c)

default Statement

d)

switch Statement

11.

Allows programs to use data for performing tasks.

(a)  

12.

It increments the value and returns the result of the increment.

(a)  

13.

It is a high level, modern programming language designed in the early 1990s by Sun Microsystems, and currently owned by Oracle.

(a)  

14.

It is an object that represents a sequence of characters.

(a)  

15.

Also known as data types.

(a)