
Python level 1 Autumn 2024

Quiz
•
Computers
•
7th Grade
•
Medium
Nagmun Onu
Used 7+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to take input from a user in Python?
name = input("Enter your name: ")
name = get_input("Enter your name: ")
name = read("Enter your name: ")
name = scan("Enter your name: ")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct if-else statement in Python?
if x > 10: print("x is greater than 10") else: print("x is 10 or less")
if x > 10 then print("x is greater than 10") else print("x is 10 or less")
If x > 10: print("x is greater than 10") else print("x is 10 or less")
if x > 10: print("x is greater than 10") elseif: print("x is 10 or less")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
int x = 5
x = 5
declare x = 5
var x = 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of string concatenation in Python?
name = "John" + "Doe"
name = "John" & "Doe"
name = "John" * "Doe"
name = "John" - "Doe"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to use an f-string in Python?
name = "Onu"
print(f"Hello, {name}!"
name = "Onu"
print(f'Hello, {name}!')
name = "Onu"
print(f"Hello, name!")
name = "Onu"
fprint("Hello, name!")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string to an integer in Python?
int("123")
str(123)
float("123")
char("123")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
num1 = 15
num2 = 5
print(num1/num2)
15
3
20
10
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python Quiz 8.3

Quiz
•
6th - 8th Grade
10 questions
Wiz 3 Assessment Python

Quiz
•
6th - 8th Grade
17 questions
Python

Quiz
•
6th - 10th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
10 questions
Типы данных

Quiz
•
7th Grade
20 questions
Python list, if

Quiz
•
6th - 12th Grade
16 questions
Python #1 Grade #7

Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
21 questions
Input Output Storage Device

Quiz
•
5th - 8th Grade