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 variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.






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






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






4. An ADT that performs the operations one might perform on a queue.






5. A list that is an element of another list.






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






7. An item of data contained in a node.






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






9. To signal an exception using the raise statement.






10. The set of nodes equidistant from the root.






11. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.






12. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.






13. A numerical value that does not change during the execution of a program.






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






15. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a






16. To examine a program and analyze the syntactic structure.






17. A new class created by inheriting from an existing class; also called a subclass.






18. A variable defined inside a module - accessed by using the dot operator ( .).






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






20. An error that occurs at runtime.






21. Use of the dot operator '.' to access functions inside a module.






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






23. To replace something unnecessarily specific (like a constant value) with something appropriately general (like a variable or parameter). It makes code more versatile - more likely to be reused and sometimes even easier to write.






24. An automatic procedure used to validate that individual units of code are working properly.






25. An error in a program that makes it do something other than what the programmer intended.






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. To prevent an exception from terminating a program using the try and except statements.






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






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






30. A name given to a variable.






31. Generalization by reducing the information content of a concept.






32. A compound data type whose elements cannot be assigned new values.






33. An operation defined in linear algebra that multiplies two Points and yields a numeric value.






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






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






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






37. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.






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






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






40. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.






41. An element of a list - usually implemented as an object that contains a reference to another object of the same type.






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






43. A loop in which the terminating condition is never satisfied.






44. An implementation of a queue using a linked list.






45. The boolean expression in a conditional statement that determines which branch is executed.






46. A collection of key-value pairs that maps from keys to values.






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






48. An explicit statement that takes a value of one type and computes a corresponding value of another type.






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






50. An integer variable or value that indicates an element of a list.