Day 8: C4 p2

Day 8: C4 p2

Professional Development

8 Qs

quiz-placeholder

Similar activities

Quizizz

Quizizz

Professional Development

10 Qs

Digital Technology Office 365 - 29May2020

Digital Technology Office 365 - 29May2020

University - Professional Development

13 Qs

Trg@home 1

Trg@home 1

Professional Development

10 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

Professional Development

10 Qs

Mothers Competition

Mothers Competition

Professional Development

10 Qs

FSDA OW Sec. Amsterdam

FSDA OW Sec. Amsterdam

Professional Development

10 Qs

JavaScript Quiz

JavaScript Quiz

Professional Development

10 Qs

Quiz Game

Quiz Game

KG - Professional Development

12 Qs

Day 8: C4 p2

Day 8: C4 p2

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

An Bình

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What is the output of the following code snippet?

10, 14,
10, 10, 14,
10, 10, 14, 10, 14,
Exactly one line of code does not compile.
Exactly two line of code does not compile.

2.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Which statements about decision structures are true? (Choose 2)

The body of a while loop is guaranteed to be executed at least once
The conditional expression of a for loop is evaluated before the first execution of the loop body.
A switch statement with no matching case statement requires a default statement.
The body of a do/while loop is guaranteed to be executed at least once.
An if statement can have multiple corresponding else<br />statements

3.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Media Image

Assuming weather is a well-formed nonempty array, which code snippet, when inserted independently into the blank in the following code, prints all of the elements of weather? (Choose 2)

int i=weather.length; i>0; i--
int i=0; i<=weather.length-1; ++i
var w : weather
int i=weather.length-1; i>=0;
int i=0, int j=3; i<weather.length; ++i

4.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Media Image

Which statements, when inserted independently into thefollowing blank, will cause the code to print 2 at runtime? (Choose 3)

break BUNNY
break RABBIT
continue BUNNY
continue RABBIT
break

5.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Media Image

Which statements about the following code snippet are correct? (Choose all that apply)

The data type of penguin is int
The data type of penguin is Integer
The data type of emu is Character.
The data type of macaw is Object.
compile error

6.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

Given the following array, how many code snippets bellow will print the elements in reverse order from how they are declared?

1
2
3
4
5

7.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Media Image

What distinct numbers are printed when the following method is executed? (Choose all that apply.)

3
4
10
9
compile error

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?