
Python Basics Quiz

Quiz
•
Computers
•
12th Grade
•
Easy
sai pavan
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax to create an empty list in Python?
()
empty()
{}
[]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a MySQL query to select all columns from a table named 'users'.
SELECT * FROM users;
SELECT * FROM data;
SELECT * FROM customers;
SELECT * FROM info;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is used to store a single character in Python?
bool
str
float
int
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
variable = value
variable_name = value
declare variable_name
value = variable_name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a 'for' loop in Python?
To create a new variable
To define a function
To perform mathematical calculations
To iterate over a sequence and execute a block of code for each item
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the '==' operator used for in Python?
It is used for defining functions
It is used for looping
It is used for addition
It is used for comparison.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write an 'if' statement in Python?
if (condition) {
if condition:
if (condition) then:
if (condition) == True:
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Fundamentals

Quiz
•
12th Grade
10 questions
Dictionary in Python

Quiz
•
11th - 12th Grade
10 questions
Quiz sobre Estruturas de Dados em Python

Quiz
•
12th Grade
15 questions
Python - Print, Variabel, dan Type Data

Quiz
•
12th Grade
20 questions
Technical Quiz Round 1 Set 1

Quiz
•
12th Grade
15 questions
CUET Level - II Computer Science(7/11/2023)

Quiz
•
12th Grade
15 questions
Chapter 8 String Manipulations

Quiz
•
12th Grade
13 questions
Python File Handling Quiz

Quiz
•
12th 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
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade