Year  3 - Term III CAT Basic Code Blocks

Year 3 - Term III CAT Basic Code Blocks

3rd Grade

20 Qs

quiz-placeholder

Similar activities

Tiptoets 2 Tegenwoordige tijd enkelvoud

Tiptoets 2 Tegenwoordige tijd enkelvoud

1st - 4th Grade

20 Qs

Sara's Revenge

Sara's Revenge

KG - 12th Grade

18 Qs

National Sports Day

National Sports Day

3rd - 7th Grade

15 Qs

Probability - Less/More/Equally Likely

Probability - Less/More/Equally Likely

1st - 3rd Grade

21 Qs

Minecraft Quiz

Minecraft Quiz

KG - University

18 Qs

Spelling or words

Spelling or words

3rd - 4th Grade

15 Qs

Seberapa kenal kamu dengan GENB?

Seberapa kenal kamu dengan GENB?

KG - University

20 Qs

Issue Tracker

Issue Tracker

KG - University

20 Qs

Year  3 - Term III CAT Basic Code Blocks

Year 3 - Term III CAT Basic Code Blocks

Assessment

Quiz

Other

3rd Grade

Practice Problem

Hard

Created by

Lumona Mulengwa

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in programming?

A variable in programming is a symbolic name given to a value that can be changed during the program's execution.

A variable in programming is a comment within the code

A variable in programming is a type of function

A variable in programming is a fixed value that cannot be changed

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Python?

value : variable_name

variable_name = value

value = variable_name

variable_name : value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of loops in programming?

To slow down the program

To confuse the programmer

To make the code more complicated

To execute a block of code repeatedly until a certain condition is met.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Give an example of a 'for' loop in Python.

for item in sequence:

for index in list(range(5)):

for x in range(1, 5):

for i in range(10):

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are functions used for in programming?

Functions are used to predict the weather in programming

Functions are used to play music in programming

Functions are used to order food in programming

Functions are used to encapsulate a set of instructions that can be reused multiple times throughout the code.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define a function in Python that takes two parameters and returns their sum.

def add(a, b): return a + b

def sum(a, b): return a - b

def multiply(a, b): return a * b

def sum_two(a, b): return a + b

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When do we use conditional statements in programming?

We use conditional statements in programming when we want to execute different blocks of code based on certain conditions.

Conditional statements are only used for decoration in code

Conditional statements are used to confuse other programmers

Conditional statements are used to slow down program execution

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?