reFRESHIEr ICS2602 Quiz

reFRESHIEr ICS2602 Quiz

University

10 Qs

quiz-placeholder

Similar activities

Topic 4 System Software

Topic 4 System Software

University

10 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

HCI Week 3

HCI Week 3

University

10 Qs

CBA Excel 1

CBA Excel 1

University

10 Qs

Lab z sieci -1

Lab z sieci -1

University

14 Qs

Quiz - CSE

Quiz - CSE

University

10 Qs

DAWN CIE

DAWN CIE

University

15 Qs

Information Security Principles

Information Security Principles

University

10 Qs

reFRESHIEr ICS2602 Quiz

reFRESHIEr ICS2602 Quiz

Assessment

Quiz

Computers

University

Medium

Created by

LANCE GULINAO

Used 2+ times

FREE Resource

AI

Enhance your content

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Statements that affect the order in which code is being run are called

If statements

While statements

Control Structures

Loops

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Insert the missing line of code so that the loop iterates until a newline is entered.

(input = scanner.nextLine()).length() > 0

(scanner.nextLine() = input).length() > 0

(scanner.nextLine() = input).length() == 0

(input = scanner.nextLine()).length() == 0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Conditional expressions are called

While expressions

If expressions

Switch expressions

Ternary expressions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This statement must be inserted after a switch case to prevent fallthrough

continue;

break;

return;

goto;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

These are values that are passed into a method by the method caller

Return value

Variables

Arguments

Constants

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Complete the for loop such that the output prints the numbers from 1-10

int i = 1; i < 10; i++

int i = 1; i <= 10; i++`

int i = 0; i < 10; i++

int i = 0; i <= 10; i++

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many of the following snippets of code can be inserted such that the full code compiles and runs without any error

int i = 1; i <= numbersArray.length; i++

int i = 0; i < numbersArray.length; i++

int i : numbersArray

int i : numbersArray[]

1

2

3

4

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?