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. An invisible marker that keeps track of where the next character will be printed.






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






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






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






5. An element of a list - usually implemented as an object that contains a reference to another object of the same type.






6. A program that translates higher level programming languages into basic instructions the CPU can understand.






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






8. Code that satisfies the syntactic and semantic requirements of an interface.






9. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.






10. The statements inside a loop.






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






12. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.






13. A property of a program that can run on more than one kind of computer.






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






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






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






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






18. A graphical representation of a set of variables and the values to which they refer.






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






20. A data type comprised of a collection of keys and associated values.






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






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






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






24. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.






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






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






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






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






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






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






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






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






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






34. Memory which requires an electrical current to maintain state. Information stored is lost when the computer is turned off.






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






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






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






38. A variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.






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






40. A combination of variables and operators and values that represents a single result value.






41. A linked list with a single node.






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






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






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






45. A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result.






46. An automatic procedure used to validate that individual units of code are working properly.






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






48. Repeated execution of a set of programming statements.






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






50. The set of nodes equidistant from the root.