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
20 questions
123Go

Quiz
•
Professional Development
10 questions
Ninjago. Who am I?

Quiz
•
KG - Professional Dev...
20 questions
SQL Quiz session -1

Quiz
•
Professional Development
20 questions
SQL EXAM TESTING_TT PMVT (16/03/2021)

Quiz
•
Professional Development
10 questions
GFG Quiz

Quiz
•
11th Grade - Professi...
10 questions
Anime

Quiz
•
KG - Professional Dev...
10 questions
About Me

Quiz
•
Professional Development
10 questions
Landscape Insect ID

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade