
Uni-5 Quiz

Quiz
•
Computers
•
Professional Development
•
Hard
Uzma Sulthana
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if an exception occurs in a try block?
A) The program stops
B) The except block executes
C) The program skips to finally
D) Both B and C
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are strings in Python?
A) Mutable sequences of characters
B) Immutable sequences of characters
C) Lists of characters
D) None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the enumerate() function help with?
A) Traversing strings with indices
B) Counting string elements
C) Splitting strings
D) Formatting strings
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following code output?
A) RuntimeError
B) ZeroDivisionError
C) Cannot divide by zero!
D) None of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the finally block do in this code?
A) Closes the file
B) Executes regardless of exceptions
C) Skips if except executes
D) None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
A) ell
B) hel
C) ello
D) None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code output?
A) -1
B) 2
C) 3
D) None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
STM32 Fundamentals

Quiz
•
12th Grade - Professi...
15 questions
Code X Trade

Quiz
•
Professional Development
10 questions
Unity & C-Sharp Quiz

Quiz
•
Professional Development
15 questions
DOT NET-SET1

Quiz
•
Professional Development
10 questions
DBMS Quiz1

Quiz
•
University - Professi...
10 questions
MATLAB Envinronment Intro

Quiz
•
Professional Development
15 questions
HTTP & Webservices

Quiz
•
5th Grade - Professio...
10 questions
Trivia MRM 17/09

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade