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






2. A distinct method of operation within a computer program.






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






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






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






6. The boolean expression in a conditional statement that determines which branch is executed.






7. A group of consecutive statements with the same indentation.






8. The node that refers to a given node.






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






10. Nodes that share a common parent.






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






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






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






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






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






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






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






18. A numerical value that does not change during the execution of a program.






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






20. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.






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






22. An intermediate language between source code and object code. Many modern languages first compile source code into byte code and then interpret the byte code with a program called a virtual machine.






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






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






25. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.






26. The name and location of a file within a file system.






27. A compound data type that is often used to model a thing or concept in the real world.






28. A way to traverse a tree - visiting the children of each node before the node itself.






29. A syntactic container providing a context for names so that the same name can reside in different namespaces without ambiguity.






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






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






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






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






34. Decrease by 1.






35. One of the values on which an operator operates.






36. An invisible marker that keeps track of where the next character will be printed.






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






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






39. The output of the compiler after it translates the program.






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






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






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






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






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






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






46. A character or string used to indicate where a string should be split.






47. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.






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






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






50. Another name for a runtime error.