Java Midterm

Java Midterm

University

39 Qs

quiz-placeholder

Similar activities

standard input output

standard input output

University

41 Qs

Loop Control Statement in C

Loop Control Statement in C

University

41 Qs

Decision and Case Control Statements in C

Decision and Case Control Statements in C

University

35 Qs

Model test

Model test

University

40 Qs

JS Lesson 31-72

JS Lesson 31-72

12th Grade - University

40 Qs

Operators in Python

Operators in Python

University

43 Qs

CodeChef (Secret Snippet)

CodeChef (Secret Snippet)

University

35 Qs

Java Control Structures

Java Control Structures

11th Grade - Professional Development

39 Qs

Java Midterm

Java Midterm

Assessment

Quiz

Computers

University

Hard

Created by

John Oli

Used 1+ times

FREE Resource

39 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The output of `System.out.println(1 + 2 + "3");` is "33"

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The `break` statement is required to exit a loop early.   

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Arrays in Java are dynamically resizable. 

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

A `try` block must always be followed by a `catch` block. 

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The `continue` statement skips the current iteration and proceeds to the next. 

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

The `main` method must be declared as `public static void main(String[] args)`

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

A `while` loop will always execute at least once. 

True

False

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?