What are the three basic programming concepts?
Sequence, selection and iteration
Sequence, selection and looping
Sequence, iteration and looping
What is a variable?
A named piece of memory that holds a value which can be changed as a program is running
A value that usually changes as a program is running
A named piece of memory that holds a value which cannot be changed as a program is running
What is a constant?
A value that does not usually change as a program is running
A named piece of memory that holds a value which usually changes as a program is running
Giving a variable a value is known as what?
Equivalence
Assignment
Declaration
Which of the following statements implement count controlled iteration?
FOR ENDFOR
REPEAT UNTIL
WHILE ENDWHILE
Which form of condition controlled iteration tests the condition at the end of the loop?
Which form of condition controlled iteration tests the condition at the start of the loop?
Which of the following is another name for iteration?
Selecting
Measuring
Looping
What is a subroutine?
A piece of code written in a separate module (file)
A piece of code that is smaller than the main program
A named piece of code written outside of the main program
Which of the following are all benefits of subroutines?
Subroutines are easier to debug, they save programmers from rewriting lots of code many times and only one programmer can work on a particular program
Subroutines are easier to share, they are very difficult to debug and only one programmer can work on a particular program
Subroutines save programmers from rewriting lots of code many times, they are easier to debug and multiple programmers can work on the same program