Lists and Loops in Computer Science

Lists and Loops in Computer Science

10th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

CIA Mid-Term Review 1

CIA Mid-Term Review 1

9th - 10th Grade

17 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

Pre-Assessment: ICT 10 Orientation Day

Pre-Assessment: ICT 10 Orientation Day

10th Grade

10 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

BÀI TẬP T7 - KHỞI ĐỘNG

BÀI TẬP T7 - KHỞI ĐỘNG

10th - 12th Grade

10 Qs

Mobile app development principles

Mobile app development principles

10th Grade

17 Qs

Input Devices of Computer

Input Devices of Computer

11th Grade

10 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

Lists and Loops in Computer Science

Lists and Loops in Computer Science

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the word used to describe repetition in programming?

Sequence
Selection
Iteration
Coding

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What does this code do?

Moves forward 1 time

Moves forward forever

Moves forward 5 times

Moves left

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For this scenario related to turtle/robot drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task:


Drawing out the letters of a word "HELLO"

Loop

Function

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For this scenario related to turtle/robot drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task:


Drawing 100 tiny dots in a line.

Loop

Function

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What is a possible output when the following code segment executes? The ending position of the turtle is shown in each diagram. The starting position is shown as a white triangle in cases where the turtle starts and ends in different locations.

Media Image
Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A Boolean expression is an expression that evaluates to which of the of the following?

Yes/Maybe/No

True/False

Any Integer

Integers between 1 and 10

Any single character

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is true about while loops ?

While loops terminate after a fixed number of loops that is pre-determined

While loops terminate after a fixed number of loops that is determined after the loop executes once.

While loops run as long as a given boolean condition is true.

While loops run as long as a given boolean condition is false.

While loops are known as "forever loops" and never stop until the program is halted by the user.

Answer

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?

Discover more resources for Computers