
Programming lesson 1 - Syntax

Quiz
•
Computers
•
9th Grade
•
Medium

Robert Riley
Used 11+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is present when the if statement is the wrong way round?
Logic
Syntax
Runtime
Semantic
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the solution for an error where there is no closing speech mark?
Add a closing speech mark
Change the print statement to lowercase
Reverse the comparison signs
Use a different variable name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error would happen if dividing by zero was in your code?
Syntax error
Runtime error
Logic error
No error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you fix an undefined variable error in the code?
Declare the variable before use
Remove the variable
Change the variable type
Ignore the error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error occurs when a function is called with the wrong number of arguments?
Syntax error
Runtime error
Logic error
Semantic error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you resolve a syntax error in your code?
Check for missing punctuation
Change variable names
Optimize the algorithm
Ignore the error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is indicated by a program that compiles but produces incorrect results?
Syntax error
Runtime error
Logic error
Semantic error
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
vb.net

Quiz
•
9th Grade - University
20 questions
Basic Python

Quiz
•
10th - 12th Grade
15 questions
Translators, Compilers & Langauges

Quiz
•
9th - 10th Grade
20 questions
Getting Started in C Programming

Quiz
•
9th - 10th Grade
15 questions
lesson 2 vocab gaming

Quiz
•
6th - 9th Grade
15 questions
Coding club Summit Online Quiz

Quiz
•
University
20 questions
FOP - CHAPTER 4

Quiz
•
University
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th 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
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