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
10 questions
Sanrio Quiz

Quiz
•
4th Grade - Professio...
10 questions
Data Dynamos Quiz Day 2

Quiz
•
Professional Development
10 questions
Python Basics

Quiz
•
Professional Development
15 questions
FINAL TEST

Quiz
•
Professional Development
20 questions
SQL Quiz session -1

Quiz
•
Professional Development
10 questions
Fullstack Assignment

Quiz
•
Professional Development
20 questions
Quiz - Data Analytic Projects

Quiz
•
Professional Development
16 questions
DTW Quiz 1

Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade