ComProg Midterm

ComProg Midterm

University

35 Qs

quiz-placeholder

Similar activities

C Module 1

C Module 1

University

37 Qs

AS_Testing

AS_Testing

11th Grade - University

40 Qs

DSA Quiz - C

DSA Quiz - C

University

35 Qs

FUNPROG

FUNPROG

University

30 Qs

Java Programming Quiz 1

Java Programming Quiz 1

University

40 Qs

OOP Summative: Inheritance

OOP Summative: Inheritance

University

30 Qs

Warmup - Python - Machine Learning

Warmup - Python - Machine Learning

University

30 Qs

Infinity Code Nexus

Infinity Code Nexus

University

40 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?