Girls Who Code Lesson 3 review

Girls Who Code Lesson 3 review

6th Grade

5 Qs

quiz-placeholder

Similar activities

6 сынып Питон сұрақтар

6 сынып Питон сұрақтар

6th Grade

8 Qs

HARI 3-  Kuis coding & perkenalan AI

HARI 3- Kuis coding & perkenalan AI

1st - 6th Grade

10 Qs

Hari 3 - BUDI PUJIANTO, S.Pd

Hari 3 - BUDI PUJIANTO, S.Pd

1st - 10th Grade

10 Qs

Arduino 1 - Sekolah Robot Indonesia

Arduino 1 - Sekolah Robot Indonesia

5th Grade - University

10 Qs

Python Kids Quiz 3

Python Kids Quiz 3

3rd - 8th Grade

10 Qs

Pyhton funkcije

Pyhton funkcije

5th - 8th Grade

10 Qs

Text Features Test

Text Features Test

2nd - 6th Grade

10 Qs

Wk1 - Computer Science Institute

Wk1 - Computer Science Institute

6th - 8th Grade

10 Qs

Girls Who Code Lesson 3 review

Girls Who Code Lesson 3 review

Assessment

Quiz

Other

6th Grade

Easy

Created by

Hari Ganesh

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this program when the user writes: "red"

color = input("Favorite color: ")

print("my favorite color is " + color)

red

my favorite color is red

my favorite color is color

red is my favorite color

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Correct this code

x = "input("What grade are you in?"

input = ("What grade are you in")

input("What grade are you in)"

x = input("What grade are you in?)"

x = "input("What grade are you in?")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the program reaches the `input()` line?

The program immediately ends.

The program will continue running infinitely.

The program waits for the user to write input in the prompt.

The program prints an runtime error.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `print()` function in this code?

To take input from the user.

To display the user's input.

To pause the program.

To end the program.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fix the following code

x = input(Length of rectangle: )

y = input(Width of rectangle: )

print("Area: " + x * y)

x = input("Length of rectangle: ")

y = input("Width of rectangle: ")

print("Area: " + (x*y))

x = int(input("Length of rectangle: "))

y = int(input("Width of rectangle: "))

print("Area: " + str(x*y))

x = int("Length of rectangle: ")

y = int("Width of rectangle: ")

print("Area: " + str(x * y))

The code runs without any errors.