2.1.7 Programming

Descripción

a451 2.1.7 ocr computing
Lavington ICT
Test por Lavington ICT, actualizado hace más de 1 año
Lavington ICT
Creado por Lavington ICT hace más de 9 años
213
7

Resumen del Recurso

Pregunta 1

Pregunta
An algorithm can be defined as...
Respuesta
  • defined set of steps that can be used to complete a task.
  • a set of steps that can be used to complete a task.
  • a random set of steps that can be used to complete a task.
  • an order of doing things correctly to complete something.

Pregunta 2

Pregunta
Sequence is when...
Respuesta
  • instructions are executed one after another.
  • instructions are executed one after another in a series.
  • instructions are executed by the user.
  • instructions are executed one after another but not always in series.

Pregunta 3

Pregunta
Selection is when...
Respuesta
  • a program will execute instructions regardless of what the use does.
  • a program will execute certain instructions based upon the users actions.
  • a program will execute certain instructions based on conditions.
  • a program will execute all instructions regardless of what the user does.

Pregunta 4

Pregunta
Selection statements include...
Respuesta
  • IF, THEN, ELSE & CASE
  • IF,ELSE & CASE
  • IF, THAN, ELSE & CASE
  • IF, THEN, ELSE, ELIF & CASE

Pregunta 5

Pregunta
In computer programming 'iteration' is used to...
Respuesta
  • loop around and around a piece of code until the correct answer is chosen.
  • loop around a piece of code until a condition is met that activates the next part of the program.
  • loop around and around a piece of code until a condition is met that ends the iteration.
  • loop twice around a piece of code until a condition is met that ends the iteration.

Pregunta 6

Pregunta
In programming a translator is used to convert different programming languages into machine code. There are three types...
Respuesta
  • Assembler, interpreter & compiler.
  • Assembler, identifier & compiler.
  • Assembler, identifier & interpreter.
  • Compiler, identifier & interpreter.

Pregunta 7

Pregunta
An interpreter is a translator that converts high level languages into machine code. It does this by...
Respuesta
  • working three lines at a time, checking syntax, converting to machine code and executing the code.
  • working one line at a time, converting to machine code, checking syntax and executing the code.
  • working one line at a time, checking syntax, converting to machine code and executing the code.
  • working three lines at a time, converting to machine code, checking syntax and executing the code.

Pregunta 8

Pregunta
A compiler is a translator that converts high level programming languages into machine code. It does this by...
Respuesta
  • working through the whole program (source code), checking the syntax, then converting to machine code and creating an object. The object code is executed not the source code.
  • working through the whole program (source code), then converting to machine code and creating an executable object. The object code is executed not the source code.
  • working through the whole program (source code) one line at a time, checking the syntax, then converting to machine code and creating an executable object. The object code is executed not the source code.
  • working through the whole program (source code), checking the syntax, then converting to machine code and creating an executable object. The object code is executed not the source code.

Pregunta 9

Pregunta
An assembler translator...
Respuesta
  • converts assembly language programs into machine code.
  • converts programs created in any language into machine code
  • converts programs created in any high level language into machine code

Pregunta 10

Pregunta
Syntax is a set of rules that defines how a program statements must be written in order for the translator to understand them. A syntax error is...
Respuesta
  • an error in the spelling of program statements.
  • an error in the format of the program statements such as missing keywords.
  • an error in the format of the program statements such as missing semi-colons or keywords spelt incorrectly.
  • an error in the punctuation of program statements.

Pregunta 11

Pregunta
Logic errors in programs are...
Respuesta
  • errors in program statements that means the outcome is unexpected, even though the program will run.
  • errors in the algorithm that means the outcome is expected, even though the program will run.
  • errors in the algorithm that means the outcome is unexpected, even though the program will run.
  • errors in the algorithm that means the outcome returns nothing as the program will not run.

Pregunta 12

Pregunta
An integer is a data type that typically takes up 2 bytes of memory. Which of the following is an integer?
Respuesta
  • 2.6
  • "2.6"
  • 26
  • 26.0

Pregunta 13

Pregunta
A real number (or float) is a data type for fractional numbers that typically takes up 4 bytes of memory. Which of the following is a real number?
Respuesta
  • 26
  • "26.0"
  • 260
  • 2.60

Pregunta 14

Pregunta
A string is a data type that typically takes up 1 byte per character. Which of the following is a string?
Respuesta
  • hello world
  • "!h3ll0 world4"
  • "hello w0rld
  • h3llo world"

Pregunta 15

Pregunta
What is the main difference between a constant and a variable?
Respuesta
  • A constant's value remains the same where as a variables value can change.
  • A constant's value only changes if a variables value changes.
  • A constant's value remains the same where as a variables value can be changed by the user.
  • A constant's value remains the same where as a variables value can change be changed, but only once.
Mostrar resumen completo Ocultar resumen completo

Similar

GCSE Biology B2 (OCR)
Usman Rauf
C1 Quiz
Leah Firmstone
B7 Quiz - The Skeleton, Movement and Exercise
Leah Firmstone
OCR Physics P2 revision cards
Alex Howard
P2 Quiz
Leah Firmstone
GCSE Physics P7 (OCR) - Light, Telescopes, and Images
Josh Price
Voices and vocal techniques
Rosa Brookes
GCSE Physics P7 (OCR) - Astronomy
Josh Price
GCSE Physics P7 (OCR) - Sun, and Stars
Josh Price
B7.1-3 - Peak Performance
franimal
GCSE Physics P7 (OCR) - Mapping the Universe
Josh Price