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 user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.






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






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






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






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






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






7. An operation whose runtime is a linear function of the size of the data structure.






8. A sequence of one or more characters used to specify the boundary between separate parts of text.






9. To iterate through the elements of a set performing a similar operation on each.






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






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






12. 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?






13. There are exactly two boolean values: True and False.






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






15. A function that returns a boolean value.






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






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






18. A process for developing a program.






19. A set of values. The type of a value determines how it can be used in expressions. So far the types you have seen are integers (type int) and floating-point numbers (type float) and strings (type str).






20. The process of formulating a problem and finding a solution and expressing the solution.






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






22. The first part of a compound statement. Headers begin with a keyword and end with a colon (:)






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






24. An assertion that must be true in order for a method to work correctly.






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






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






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






28. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.






29. An item of data contained in a node.






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






31. An organization of data for the purpose of making it easier to use.






32. The statement in a recursive function with is a call to itself.






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






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. A variable used to count something - usually initialized to zero and incremented in the body of a loop.






36. A program (or the person who wrote it) that uses an ADT.






37. The statements inside a loop.






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






39. A data type in which the values are made up of components or elements that are themselves values.






40. A way to traverse a tree - visiting each node before its children.






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






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






43. A library is a collection of software used as tools in the development of other software.






44. A tree in which each node refers to zero or one or two dependent nodes.






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






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






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






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






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






50. A statement that consists of two parts: header - which begins with a keyword determining the statement type and ends with a colon. body - containing one or more statements indented the same amount from the header.