Lavington ICT
Test por , creado hace más de 1 año

a451 2.1.7 ocr computing

211
7
0
Lavington ICT
Creado por Lavington ICT hace alrededor de 9 años
Cerrar

2.1.7 Programming

Pregunta 1 de 15

1

An algorithm can be defined as...

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación

Pregunta 2 de 15

1

Sequence is when...

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación

Pregunta 3 de 15

1

Selection is when...

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación

Pregunta 4 de 15

1

Selection statements include...

Selecciona una de las siguientes respuestas posibles:

  • IF, THEN, ELSE & CASE

  • IF,ELSE & CASE

  • IF, THAN, ELSE & CASE

  • IF, THEN, ELSE, ELIF & CASE

Explicación

Pregunta 5 de 15

1

In computer programming 'iteration' is used to...

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación

Pregunta 6 de 15

1

In programming a translator is used to convert different programming languages into machine code. There are
three types...

Selecciona una de las siguientes respuestas posibles:

  • Assembler, interpreter & compiler.

  • Assembler, identifier & compiler.

  • Assembler, identifier & interpreter.

  • Compiler, identifier & interpreter.

Explicación

Pregunta 7 de 15

1

An interpreter is a translator that converts high level languages into machine code. It does this by...

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación

Pregunta 8 de 15

1

A compiler is a translator that converts high level programming languages into machine code. It does this by...

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación

Pregunta 9 de 15

1

An assembler translator...

Selecciona una de las siguientes respuestas posibles:

  • 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

Explicación

Pregunta 10 de 15

1

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...

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación

Pregunta 11 de 15

1

Logic errors in programs are...

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación

Pregunta 12 de 15

1

An integer is a data type that typically takes up 2 bytes of memory. Which of the following is an integer?

Selecciona una de las siguientes respuestas posibles:

  • 2.6

  • "2.6"

  • 26

  • 26.0

Explicación

Pregunta 13 de 15

1

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?

Selecciona una de las siguientes respuestas posibles:

  • 26

  • "26.0"

  • 260

  • 2.60

Explicación

Pregunta 14 de 15

1

A string is a data type that typically takes up 1 byte per character. Which of the following is a string?

Selecciona una de las siguientes respuestas posibles:

  • hello world

  • "!h3ll0 world4"

  • "hello w0rld

  • h3llo world"

Explicación

Pregunta 15 de 15

1

What is the main difference between a constant and a variable?

Selecciona una de las siguientes respuestas posibles:

  • 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.

Explicación