
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
12 questions
JavaScript

Quiz
•
Professional Development
9 questions
Internet Safety/Social Media Quiz

Quiz
•
Professional Development
11 questions
Ferramentas de edición web

Quiz
•
Professional Development
10 questions
Basic Python

Quiz
•
Professional Development
15 questions
Subnetting

Quiz
•
10th Grade - Professi...
12 questions
DECI - Week 6 - round

Quiz
•
Professional Development
13 questions
MODULE 3_Python

Quiz
•
Professional Development
10 questions
C++Quiz#1

Quiz
•
Professional Development
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
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development