basic programming quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard

CHOLARAJA K
Used 27+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
A string is immutable in Python?
True
False
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following code?
valueOne = 5 ** 2
valueTwo = 5 ** 3
print(valueOne)
print(valueTwo)
10
15
25
125
Error: invalid syntax
3.
MULTIPLE CHOICE QUESTION
5 sec • 1 pt
Can we use the “else” clause for loops?
True
False
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Write the output for following code snippet
for i in range(1, 5):
print(i)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code
salary = 8000
def printSalary():
salary = 12000
print("Salary:", salary)
printSalary()
print("Salary:", salary)
Salary: 12000 Salary: 8000
Salary: 8000 Salary: 12000
The program failed with errors
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
var1 = 1
var2 = 2
var3 = "3"
print(var + var2 + var3)
6
33
13
Error. Mixing operators between numbers and strings are not supported
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
listOne = [20, 40, 60, 80]
listTwo = [20, 40, 60, 80]
print(listOne == listTwo)
print(listOne is listTwo)
True
True
True
False
False
True
False
False
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
15 questions
Assessment 08
Quiz
•
University
15 questions
Monday Week#2
Quiz
•
University
10 questions
Microsoft Word
Quiz
•
6th Grade - University
7 questions
Fundamental of Information Systems
Quiz
•
University
15 questions
Human Computer Interaction (HCI)
Quiz
•
University
10 questions
Quizz_Algoritma, Pemrograman, dan RPL_Accifence
Quiz
•
University
10 questions
Microcontroller
Quiz
•
11th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
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
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
