Decision-Making in Programming
Passage
•
Science
•
9th - 12th Grade
•
Practice Problem
•
Hard
Rafael Guzman
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of conditional statements in programming?
To execute different actions based on varying inputs
To store data in variables
To create loops for repetitive tasks
To define functions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a conditional statement in JavaScript?
if
else
elif
switch
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what is the purpose of the 'elif' statement?
To execute a block of code if the initial 'if' condition is false
To execute a block of code if the 'if' condition is true
To end a loop
To define a function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do predicates return in Snap! programming language?
Boolean values
Integer values
String values
Floating-point values
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operators are used in both JavaScript and Snap! to compare values?
Relational operators like =, >, <
Arithmetic operators like +, -
Assignment operators like =, +=
Bitwise operators like &, |
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
6 questions
Untitled reading quiz
Passage
•
KG
2 questions
Area Model Algebra PhET
Passage
•
9th - 12th Grade
2 questions
Function Builder PhET
Passage
•
9th - 12th Grade
6 questions
High Hopes: The Journey of Triumph
Passage
•
9th - 12th Grade
6 questions
Reading comprehension "Going to work in the morning"
Passage
•
10th Grade - University
6 questions
The Fascinating World of Planets
Passage
•
9th - 12th Grade
6 questions
Caring for Your Mental Health
Passage
•
10th Grade
6 questions
Creating an Effective Video Resume
Passage
•
11th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Science
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
25 questions
Naming Ionic and Covalent Compounds
Quiz
•
9th Grade
20 questions
Mendelian Genetics Review
Quiz
•
9th Grade
10 questions
Exploring Weathering, Erosion, and Deposition Processes
Interactive video
•
6th - 10th Grade
21 questions
Evidence of Evolution
Quiz
•
9th Grade
13 questions
Part 3 Review Protein Synthesis and Mutations
Quiz
•
10th Grade
22 questions
Earth's Spheres and Interactions Quiz Reveiw
Quiz
•
8th - 10th Grade
15 questions
Genetics- Punnett Squares
Quiz
•
9th Grade