3rd Quarter Exam in JAVA 4 (Computer Programming)

3rd Quarter Exam in JAVA 4 (Computer Programming)

12th Grade

60 Qs

quiz-placeholder

Similar activities

Computer ٍSkills- Chapter 3

Computer ٍSkills- Chapter 3

1st Grade - University

62 Qs

ITSE201

ITSE201

12th Grade - University

64 Qs

CBT

CBT

11th - 12th Grade

60 Qs

2024 Final Exam Review PFGT

2024 Final Exam Review PFGT

9th - 12th Grade

55 Qs

IT112

IT112

7th Grade - University

64 Qs

OCR A Level Computer Science - 1.3.x

OCR A Level Computer Science - 1.3.x

12th Grade

57 Qs

JAVASCRIPT PART 1

JAVASCRIPT PART 1

12th Grade

60 Qs

Software Development Mega Quiz

Software Development Mega Quiz

12th Grade

57 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?