Introduction to Python Programming Quiz

Introduction to Python Programming Quiz

10th Grade

20 Qs

quiz-placeholder

Similar activities

Побитовые операторы в Python

Побитовые операторы в Python

9th Grade - University

18 Qs

Pengenalan Bahasa Pemrograman Python

Pengenalan Bahasa Pemrograman Python

9th Grade - University

20 Qs

Selection Programming_If condition

Selection Programming_If condition

8th Grade - University

15 Qs

ÔN TẬP CRV1

ÔN TẬP CRV1

6th Grade - University

22 Qs

Quiz Pemrograman Python

Quiz Pemrograman Python

10th Grade - University

25 Qs

CodeHS Unit 1 - Lessons 1.2-1.9

CodeHS Unit 1 - Lessons 1.2-1.9

10th Grade

20 Qs

Вопросы по Arduino

Вопросы по Arduino

9th Grade - University

15 Qs

Domain 1 Multiple Choice Practice

Domain 1 Multiple Choice Practice

10th Grade

25 Qs

Introduction to Python Programming Quiz

Introduction to Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

10th Grade

Medium

Created by

Peter Chan Chan

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the print() function in Python?

To take user input

To display output

To define a variable

To create a loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to declare a variable in Python?

var length = 10

let length = 10

length := 10

length = 10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the input() function return in Python?

An integer

A float

A string

A list

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is NOT supported in Python?

Character

String

Float

Integer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(type(12.0)) in Python?

bool

int

float

string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^^

exp

**

^

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to start a for loop in Python?

for i in range(5):

for (i = 0; i < 5; i++)

for i = 0 to 5

for i in 5

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?