Programming Quiz

Programming Quiz

11th Grade

25 Qs

quiz-placeholder

Similar activities

Excel fundamentals

Excel fundamentals

9th Grade - University

20 Qs

Computer System

Computer System

9th - 11th Grade

21 Qs

STS Informatika

STS Informatika

10th Grade - University

20 Qs

ULANGAN HAKI

ULANGAN HAKI

11th Grade

20 Qs

3D Objects - Terms & Transfomations

3D Objects - Terms & Transfomations

6th Grade - Professional Development

20 Qs

Web design

Web design

11th Grade

20 Qs

1.1.3 Input, output and storage

1.1.3 Input, output and storage

11th Grade - University

22 Qs

Programming Quiz

Programming Quiz

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Adam Dennison

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...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the last thing printed by the following program?

10

20

30

60

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We want to simulate constantly flipping a coin until we get 3 heads in a row. What kind of loop should we use?

For loop

While loop

Loop and a half

Infinite loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will the following program print "hello"?

var i = 0;

while(i < 10){

println("hello");

}

0

1

10

Infinite

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following will fix the given program that continually asks the user for a password until they guess the correct password?

Change `while(true)` to `while(password != SECRET_PASSWORD)` at the beginning of the function.

Change `while(true)` to `while(password == SECRET_PASSWORD)` at the beginning of the function.

Add `var password` at the top of the function.

Put `break` at the end of the function.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following program print when run?

0 0 1 1

0 1 0 1

0 0 0 0

1 1 1 1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of the boolean variable canVote at the end of this program?

true

false

null

undefined

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this program?

0

5

true

nothing will print

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?