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. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






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






3. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.






4. Any one of the languages that people have designed for specific purposes - such as representing mathematical ideas or computer programs; all programming languages are formal languages.






5. The process of calling the function that is currently executing.






6. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.






7. Another name for object code that is ready to be executed.






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






9. One program structure within another - such as a conditional statement inside a branch of another conditional statement.






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






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






12. A variable used as part of the terminating condition of a loop.






13. A graphical representation of a set of variables and the values to which they refer.






14. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.






15. A variable or value used to select a member of an ordered set - such as a character from a string.






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






17. A compound data type that is often used to model a thing or concept in the real world.






18. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.






19. A method for naming and accessing and organizing files and the data they contain.






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






21. The order in which statements are executed during a program run.






22. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).






23. An ordered set of objects waiting for a service of some kind.






24. A variable that is defined inside a class definition but outside any method. These are accessible from any method in the class and are shared by all instances of the class.






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






26. A branch of the conditional statement in a recursive function that does not result in a recursive call.






27. A style of program design in which the majority of functions are pure.






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






29. An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.






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






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






32. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.






33. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.






34. The set of operations that define an ADT.






35. The name and location of a file within a file system.






36. A variable in the sys module which stores a list of command line arguments passed to a program at run time.






37. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).






38. Temporary storage of a precomputed value to avoid redundant computation.






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






40. A way of writing a mathematical expression with each operator appearing before its operands.






41. Memory which requires an electrical current to maintain state. Information stored is lost when the computer is turned off.






42. An escape character '' followed by one or more printable characters used to designate a nonprintable character.






43. A statement that assigns a value to a name (variable).






44. One of the named data items that makes up an instance.






45. To represent one set of values using another set of values by constructing a mapping between them.






46. To create an instance of a class.






47. A named collection of files - also called a folder.






48. An error in a program.






49. A combination of variables and operators and values that represents a single result value.






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.