PROGRAMMING CONCEPTS

PROGRAMMING CONCEPTS

12th Grade

29 Qs

quiz-placeholder

Similar activities

Inside Google Quiz

Inside Google Quiz

9th - 12th Grade

25 Qs

4QICT12 - Current and Future Trends of Media and Information

4QICT12 - Current and Future Trends of Media and Information

11th - 12th Grade

28 Qs

Ôn tập kiểm tra giữa kỳ 1 khối 10 2022 - 2023

Ôn tập kiểm tra giữa kỳ 1 khối 10 2022 - 2023

1st - 12th Grade

30 Qs

CompTIA 220-902 Practice PM TEC

CompTIA 220-902 Practice PM TEC

11th - 12th Grade

26 Qs

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

5th Grade - University

25 Qs

Creación de Tablas en MS Word

Creación de Tablas en MS Word

10th - 12th Grade

25 Qs

HTML & CSS

HTML & CSS

12th Grade

25 Qs

ELECTRÓNICA Y ROBÓTICA

ELECTRÓNICA Y ROBÓTICA

12th Grade

25 Qs

PROGRAMMING CONCEPTS

PROGRAMMING CONCEPTS

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

JOHN ZARATE

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

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

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?