Basic Programming Concepts Quiz

Basic Programming Concepts Quiz

9th Grade

15 Qs

quiz-placeholder

Similar activities

Тест по основам Python(intro1)

Тест по основам Python(intro1)

9th - 12th Grade

20 Qs

แบบทดสอบหลังเรียนการวิเคราะห์ข้อมูล

แบบทดสอบหลังเรียนการวิเคราะห์ข้อมูล

6th Grade - University

10 Qs

Tugas Informatika

Tugas Informatika

9th Grade

20 Qs

ICT G 7 Chapter 2.1 Input and Output Devices

ICT G 7 Chapter 2.1 Input and Output Devices

7th Grade - University

20 Qs

Pseudocode

Pseudocode

9th Grade

19 Qs

Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz về Kiểu Dữ Liệu List và Set (1)

7th Grade - University

15 Qs

เทคโนโลยี ม.2 2568-2

เทคโนโลยี ม.2 2568-2

6th Grade - University

10 Qs

Kuis - Refleksi Materi Microsoft Excel

Kuis - Refleksi Materi Microsoft Excel

9th Grade - University

10 Qs

Basic Programming Concepts Quiz

Basic Programming Concepts Quiz

Assessment

Quiz

Information Technology (IT)

9th Grade

Medium

Created by

Adam Adam

Used 3+ times

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

30 sec • 1 pt

Which line of code correctly stores a player's score of 100 in a variable?

100 = playerScore

playerScore: 100

playerScore = 100

playerScore = "100"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of an if statement?

To repeat a block of code multiple times.

To make a decision and run code only if a condition is true.

To store a list of items.

To get input from a user.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A player has health = 10. Which if statement correctly checks if the player has run out of health?

if health = 0:

if health > 0:

if health == 0:

if health is 0:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code print? player_age = 13 if player_age >= 13: print("Welcome, teen!") else: print("You are too young.")

You are too young.

Welcome, teen!

It will print nothing.

It will cause an error.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line of code correctly asks the user for their name and stores it in the user_name variable?

"what is your name?" = user_name

user_name = input("What is your name? ")

input(user_name)

user_name = "What is your name? "

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a for loop best used for?

Running code forever until the program crashes.

Running code as long as a condition is true.

Iterating over a sequence (like a list) a known number of times.

Making a single decision.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed by the following loop? Python for i in range(3): print("Ahoy!")

Ahoy!

Ahoy!

Ahoy!

Ahoy!

Ahoy!

Ahoy!

Ahoy!

Ahoy!

Ahoy!

Ahoy!

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?