Search Header Logo

OOP1 Quiz 2

Authored by Ferdinand Turtur

Computers

University

Used 5+ times

OOP1 Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Which method is the starting point for all Java Programs?

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method prints text in a Java program?

System.printText()

System.out()

System.out.println()

out.writeText()

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

public static void _____(String[] args)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which variable type would you use for a city name?

int

String

double

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

what value is stored in the result variable ?

int x = 8;

int y = 5;

int result = x % y;

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

What is the output of the following code?

int x = 14;

System.out.println(x++);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement in regard to the char data type is true?

'k' is a char

"hello" is a char

char is used to store numeric values

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?