OOP1 Quiz 2

OOP1 Quiz 2

University

15 Qs

quiz-placeholder

Similar activities

ARRAYLIST - JAVA

ARRAYLIST - JAVA

University

15 Qs

WRITE MODULE CODE

WRITE MODULE CODE

University

18 Qs

Quiz on Java

Quiz on Java

University

20 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 Qs

Java Programming

Java Programming

University

15 Qs

Java Quiz 2

Java Quiz 2

University

15 Qs

JAVA array

JAVA array

12th Grade - University

10 Qs

Array output

Array output

University

14 Qs

OOP1 Quiz 2

OOP1 Quiz 2

Assessment

Quiz

Computers

University

Hard

Created by

Ferdinand Turtur

Used 5+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?