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. Another name for object code that is ready to be executed.






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






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






4. A function that can operate on more than one type. If all the operations in a function can be applied to a type then the function can be applied to a type.






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






6. The meaning of a program.






7. An error that does not occur until the program has started to execute but that prevents the program from continuing.






8. A part of a string (substring) specified by a range of indices.






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






10. A way of writing mathematical expressions with the operators between the operands.






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






12. A statement that assigns a value to a name (variable).






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






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






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






16. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.






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






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






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






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






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






22. A reference to a list node can be treated as a single object or as the first in a list of nodes.






23. A process for developing a program.






24. A data type which can be modified.






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






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






27. One of the possible paths of the flow of execution determined by conditional execution.






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






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






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






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






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






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






34. A reference stored in an attribute of an object.






35. To join two strings end-to-end.






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






37. The set of nodes equidistant from the root.






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






39. A way of writing mathematical expressions with the operators after the operands.






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






41. A name given to a variable.






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






43. A name that refers to a value.






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






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






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






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






48. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.






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






50. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.