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 dot operator ( .) permits access to attributes and functions of a module.






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






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






4. A style of program design in which the majority of functions are pure.






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






6. An integer variable or value that indicates an element of a list.






7. One of the nodes referred to by a node.






8. Temporary storage of a precomputed value to avoid redundant computation.






9. The second part of a compound statement. The body consists of a sequence of statements all indented the same amount from the beginning of the header.






10. The process of calling the function that is currently executing.






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






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






13. A list of the functions that are executing - printed when a runtime error occurs. Also commonly refered to as a stack trace since it lists the functions in the order in which they are stored in the runtime stack.






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






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






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






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






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






19. An object that belongs to a class.






20. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.






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






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






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






24. The code (or the person who wrote it) that implements an ADT.






25. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).






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






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






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






29. A statement that causes the current iteration of a loop to end.






30. The value provided as the result of a function call.






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






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






33. A loop inside the body of another loop.






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






35. One of the operators that compares two values: == or != or > or < or >= and <=.






36. The rules that determine which member of a queue is removed next.






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






38. A data structure that implements a collection using a sequence of linked nodes.






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






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






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






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






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






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






45. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.






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






47. A data type that contains a sequence of elements of any type - like a list but is immutable. Can be used wherever an immutable type is required.






48. An item of data contained in a node.






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






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