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. Use of the dot operator '.' to access functions inside a module.






2. A loop inside the body of another loop.






3. Calling one function from within the body of another or using the return value of one function as an argument to the call of another.






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






5. The block of statements in a compound statement that follows the header.






6. The set of operations that define an ADT.






7. Both as a noun and as a verb - it means to increase by 1.






8. A way of writing mathematical expressions with the operators after the operands.






9. A variable defined inside a function. A local variable can only be used inside its function.






10. A way of developing programs starting with a prototype and gradually testing and improving it.






11. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.






12. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.






13. A style of programming in which data and the operations that manipulate it are organized into classes and methods.






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






15. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.






16. A recursive call that occurs as the last statement (at the tail) of a function definition.






17. Using the output from one function call as the input to another.






18. The rules that determine which member of a queue is removed next.






19. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.






20. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.






21. A reference to a list node can be treated as a single object or as the first in a list of nodes.






22. The set of nodes equidistant from the root.






23. The statements inside a loop.






24. A special character that causes the cursor to move to the next tab stop on the current line.






25. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.






26. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.






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






28. To create a new object that has the same value as an existing object.






29. A process for developing a program.






30. A thing to which a variable can refer.






31. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.






32. A list of the functions that are executing - printed when a runtime error occurs. Also commonly refered to as a stack trace since it lists the functions in the order in which they are stored in the runtime stack.






33. The dot operator ( .) permits access to attributes and functions of a module.






34. A data type (usually a collection of objects) that is defined by a set of operations but that can be implemented in a variety of ways.






35. To prevent an exception from terminating a program using the try and except statements.






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






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






38. Function-like attribute of an object. Methods are invoked (called) on an object using the dot operator.






39. A function that returns a boolean value.






40. An object that belongs to a class.






41. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.






42. A name given to a variable.






43. A method that acts as a middleman between a caller and a helper method - often making the method easier or less error-prone to invoke.






44. A name used inside a function to refer to the value passed as an argument.






45. A variable used to store an intermediate value in a complex calculation.






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






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






48. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.






49. A visual cue that tells the user to input data.






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