CSE 6R Midterm Review

CSE 6R Midterm Review

University

10 Qs

quiz-placeholder

Similar activities

Python Dictionaries

Python Dictionaries

University

10 Qs

Python Basics

Python Basics

KG - University

15 Qs

Exam 1 Practice

Exam 1 Practice

University

15 Qs

Basic of Programming - Quiz 02

Basic of Programming - Quiz 02

University - Professional Development

15 Qs

Day-2

Day-2

University

12 Qs

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

University

15 Qs

BT1 2023

BT1 2023

University

10 Qs

CSE 6R Midterm Review

CSE 6R Midterm Review

Assessment

Quiz

Computers

University

Hard

Created by

Jackson Conte

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If you never created a variable called state prior to this code snippet, will this code snippet cause an error?

Yes

No

Not enough information

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Given the following logical expression, what values of booleans a and b will make it evaluate to False? Select all that apply.

a = False, b = False

a = False, b = True

a = True, b = False

a = True, B = True

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

You are given a string called my_string such that len(my_string) is 8215. What negative index is equivalent to the positive index 523? (Write a negative sign first, and do NOT use a comma separator).

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want to store a scatterplot of 2D coordinates (x and y) as a nested data structure. However, you do not want to store any duplicate points. The most appropriate way to store these coordinates would be a: ___________ of ____________

Set of Tuples

Dict of Tuples

Set of Lists

List of Lists

List of Tuples

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If you never created a variable called is_registered prior to this code snippet, will this code snippet cause an error?

Yes

No

Not enough information

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: Every for loop can be rewritten as a while loop.

True

False

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following data structures can be used as VALUES in a dict? Select all that apply.

List

Dict

Set

Tuple

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?