PROGRAMMING CONCEPTS

PROGRAMMING CONCEPTS

12th Grade

29 Qs

quiz-placeholder

Similar activities

CS 1: Big Idea #3 Practice

CS 1: Big Idea #3 Practice

9th Grade - University

32 Qs

Switch_Router Configuration

Switch_Router Configuration

10th Grade - University

24 Qs

Introduction to Scratch

Introduction to Scratch

6th Grade - University

24 Qs

Programming knowledge ( part 2 )

Programming knowledge ( part 2 )

5th - 12th Grade

30 Qs

Gaming Final Exam

Gaming Final Exam

9th - 12th Grade

25 Qs

AP CSP Quizizz 11-12 - Debugging

AP CSP Quizizz 11-12 - Debugging

9th - 12th Grade

25 Qs

python loop 7th

python loop 7th

7th Grade - University

25 Qs

BTEC Coding & Logic

BTEC Coding & Logic

12th Grade - Professional Development

24 Qs

PROGRAMMING CONCEPTS

PROGRAMMING CONCEPTS

Assessment

Quiz

Computers

12th Grade

Medium

Created by

JOHN ZARATE

Used 2+ times

FREE Resource

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct syntax to declare a variable in Python?

variable x = 5

int x = 5;

x = 5

declare x = 5

Answer explanation

declaring variable in python, don't need to have data type and semi colon ";"

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which data type is mutable in Python?

Tuple

String

List

Integer

Answer explanation

This means we can change an item in a list by accessing it directly as part of the assignment statement

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the elif statement do in Python?

Ends the program

Runs a loop

Checks another condition if the previous one is false

Defines a function

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will print(3 * "hello") output?

hellohellohello

hello * 3

A storage location for data

error

Answer explanation

n Python, the * operator can be used with strings to repeat them a specified number of times.

3 * "hello" means "hello" is repeated 3 times.

So, "hello" * 3 evaluates to "hellohellohello" (without spaces).

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is debugging?

Removing unnecessary comments from code

Fixing errors in a program

Writing new code

Running a program without stopping

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid way to access an element in a list?

list[1]

list(1)

list{1}

list.1

Answer explanation

In Python, elements in a list are accessed using indexing with square brackets ([]).

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The "if" statement is used for looping.

REYAL

FAKEY

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?