Hangman Game - Programming Questions

Quiz
•
Computers
•
7th - 11th Grade
•
Hard
Miss Flewitt
Used 595+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a IF statement a type of?
Iteration
Sequence
Selection
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a WHILE loop a type of?
Iteration
Sequence
Selection
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do?
x = random.randint(0,4)
x is set to 0,4
x is set to a random number between 0 and 4
this code does not work
x is set to 0, then 1, then 2, then 3, then 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you wanted to use anything such as time.sleep() from another library, what must you first do?
import the library
use the function from the library
create a new function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you get the user to type their name in?
name = "Tom"
name = ("What is your name?")
print("What is your name?")
name = input("What is your name?")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you find out how many letters are in a variable called word?
wordLength = length(word)
wordLength = len(word)
wordLength = 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line correctly displays a users name?
name = input("What is your name?")
print("Welcome", name)
name = ("What is your name?")
print("Welcome", name)
name = input("What is your name?")
print("Welcome name")
name = input("What is your name?")
print("Welcome" name)
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Python for Class 7

Quiz
•
7th - 8th Grade
20 questions
Intro to Python

Quiz
•
6th - 8th Grade
13 questions
Python Iteration

Quiz
•
10th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
10 questions
1.2 Basic String Manipulation

Quiz
•
9th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
18 questions
Output Devices: Printers

Quiz
•
6th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade