
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
QUIZ 1 - INTRODUCTION IN ARDUINO AND SKETCHING IN CODE

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

Quiz
•
University
30 questions
Week 7-8

Quiz
•
University
30 questions
Computer Science

Quiz
•
University
40 questions
Quiztronic

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

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

Quiz
•
University
30 questions
Quiz Logika dan Algoritma

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade