Python & SQL

Quiz
•
Other
•
Professional Development
•
Medium
Gbenga Banso
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to output "Hello World" in Python?
print("Hello World")
p("Hello World")
print(Hello World")
printf("Hello World")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create a list in Python?
my_list = <1, 2, 3>
my_list = {1, 2, 3}
my_list = (1, 2, 3)
my_list = [1, 2, 3]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert comments in Python code?
# This is a comment
// This is a comment
<!-- This is a comment -->
/* This is a comment */
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
var x = 5
x = 5
int x = 5
declare x = 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a function in Python?
function myFunction():
def myFunction():
define myFunction():
func myFunction():
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is NOT a legal variable name?
my-var
_myvar
myVar
my_var
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for python files
.pyt
.pyth
.py
.pt
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Omen Transcend 14 & Envy 14

Quiz
•
Professional Development
10 questions
IKC Workshop

Quiz
•
Professional Development
16 questions
Snakes

Quiz
•
4th Grade - Professio...
20 questions
Basics of Excel Quiz

Quiz
•
Professional Development
10 questions
CSS flexbox quiz

Quiz
•
Professional Development
12 questions
Fnaf ar

Quiz
•
1st Grade - Professio...
10 questions
#Sg_Spaic Last season Quiz (ML and Python)

Quiz
•
KG - Professional Dev...
15 questions
Chapters 10-14

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade