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 set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






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






3. One program structure within another - such as a conditional statement inside a branch of another conditional statement.






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






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






6. The interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified it defaults to 1.






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






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






9. A kind of data structure that can contain data of any type.






10. A function that yields a return value.






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






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






13. An operator that takes two operands.






14. A function that returns a boolean value.






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






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






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






18. A process for developing a program.






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






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






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






22. The meaning of a program.






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






24. A bottom-most node in a tree with no children.






25. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.






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






27. An operation whose runtime does not depend on the size of the data structure.






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






29. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.






30. To signal an exception using the raise statement.






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






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






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






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






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






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






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






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






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






40. A variable used to count something - usually initialized to zero and incremented in the body of a loop.






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






42. A statement that controls the flow of execution depending on some condition.






43. The sequence of characters read into the command interpreter in a command line interface.






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






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






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






47. The structure of a program.






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






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






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