Coding Workshop
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Medium
Zul Arif
Used 7+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of an if-else statement in coding?
To repeat a block of code multiple times
To define a function or method
To make a decision based on a condition
To create a loop
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you write an if-else statement in Python?
if [condition]:
# code block if the condition is true
else:
# code block if the condition is false
if [condition] then:
# code block if the condition is true
else:
# code block if the condition is false
if [condition]
# code block if the condition is true
else
# code block if the condition is false
if [condition]:
# code block if the condition is false
else:
# code block if the condition is true
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
(10 > 9)
True
False
Invalid
0
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
x is 4
y is 3
x + y < 11
True
False
Yes
No
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How is AND used in Boolean Logic?
To search all the words together
To search one or other words
To search nothing
To search for the opposite of the words
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The "NOT" used in Boolean Logic to produce the opposite of the input
True
1
0
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this code?
True
Different color...
False
Same color!
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
20 questions
Python Recap
Quiz
•
7th Grade - University
20 questions
SDA Chapter 1A VOCABULARY
Quiz
•
6th - 8th Grade
17 questions
Cyber Camps 2018 - Review Day 3 Windows
Quiz
•
7th - 12th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
17 questions
Presentation Purpose
Quiz
•
6th - 8th Grade
20 questions
New Scratch
Quiz
•
6th - 8th Grade
16 questions
Python Basics
Quiz
•
KG - University
15 questions
How to use WhatsApp, Google Meet and Google Classroom
Quiz
•
7th 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
