Programming Basic 2

Programming Basic 2

8th Grade

30 Qs

quiz-placeholder

Similar activities

Arduino Components

Arduino Components

7th - 8th Grade

25 Qs

Macromedia Flash

Macromedia Flash

8th Grade - Professional Development

26 Qs

UH-3 DASAR DESAIN GRAFIS

UH-3 DASAR DESAIN GRAFIS

1st Grade - University

25 Qs

quiz on excel

quiz on excel

7th - 12th Grade

25 Qs

Powerpoint - ponavljanje 6. razred

Powerpoint - ponavljanje 6. razred

5th - 8th Grade

27 Qs

Ôn Tập Học Kì I Lớp 4

Ôn Tập Học Kì I Lớp 4

4th Grade - University

35 Qs

ÔN TẬP TIN 7 HỌC KỲ 1

ÔN TẬP TIN 7 HỌC KỲ 1

1st - 12th Grade

25 Qs

Programming Basic 2

Programming Basic 2

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

henry lutterodt

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you try to access an index that does not exist in a list?

The program will print None

The program will crash with an error

The program will return the last item in the list

The program will automatically add a new item

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want a program to run a block of code only if a certain condition is met, which structure should you use?

Sequence

Iteration

Selection

Debugging

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A programmer wants to repeat a block of code until a condition becomes false. Which of the following is the best choice?

If statement

For loop

While loop

Print function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of using decomposition in programming?

It makes a program easier to manage by breaking it into smaller parts

It allows programs to run faster

It removes the need for loops

It reduces the number of variables needed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to check if a number is even using Python?

if number / 2 == 0:

if number % 2 == 0:

if number ** 2 == 0:

if number + 2 == 0:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(10 % 3)?

3

1

0

10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about Boolean values is correct?

A Boolean can store multiple values

A Boolean can only be either True or False

Boolean values can be added like numbers

Boolean values do not exist in Python

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?