Python Midterm

Python Midterm

12th Grade

74 Qs

quiz-placeholder

Similar activities

Ôn tập Tin 12 (1-4)

Ôn tập Tin 12 (1-4)

12th Grade

73 Qs

Web Design final

Web Design final

9th - 12th Grade

71 Qs

Unity Certification Prep-Chapters 1-5

Unity Certification Prep-Chapters 1-5

12th Grade

74 Qs

TIK KELAS 7

TIK KELAS 7

KG - University

70 Qs

Exchange Quiz

Exchange Quiz

KG - University

70 Qs

Vật liệu khí cụ điện 1 đến 71 fix

Vật liệu khí cụ điện 1 đến 71 fix

12th Grade

71 Qs

CÂU HỎI TRẮC NGHIỆM BÀI 6-7-8-9 LỚP 12

CÂU HỎI TRẮC NGHIỆM BÀI 6-7-8-9 LỚP 12

12th Grade

77 Qs

Ôn Tập KTCK2_Tin12_HK2_2024

Ôn Tập KTCK2_Tin12_HK2_2024

12th Grade

76 Qs

Python Midterm

Python Midterm

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Joseph Gilliam

Used 45+ times

FREE Resource

AI

Enhance your content in a minute

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

74 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct data type for a whole number in Python?

A) Integer

B) Float

C) String

D) Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a string variable in Python?

A) var_name = 42

B) var_name = 3.14

C) var_name = "Hello"

  •  var_name = True

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to take user input in Python?

A) input()

B) print()

C) read()

D) get()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the print() function do in Python?

A) Takes user input

B) Displays output on the console

C) Performs mathematical operations

D) Defines a function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the // operator do in Python?

A) Floor division

B) Exponentiation

C) Modulus

D) Addition

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1.  result = 5 + 3 * 2

  • print(result)

A) 16

B) 11

C) 13

D) 26

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of the expression True and False?

A) True

B) False

C) Error

D) None

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?