Search Header Logo

CS1310 Unit 1 Quizziz

Authored by Montserrat Molina

Computers

12th Grade

Used 2+ times

CS1310 Unit 1 Quizziz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Which of the following is an example of a string in Python?

"Hello World!"

5

True

[False, 5, "Hi"]

2.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What would be the output of the following code snippet?

10

15

20

5

3.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What would be the output of the following code snippet?

2

4

6

2

4

0

2

4

6

0

2

4

4.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What would be the output of the following code snippet?

Great!

Okay!

Cool!

Okay!

Cool!

Nice!

Okay!

Great!

5.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What would be the output of the following code snippet?

[True, True, True]

[True, 9, 'A']

[True, True, 'A']

[True, 9, 9]

6.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which of the following code snippets will output:

3

6

9

12

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which of the following is a correct statement?

It is not possible to iterate backwards in a for loop (ex: start at 5 and end at 0)

In an if-elif-else statement, all conditional branches that evaluate to True will execute their code blocks

By default, all input in Python (input()) is interpreted as a string

A continue statement is used to terminate a loop before a sequence completes

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?