CC104- PRELIM LAB EXAM

CC104- PRELIM LAB EXAM

University

100 Qs

quiz-placeholder

Similar activities

Cek Poin

Cek Poin

University

100 Qs

Bài kiểm tra kiến thức AI và quy trình PACE (lớp 13)

Bài kiểm tra kiến thức AI và quy trình PACE (lớp 13)

University

103 Qs

UTSPPL

UTSPPL

University

100 Qs

Projeto de Sistemas - Definindo Influências Organizacionais

Projeto de Sistemas - Definindo Influências Organizacionais

University

100 Qs

ISPFL7 - BSIS4A - Midterm Exam

ISPFL7 - BSIS4A - Midterm Exam

University

100 Qs

ICT database (101-200)

ICT database (101-200)

University

104 Qs

Программирование

Программирование

University

100 Qs

UNIT 1 MCQ QUESTIONS - Cryptography and Network Security

UNIT 1 MCQ QUESTIONS - Cryptography and Network Security

University

96 Qs

CC104- PRELIM LAB EXAM

CC104- PRELIM LAB EXAM

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

John Patrick Eleria

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Local variables are typically declared and initialized within which specific programming constructs?

Inside methods, constructors, or defined within specific blocks of code.

Outside any methods, constructors, or blocks, at the class level.

With a special 'static' keyword, existing as a single copy per class.

As primitive data types that store the actual values directly in memory.

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

When are instance variables initialized, holding values specific to an object's individual state?

When the program begins execution, before any objects are ever created.

Only once, when their containing class is first loaded into memory.

Upon the creation of an object using the 'new' keyword.

Immediately before any method within the class begins its execution.

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What keyword is required when declaring a variable within a class to make it a class variable?

private

public

final

static

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which primitive data type in Java is specifically designed for tracking simple true or false conditions?

char, capable of storing a single 16-bit Unicode character eRiciently.

byte, used to save space in large arrays, four times smaller than int.

boolean, representing a single bit of information for logical states.

short, another memory-saving type, two times smaller than an integer.

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which primitive data type consumes the smallest amount of memory, representing a single bit?

byte, typically using 1 byte to store integral values in an array.

boolean, which tracks true/false conditions and represents only one bit.

short, utilized for memory savings, being two times smaller than an int.

char, storing a single 16-bit Unicode character, taking 2 bytes.

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following options represents a reference type, storing memory addresses for data locations?

A variable declared as 'int' holding an integer numerical value.

A 'boolean' variable representing a simple true or false logical state.

An 'array' of integers, pointing to a memory location containing elements.

A 'char' variable containing a single 16-bit Unicode character value.

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which control structure allows testing a new condition when the preceding 'if' condition evaluates as false?

The 'switch' statement, which evaluates an expression against multiple cases.

The 'else if' statement, providing an alternative conditional block to execute.

A 'default' case, which executes if no other conditions are met previously.

The 'ternary operator', oRering a concise way to evaluate true/false outcomes.

Create a free account and access millions of resources

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?