3rd Quarter Exam in JAVA 4 (Computer Programming)

3rd Quarter Exam in JAVA 4 (Computer Programming)

12th Grade

60 Qs

quiz-placeholder

Similar activities

Web Design -Final Exam Review

Web Design -Final Exam Review

9th - 12th Grade

65 Qs

IT Support Service 1st Formative Quiz Test

IT Support Service 1st Formative Quiz Test

12th Grade

60 Qs

Software Development Mega Quiz

Software Development Mega Quiz

12th Grade

57 Qs

HTML BASIC Quiz

HTML BASIC Quiz

12th Grade

55 Qs

JavaScript Multiple-Choice Quiz

JavaScript Multiple-Choice Quiz

12th Grade

60 Qs

All About ICT

All About ICT

3rd Grade - University

65 Qs

PTS Web

PTS Web

10th - 12th Grade

55 Qs

Computer ٍSkills- Chapter 3

Computer ٍSkills- Chapter 3

1st Grade - University

62 Qs

3rd Quarter Exam in JAVA 4 (Computer Programming)

3rd Quarter Exam in JAVA 4 (Computer Programming)

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Jeffmark Pinaredondo

Used 1+ times

FREE Resource

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is an array in Java?
A collection of non-primitive data types
A collection of primitive data types
A collection of objects

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you declare an array in Java?
int arrayName[];
int[] arrayName;
Both a and b

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the index of the first element in an array in Java?
0
1
-1

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the syntax for a do-while loop in Java?
do (condition) {} while (update; initialization; condition);
do (update; condition; initialization) {} while (condition);
do {} while (condition);
do (initialization; condition; update) {} while (condition);

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the break statement in a loop?
To skip the current iteration of the loop
To terminate the loop prematurely
To restart the loop from the beginning
To decrement the loop counter

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the continue statement in a loop?
To terminate the loop prematurely
To restart the loop from the beginning
To skip the current iteration of the loop
To increment the loop counter

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following loop constructs can be used to create an infinite loop?
for loop
while loop
do-while loop
All of these

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?