Search Header Logo

Python -PCA Quiz1

Authored by Crystal Lee

Other

5th Grade

Used 54+ times

Python -PCA Quiz1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to concatenate the variables `first_name`, `last_name`, and `birth_place` with a comma in between?

`concat_var = first_name + last_name + birth_place`

`concat_var = first_name + ", " + last_name + ", " + birth_place`

`concat_var = first_name + " " + last_name + " " + birth_place`

`concat_var = first_name + last_name + ", " + birth_place`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you store the string "Hello everyone !" in a variable called `hello_message` and print it?

`hello_message = "Hello everyone !" print(hello_message)`

`hello_message = Hello everyone ! print(hello_message)`

`hello_message = "Hello everyone !" print(hellomessage)`

`hello_message == "Hello everyone !" print(hello_message)`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the function `double_convert_string("25")`?

25

50

75

100

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many students have dogs as a pet according to the corrected code?

10

13

15

17

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct area of a rectangle with length 12 and width 6?

18

60

72

78

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct order of planets in the given list?

Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto

Venus, Mercury, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto

Earth, Mars, Mercury, Venus, Jupiter, Saturn, Uranus, Neptune, Pluto

Mars, Earth, Venus, Mercury, Jupiter, Saturn, Uranus, Neptune, Pluto

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the loop that prints each element in the food_list?

Salad, Bread, Rice, Eggs

Bread, Salad, Rice, Eggs

Rice, Eggs, Salad, Bread

Eggs, Rice, Bread, Salad

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?