
Module 3 Worksheet 1 & 2

Quiz
•
Computers
•
University
•
Hard
Murugeswari.k Murugeswari.k
Used 2+ times
FREE Resource
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?
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
CodeTigers Python 101

Quiz
•
KG - Professional Dev...
15 questions
Information Security Lab Quiz # 2

Quiz
•
University
15 questions
Python Basics

Quiz
•
KG - University
10 questions
Techno India University Python Quiz Contest

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
5 questions
Lec 5

Quiz
•
University
10 questions
struktur data : tipe data dan string

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University