Java Midterm

Java Midterm

University

39 Qs

quiz-placeholder

Similar activities

Python: Control Structures Review

Python: Control Structures Review

9th Grade - University

34 Qs

Revision: programming, OOP, version control, debugging

Revision: programming, OOP, version control, debugging

11th Grade - University

35 Qs

function in Python

function in Python

University

37 Qs

IT 121- Formative Assessment # 2

IT 121- Formative Assessment # 2

University

40 Qs

FINAL_EXAM (CFP_122)

FINAL_EXAM (CFP_122)

University

35 Qs

2nd Year August Quiz

2nd Year August Quiz

University

40 Qs

PYTHON_MODULE_1

PYTHON_MODULE_1

University

43 Qs

Strings

Strings

University

34 Qs

Java Midterm

Java Midterm

Assessment

Quiz

Computers

University

Hard

Created by

John Oli

Used 2+ 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?