WJEC 1.8 Program Construction

Quiz
•
Computers
•
9th - 10th Grade
•
Medium
B Bennett
Used 80+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A syntax error is...
An error in the grammar of how you have written your code such as a spelling mistake
An error which causes the program to crash when it runs, such as dividing by zero or running out of memory
An error which doesn't stop the program from running but makes it give you the wrong answer such as using the wrong sign
An error where you have accidentally rounded a number up
An error where you have accidentally lost the decimal part of a number
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A runtime/execution error is...
An error in how you have written your code such as a spelling mistake
An error which causes the program to crash when it runs, such as dividing by zero or running out of memory
An error which doesn't stop the program from running but makes it give you the wrong answer such as using the wrong sign
An error where you have accidentally rounded a number up
An error where you have accidentally lost the decimal part of a number
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A logic error is...
An error in how you have written your code such as a spelling mistake
An error which causes the program to crash when it runs, such as dividing by zero or running out of memory
An error which doesn't stop the program from running but makes it give you the wrong answer such as using the wrong sign
An error where you have accidentally rounded a number up
An error where you have accidentally lost the decimal part of a number
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is this?
Logical
Runtime/Execute
Syntax
Rounding
Truncation
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The program is checked to ensure it conforms to the syntax rules for that language e.g. an error would appear if a semi-colon was missing
Lexical analysis
Syntax analysis
Semantic analysis
Code generation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variables are checked that they are used properly and the that operations such as (+ - / and *) have been correctly used at this stage
Lexical analysis
Syntax analysis
Semantic analysis
Code generation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Semantic analysis is?
Comments and unneeded spaces are removed. Remaining code is turned in to tokend and. A symbol table is created which holds the addresses of variables, labels and subroutines.
Tokens are checked to see if they match the spelling and grammar expected. This is done by parsing each token to determine if it uses the correct syntax for the programming language. If syntax errors are found, error messages are produced.
Variables are checked to ensure that they have been properly declared, used and are the correct data type. Operations are checked to ensure that they are legal for the type of variable being used, e.g. you would not try to store the result of a division operation as an integer.
Machine code is generated. Code optimisation to run as fast as possible. redundant data is removed.
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
20 questions
Procedures and Functions

Quiz
•
10th Grade
20 questions
Year 8 Python -input-output-selection

Quiz
•
8th - 9th Grade
19 questions
BASIC PYTHON! Pilih output yang tepat!

Quiz
•
9th - 12th Grade
20 questions
Y9 - T2 - L6 - HOMEWORK

Quiz
•
9th Grade
20 questions
CSP AP Vocabulary 2 Review

Quiz
•
9th - 12th Grade
20 questions
CodeMonkey

Quiz
•
1st Grade - Professio...
20 questions
2.3 Robust Programs MCQs L2

Quiz
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade