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 combination of variables and operators and values that represents a single result value.






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






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






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






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






6. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.






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






8. The node that refers to a given node.






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






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






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






12. Code that satisfies the syntactic and semantic requirements of an interface.






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






14. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.






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






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






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






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






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






20. The class from which a child class inherits.






21. The value given to an optional parameter if no argument for it is provided in the function call.






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






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






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






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






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






27. The topmost node in a tree with no parent.






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






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






30. The statements inside a loop.






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






32. A programming construct that waits for events and processes them.






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






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






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






36. A graphical representation of a stack of functions and their variables and the values to which they refer.






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






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






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






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






41. A special character that causes the cursor to move to the beginning of the next line.






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






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






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






45. A software development practice which arrives at a desired feature through a series of small but iterative steps motivated by automated tests which are written first that express increasing refinements of the desired feature.






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






47. A function which has no side effects. It only makes changes to the calling program through its return values.






48. A data item that is mapped to a value in a dictionary. Used to look up values in a dictionary.






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






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