
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
Computer Science

Quiz
•
University
30 questions
Form 4 - CSEC Information Technology Quiz

Quiz
•
10th Grade - University
35 questions
Latihan Soal Informatika Kelas 7

Quiz
•
7th Grade - University
30 questions
C-Volution (Easy 4)

Quiz
•
University
30 questions
C-Volution (Easy 2)

Quiz
•
University
30 questions
C++ Programming Quiz

Quiz
•
University
30 questions
PPL (QUIZ 4) Programming Control Structures

Quiz
•
University
30 questions
Week 7-8

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University