Introduction to Python Programming Quiz

Introduction to Python Programming Quiz

10th Grade

20 Qs

quiz-placeholder

Similar activities

Pengenalan Bahasa Pemrograman Python

Pengenalan Bahasa Pemrograman Python

9th Grade - University

20 Qs

Quiz tentang Google Colab

Quiz tentang Google Colab

10th Grade - University

20 Qs

ÔN TẬP CRV1

ÔN TẬP CRV1

6th Grade - University

22 Qs

ĐỀ CƯƠNG ÔN TẬP KTCK II - TIN 10 (KNTT) - ĐỀ CƯƠNG SỐ 1

ĐỀ CƯƠNG ÔN TẬP KTCK II - TIN 10 (KNTT) - ĐỀ CƯƠNG SỐ 1

10th Grade

16 Qs

CodeHS Unit 1 - Lessons 1.2-1.9

CodeHS Unit 1 - Lessons 1.2-1.9

10th Grade

20 Qs

BASIC Programming Fundamentals Assessment

BASIC Programming Fundamentals Assessment

10th Grade

20 Qs

Selection Programming_If condition

Selection Programming_If condition

8th Grade - University

15 Qs

Python String Methods Quiz

Python String Methods Quiz

10th Grade

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