Which of the following is the correct syntax for an if-else statement in GDScript?
GDScript Quiz - Lesson 3 - Conditional statements & Iteration

Quiz
•
Computers
•
12th Grade
•
Hard

Peter Fletcher
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following code snippets will print "Success" if the variable score is 80?
if score == 80: print("Success")
if score >= 80: print("Success")
if score > 80: print("Success")
if score = 80: print("Success")
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will the following code snippet output to the console?
var count = 3
while count > 0:
print(count)
count -= 1
1
2
3
3
2
1
3
2
1
0
0
1
2
3
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which loop structure in GDScript allows you to iterate over a specific range of numbers?
while-loop
for-loop
loop-until
do-while-loop
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Identify the correct syntax to create a for-loop that iterates over the numbers 0 to 4 in GDScript.
for i in range(0, 5):
print(i)
for i from 0 to 5:
print(i)
for i from 0, 5:
print(i)
for i from 0 to 4:
print(i)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code snippet:
What will be the output?
2
4
1
3
5
1
2
3
4
5
2
3
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given the following code snippet, what is the output to the console?
Less than 5
Greater or equal to 5
Not Output
Error in Code
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Python Loops

Quiz
•
9th - 12th Grade
15 questions
CP M4 Repetition & Loops

Quiz
•
9th - 12th Grade
10 questions
CS1310 Unit 1 Quizziz

Quiz
•
12th Grade
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
Python Review 2023-01-12

Quiz
•
9th - 12th Grade
10 questions
Python Basics

Quiz
•
12th Grade - University
10 questions
Python Flow Control

Quiz
•
9th - 12th Grade
15 questions
Python Basics Quiz 1

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University