Python Programming Quiz

Python Programming Quiz

University

45 Qs

quiz-placeholder

Similar activities

Networking - Practice Test #1

Networking - Practice Test #1

9th Grade - University

47 Qs

ASLMB 1 Kelas 5 2025

ASLMB 1 Kelas 5 2025

5th Grade - University

40 Qs

Grade 5 IT Quiz

Grade 5 IT Quiz

5th Grade - University

50 Qs

Ngôn ngữ lập trình C/C++

Ngôn ngữ lập trình C/C++

University

50 Qs

COMPUTER NETWORKS [LEC] - UAC PREPARATION

COMPUTER NETWORKS [LEC] - UAC PREPARATION

University

42 Qs

IT Fundamentals Test Part 1

IT Fundamentals Test Part 1

KG - University

49 Qs

Loop Control Statement in C

Loop Control Statement in C

University

41 Qs

Comptia Network+ chapter 1-3 exam

Comptia Network+ chapter 1-3 exam

11th Grade - University

45 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Shanmuka Priya B

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python expression? 8 + 3 * 2

22

16

14

26

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which formula is used to calculate compound interest in Python when principal (P), rate (R), and time (T) are given?

CI = P * R * T

CI = P * (1 + R/100) ** T

CI = P + R + T

CI = (P * T) / R

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct formula to find the distance between two points (x1, y1) and (x2, y2)?

(x2 - x1) + (y2 - y1)

sqrt((x2 + x1)^2 + (y2 + y1)^2)

sqrt((x2 - x1)**2 + (y2 - y1)**2)

abs(x2 - x1) + abs(y2 - y1)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python function is used to read input from the keyboard?

print()

input()

read()

scan()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is most suitable to store a phone number entered by a user?

int

float

str

bool

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is required to calculate the Euclidean distance between two points (x1, y1) and (x2, y2)?

Only x1 and x2 values

Only y1 and y2 values

All four values: x1, y1, x2, y2

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function can be used to generate a random number between 1 and 10 in Python?

random() * 10

randint(1,10)

random.randint(1,10)

choice(range(10))

Create a free account and access millions of resources

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?