Test your basic knowledge |

Programming

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. The statements inside a loop.






2. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.






3. A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result.






4. A statement that creates a new function specifying its name and parameters and the statements it executes.






5. A data structure that implements a collection using a sequence of linked nodes.






6. A queueing policy in which the first member to arrive is the first to be removed.






7. A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.






8. A character that is used to separate tokens such as punctuation in a natural language.






9. The output of the compiler after it translates the program.






10. The second part of a compound statement. The body consists of a sequence of statements all indented the same amount from the beginning of the header.






11. The ability to define a new class that is a modified version of a previously defined class.






12. To signal an exception using the raise statement.






13. An expression in parentheses that acts as a single operand in a larger expression.






14. A way to traverse a tree - visiting the children of each node before the node itself.






15. An operation whose runtime does not depend on the size of the data structure.






16. Multiple variables that contain references to the same object.






17. A change in the state of a program made by calling a function that is not a result of reading the return value from the function. Can only be produced by modifiers.






18. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.






19. An ADT that defines the operations one might perform on a priority queue.






20. A numerical result that is too large to be represented in a numerical format.






21. The node that refers to a given node.






22. The process of finding and removing any of the three kinds of programming errors.






23. A signal such as a keyboard press or mouse click or message from another program.






24. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






25. A set of instructions for solving a class of problems by a mechanical and unintelligent process.






26. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






27. One of the possible paths of the flow of execution determined by conditional execution.






28. Making more than one assignment to the same variable during the execution of a program.






29. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.






30. One of the values on which an operator operates.






31. Code that is used during program development but is not part of the final version.






32. A data type that contains a sequence of elements of any type - like a list but is immutable. Can be used wherever an immutable type is required.






33. An operator that takes two operands.






34. A function that returns a boolean value.






35. An expression that is either true or false.






36. A statement which makes the objects contained in a module available for use within another module.






37. A name given to a variable.






38. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.






39. One of the values in a list (or other sequence). The bracket operator selects elements of a list.






40. A statement that causes the current iteration of a loop to end.






41. An assertion that should be true of an object at all times (except perhaps while the object is being modified).






42. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?






43. A character or string used to indicate where a string should be split.






44. A data type in which the elements can be modified. It is a compound type - e.g. lists.






45. Repeated execution of a set of programming statements.






46. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.






47. A situation in which two or more names in a given namespace cannot be unambiguously resolved.






48. The sequence of characters read into the command interpreter in a command line interface.






49. A property of a program that can run on more than one kind of computer.






50. The interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified it defaults to 1.