
Module 3 Worksheet 1 & 2
Authored by Murugeswari.k Murugeswari.k
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
choose the correct output for the following python code
for i in range(0,3,-1):
print("Welcome")
Welcome Welcome Welcome
WelcomeWelcomeWelcome
Welcome
No output
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the correct python code
if x>=45 :
if (x >= 45)
if (x => 45)
if x >= 45
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code snippets correctly swaps the values of two variables, a and b without temporary variable?
a = b b = a
temp = a a = b b = temp
a, b = b, a
swap(a, b)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the range() function in Python when used for counting?
To generate a list of numbers in a specified range
To calculate the length of a list
To iterate over a sequence of numbers
To count the occurrences of a specific element in a list
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you attempt to calculate the factorial of a negative number in Python?
It calculates the factorial without any issues.
Python raises a ValueError
It returns 0
It returns 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function can be used to convert a character to its corresponding integer value without using ASCII codes?
char_to_int(char)
int(char)
convert(char)
num(char)
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
________________keyword can be used instead of if in else part of the conditional statement?
Access all questions and much more by creating a free account
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
Robotics Prelim
Quiz
•
University
11 questions
Examen Tema 1 - Simulación
Quiz
•
University
10 questions
Post Test #4 - Python Fundamental #3
Quiz
•
University
10 questions
Data Warehouse - Foundations
Quiz
•
University
7 questions
Data mining-Clustering-1
Quiz
•
University
15 questions
GIS Unit III
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
10 questions
Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera
Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade