Girls Who Code Lesson 3 review

Quiz
•
Other
•
6th Grade
•
Easy
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.
Similar Resources on Wayground
10 questions
The Chronicles of Narnia: The Lion, the Witch and the Wardrobe

Quiz
•
6th - 8th Grade
10 questions
Programming in QBasic

Quiz
•
6th Grade
10 questions
Advanced Python Quiz1

Quiz
•
6th - 8th Grade
10 questions
Scratch Quiz Lesson 11

Quiz
•
6th Grade
5 questions
Gmetrix 2019 PPT Practice Simulation Test 2 Q's 1-5

Quiz
•
6th - 8th Grade
10 questions
Информатика

Quiz
•
1st - 10th Grade
9 questions
6-сынып Сызықтық алгоритмдерді программалау Ашық сабақ

Quiz
•
6th - 8th Grade
10 questions
Scratch Quiz

Quiz
•
4th - 6th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Other
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Adding and Subtracting Integers

Quiz
•
6th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade