Introduction to programming

Descrição

programming is writing computer code to create a program, in order to solve a problem. Programs consist of a series of instructions to tell a computer exactly what to do and how to do it.
Ar___. M____
Quiz por Ar___. M____, atualizado more than 1 year ago
Ar___. M____
Criado por Ar___. M____ quase 10 anos atrás
145
0

Resumo de Recurso

Questão 1

Questão
What is a programming language?
Responda
  • An artificial language used to program a computer
  • Written English
  • The make and model of a computer

Questão 2

Questão
What is machine code?
Responda
  • A programming language that a computer understands
  • The serial number of a computer
  • The make and model of a computer

Questão 3

Questão
What is a program?
Responda
  • A video that is watched on a computer
  • A series of step-by-step instructions that tell a computer how to solve a task
  • A flowchart written on a computer

Questão 4

Questão
What is a statement?
Responda
  • A keyword in a programming language
  • A box in a flowchart
  • A calculation performed in a programming language

Questão 5

Questão
What is an instruction?
Responda
  • A box in a flowchart
  • A calculation performed in a programming language
  • One or more statements grouped together to instruct the computer to perform a task

Questão 6

Questão
What does the statement 'print' do?
Responda
  • Output a hard copy of a program to a printer
  • Output a message on the screen
  • Print a hard copy of a flowchart to a printer

Questão 7

Questão
What does the statement 'while' do?
Responda
  • Tell the computer to wait for a while before continuing with the program
  • Implement selection
  • Implement a loop

Questão 8

Questão
What does the statement 'def' do?
Responda
  • Creates a function or a procedure
  • Implement a loop
  • Tell the computer to wait for a while before continuing with the program

Questão 9

Questão
What do the statements 'if' and 'else' do?
Responda
  • Implement selection
  • Implement a loop
  • Tell the computer to wait for a while before continuing with the program

Questão 10

Questão
How many statements are there in this line of code: print("If I am 17, I can drive a car")?
Responda
  • There are two statements - 'print' and 'if'
  • There are no statements
  • There is one statement - 'print'