ComProg Midterm

ComProg Midterm

University

35 Qs

quiz-placeholder

Similar activities

C-Volution (Easy 1)

C-Volution (Easy 1)

University

30 Qs

QUIZ

QUIZ

University

30 Qs

Round2TechQuiz

Round2TechQuiz

University

30 Qs

Loops, enums,arrays,conditional statements, variables

Loops, enums,arrays,conditional statements, variables

University

30 Qs

NumPy Basics Quiz

NumPy Basics Quiz

12th Grade - University

30 Qs

Python Básico

Python Básico

University

30 Qs

Y9 Python Review

Y9 Python Review

9th Grade - University

30 Qs

Y10 revisionr

Y10 revisionr

9th Grade - University

39 Qs

ComProg Midterm

ComProg Midterm

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Information Technology (IT)