Basic Programming Concepts Quiz

Basic Programming Concepts Quiz

9th Grade

15 Qs

quiz-placeholder

Similar activities

Fundamentals

Fundamentals

7th Grade - University

12 Qs

Google sheets

Google sheets

7th Grade - University

14 Qs

Microsoft Excel

Microsoft Excel

1st Grade - University

20 Qs

Pengenalan Bahasa Pemrograman Python

Pengenalan Bahasa Pemrograman Python

9th Grade - University

20 Qs

Excel - Games R Us Lesoon

Excel - Games R Us Lesoon

9th Grade

10 Qs

Microsoft Word Basics Quiz

Microsoft Word Basics Quiz

9th Grade

16 Qs

Diagnostic Test Computer Science

Diagnostic Test Computer Science

9th Grade

20 Qs

Digital Functional Skills

Digital Functional Skills

8th Grade - University

15 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?