Python Midterm

Quiz
•
Computers
•
12th Grade
•
Medium
Joseph Gilliam
Used 45+ times
FREE Resource
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
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
Similar Resources on Wayground
70 questions
latihan soal TIK (office)

Quiz
•
1st Grade - Professio...
70 questions
Latihan Test Pengetahuan AIJ Kelas XII

Quiz
•
12th Grade
77 questions
CDIT432 ITP

Quiz
•
12th Grade
75 questions
Computer Science Quiz

Quiz
•
9th - 12th Grade
75 questions
Google Android Quiz

Quiz
•
12th Grade
77 questions
btec unit 1 - working on

Quiz
•
12th Grade
70 questions
Integrated Development Environment (IDE)

Quiz
•
9th - 12th Grade
74 questions
Intro to Computer Science Semester 1 Exam

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University