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 reserved word that is used by the compiler to parse program; you cannot use keywords like if or def or while as variable names.






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






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






4. Another name for a runtime error.






5. To create an instance of a class.






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






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






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






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






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






11. An expression that is either true or false.






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






13. An error that occurs at runtime.






14. The class from which a child class inherits.






15. A logical error which stops a program from performing.






16. A conditional branch with more than two possible flows of execution.






17. To execute a program in a high-level language by translating it one line at a time.






18. A general process for solving a category of problems.






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






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






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






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






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






24. Any of the data types that consist of an ordered set of elements with each element identified by an index.






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






26. An error in a program that makes it impossible to parse






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






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






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






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






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






32. A step-by-step process for solving a category of problems.






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






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






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






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






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






38. A string displayed by a command line interface indicating that commands can be entered.






39. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






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






41. An embedded reference used to link one object to another.






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






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






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






45. Repeated execution of a set of programming statements.






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






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






48. The set of nodes equidistant from the root.






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






50. A linked list with a single node.