
Python and MySQL Fundamentals
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Aghata Dhiwi Ashita
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
var mynumber = 10
my number = 10
def mynumber = 10
my_number = 10
my-number = 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take user input in Python?
input()
user_input()
read_input()
get_input()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to print output to the console in Python?
print()
output()
write()
console.log()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if statement in Python?
if (condition) { code }
if condition then code
if: condition { code }
if condition: # code to execute if condition is true
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a for loop in Python?
for i in range(5): print(i)
for (i = 0; i < 5; i++): print(i)
for i in range(5) print(i)
for i in 5: print(i)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'break' statement in a loop?
To skip the current iteration of the loop.
To continue the loop without interruption.
To pause the loop temporarily.
To exit a loop prematurely.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
function_name(parameters) =>
create function_name(parameters)
function_name: parameters()
def function_name(parameters):
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
17 questions
Computer Basics: Basic Parts of a Computer Quiz By Mr. B
Quiz
•
12th Grade - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
15 questions
tik kelas 7
Quiz
•
1st Grade - University
21 questions
Visual Basic Assessment
Quiz
•
11th - 12th Grade
22 questions
Steve Jobs
Quiz
•
6th - 12th Grade
15 questions
Unbound Report Quiz
Quiz
•
9th - 12th Grade
15 questions
Code.org Lesson 1-14
Quiz
•
9th - 12th Grade
20 questions
Python básico
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
