
Python and SQL Quiz

Quiz
•
Computers
•
University
•
Medium
Shubham Mishra
Used 8+ times
FREE Resource
18 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
State True or False: The Python interpreter handles logical errors during code execution.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the output of the following code snippet: text = "PYTHONPROGRAM" text=text.replace('PY','#') print(text)
#THONPROGRAM
##THON#ROGRAM
#THON#ROGRAM
#YTHON#ROGRAM
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following expressions evaluates to False?
not(True) and False
True or False
not(False and True)
True and not(False)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the expression? str='International' print(str.split("n"))
('I', 'ter', 'atio', 'al')
['I', 'ter', 'atio', 'al']
['I', 'n', 'ter', 'n', 'atio', 'n', 'al']
Error
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following code snippet? str= "World Peace" print(str[-2::-2])
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? tuple1 = (1, 2, 3) tuple2 = tuple1 tuple1 += (4,) print(tuple1 == tuple2)
True
False
tuple1
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If my_dict is a dictionary as defined below, then which of the following statements will raise an exception? my_dict = {'apple': 10, 'banana': 20, 'orange': 30}
my_dict.get('orange')
print(my_dict['apple', 'banana'])
my_dict['apple']=20
print(str(my_dict))
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Intro to IF statements

Quiz
•
KG - University
15 questions
Stack??

Quiz
•
University
15 questions
Algorithm and Problem Solving Quiz

Quiz
•
11th Grade - University
16 questions
HTML Tags

Quiz
•
University
20 questions
computer : CHAPTER-7: WORKING WITH ANIMATE CC

Quiz
•
6th Grade - Professio...
20 questions
cyber awareness

Quiz
•
University
20 questions
Animate Test Review

Quiz
•
9th Grade - University
14 questions
Digital Wellbeing

Quiz
•
University
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
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University