1) What is an algorithm? a) A series of step-by-step instructions to solve a problem b) Software that analyses data for programming c) A hardware device that stores data 2) What is a variable? a) Data that is stored in a memory location, that cannot be changed b) Data that is stored in a memory location, that can be changed c) Data that is produced by a computer, that cannot be changed 3) What is pseudocode used for? a) To program every piece of software b) To plan algorithms using a specific programming language c) To plan algorithms using plain English without following any specific syntax 4) What shape represents a decision in a flowchart? a) A parallelogram b) A rectangle c) A diamond 5) What is syntax? a) A way to plan algorithms in plain English b) The set of rules about how to use a particular programming language c) The structure used to create a flowchart for a algorithm 6) In computing terms, what is the difference between the data values 2 and "2"? a) There is no difference, they are both characters. b) 2 is an integer, "2" is a character c) 2 is an integer, "2" is a string. 7) In terms of data values, what are characters? a) Letters, digits and punctuation marks. b) Letters and punctuation marks c) Letters. 8) What is a variable? a) A number b) A place in memory that holds a data value that changes c) A data value that changes. 9) What is a string? a) A type of variable that hold data values made up of ordered sequences of characters b) A data type that holds letters c) A type of variable that hold characters. 10) Which one of the following is not one of three programming constructs a) Sequence b) Selection c) Iteration d) Pseudocode 11) A variable is needed to record a student's surname. Which of the following would be the most meaningful variable name? a) name b) student_surname c) studentName 12) How can strings and variables be told apart? a) The data in a string is stored inside quotes. b) By its name. c) By its size. 13) In programming what name is given to the data type which represents decimal numbers? a) Integers. b) Strings. c) Floating point numbers 14) In programming what name is given to the data type which represents whole numbers? a) Integers b) Strings c) Floating point numbers. 15) Which statement is used to specify a decimal number? a) int b) str c) float 16) What does int stands for? a) interchange b) integer c) enter value 17) What does str stands for ? a) start program b) store data c) String.

Year-11-Programming lesson2

Leaderboard

Estilo ng visual

Mga pagpipilian

Magpalit ng template

Ibalik ng awtomatikong pag-save: ?