wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit02 Quizizz01

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

How do you write the wrapper for a Java class called Television?

a)

Public Television {...}

b)

public class Television {...}

c)

public class Television() {...}

d)

public void class Television() {...}

2.

Consider the method wrapper:


public void run(double howFast) {...}


How many parameters does the method have?

a)

0

b)

1

c)

2

d)

3

3.

Given:


System.out.println("Hello");


What will be visible in the terminal window?

a)

"Hello"

b)

hello

c)

Hello

d)

"hello"

4.

Which comes first?

a)

Java Byte Code

b)

Java Source Code

c)

Machine Code

d)

Java Computer Code

5.

A blueprint of similar objects is way to describe a Java ___________.

a)

method

b)

object

c)

class

d)

parameter

6.

A non-executed line of code is called a Java _____________.

a)

comment

b)

method

c)

source code

d)

class

7.

Which will put the cursor on a new line?

a)

System.out.print("Hello");

b)

System.out.println("Hello");

8.

A means of communication with a Java object is called a Java ______________.

a)

class

b)

parameter

c)

state

d)

method

9.

Which is not one of the three types of Java comments?

a)

Java line comments

b)

Java block comments

c)

Javadoc header comments

d)

Java code comments

10.

public class Computer {...}


is best referred to as a Java ___________ wrapper.

a)

method

b)

class