
ComProg Midterm

Quiz
•
Information Technology (IT)
•
University
•
Easy
Joshua Abis
Used 6+ times
FREE Resource
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the starting index of an array in Python?
1
0
-1
Any number
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a one-dimensional array?
A list containing multiple lists
A standard linear list of values
A list containing three or more lists
A nested dictionary
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the third element in an array arr?
arr[2]
arr[3]
arr(3)
arr[-3]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct keyword for an if statement in Python?
when
if
check
cond
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used for multiple conditions in decision-making?
elseif
elif
else-if
otherwise
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to prematurely stop a loop in Python?
stop
exit
break
halt
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The continue statement is used to:
End the program
Skip the rest of the loop and go to the next iteration
Repeat the loop forever
Exit the loop immediately
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Year 5 ICT Revision Quiz

Quiz
•
5th Grade - University
38 questions
7-20

Quiz
•
7th Grade - University
40 questions
Quiztronic

Quiz
•
University
30 questions
Pandas MCQ Quiz

Quiz
•
12th Grade - University
30 questions
CompProg 2 Quiz

Quiz
•
University
30 questions
Introducción a la Sintaxis de Python

Quiz
•
University
30 questions
Quiz Logika dan Algoritma

Quiz
•
University
30 questions
QUIZ 1 - INTRODUCTION IN ARDUINO AND SKETCHING IN CODE

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade