Search Header Logo

CC103 - Final Exam

Authored by Jerome Escultura

Other

University

Used 1+ times

CC103 - Final Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Which of the following is not a primitive data type in Java?

int

float

string

char

2.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Media Image

What is the output of the following code snippet?

J

o

h

Invalid Code

3.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

In Java, which statement is used to implement decision-making?

for

while

if

do-while

4.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What loop construct in Java is used when the number of iterations is not known beforehand?

for

while

do-while

if-else

5.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Which data structure in Java is used to store a fixed-size sequential collection of elements of the same type?

ArrayList

LinkedList

Arrays

HashSet

6.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Which data structure allows you to represent a group of constants in Java?

Enum type

Bit Set

Vector

Stacks

7.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Which data structure in Java follows the Last In First Out (LIFO) principle?

Dictionary

Hash Tables

Stacks

Enum Type

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?