
Programming Questions
Authored by D Sweeney
Education
8th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code do? print("Hello World")
Prints 'Hello World' to the console
Saves 'Hello World' to a file
Sends 'Hello World' over the network
Deletes 'Hello World' from the database
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code do? name = input("What is your name")
It assigns a default name to the variable 'name'.
It prompts the user to enter their name and assigns it to the variable 'name'.
It prints the user's name to the console.
It checks if the variable 'name' is empty.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code do? age = int(input("What is your age"))
It asks the user for their age and stores it as a string.
It asks the user for their age and stores it as an integer.
It calculates the user's age based on the current year.
It prints the user's age to the console.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is "Hi" printed? Animal = "Cat" if animal == "Cat": print("Hi") elif animal == "Cat": print("Hi") elif animal == "Mouse": print("Hi") else: print("Hi")
0 times
1 time
2 times
3 times
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is "Hi" printed? Animal = "Cat" if animal == "Cat": print("Hi") if animal == "Cat": print("Hi") if animal == "Mouse": print("Hi") else: print("Hi")
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code do? for i in range(3): print("Hello")
Prints 'Hello' three times to the console
Prints 'Hello' once to the console
Prints 'Hello' indefinitely
Does not print anything
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? number = 5 if number > 3: print("Greater") else: print("Smaller")
Greater
Smaller
Error
No output
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Lesson One recall
Quiz
•
6th - 8th Grade
10 questions
Thai Festival
Quiz
•
6th - 10th Grade
10 questions
POLICE CAUTION
Quiz
•
7th - 12th Grade
10 questions
S2 Subject Choice Quiz
Quiz
•
8th - 10th Grade
15 questions
Hotel Vocabulary !!
Quiz
•
6th - 8th Grade
8 questions
Christopher Columbus
Quiz
•
8th Grade
10 questions
Grand Nursing Theories Based on Human Needs
Quiz
•
1st Grade - University
8 questions
Comparative and superlative Forms of adjective.
Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Education
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade