WJEC 1.8 Program Construction

WJEC 1.8 Program Construction

9th - 10th Grade

22 Qs

quiz-placeholder

Similar activities

Quiz on Misinformation and Bias

Quiz on Misinformation and Bias

10th Grade - University

18 Qs

Math and IT - Elimination Round

Math and IT - Elimination Round

10th - 12th Grade

20 Qs

latihan soal informatika SMALSA

latihan soal informatika SMALSA

10th Grade

25 Qs

Latihan 2

Latihan 2

9th Grade

20 Qs

Kuis TIK Kelas 4C

Kuis TIK Kelas 4C

10th Grade

20 Qs

ตอบปัญหาคอมพิวเตอร์st

ตอบปัญหาคอมพิวเตอร์st

9th - 12th Grade

20 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

WJEC 1.8 Program Construction

WJEC 1.8 Program Construction

Assessment

Quiz

Computers

9th - 10th Grade

Practice Problem

Medium

Created by

B Bennett

Used 83+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?