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 program stored in a file (usually one that will be interpreted).






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






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






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






5. A branch of the conditional statement in a recursive function that does not result in a recursive call.






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






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






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






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






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






11. A program (or the person who wrote it) that uses an ADT.






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






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






14. Decrease by 1.






15. Nodes that share a common parent.






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






17. A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language.






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






19. The node that refers to a given node.






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






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






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






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






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






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






26. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.






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






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






29. A loop inside the body of another loop.






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






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






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






33. Part of a program that can never be executed - often because it appears after a return statement.






34. The order in which statements are executed during a program run.






35. A change in the state of a program made by calling a function that is not a result of reading the return value from the function. Can only be produced by modifiers.






36. An item of data contained in a node.






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






38. Another name for object code that is ready to be executed.






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






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






41. A name used inside a function to refer to the value passed as an argument.






42. A queueing policy in which the first member to arrive is the first to be removed.






43. A style of programming in which data and the operations that manipulate it are organized into classes and methods.






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






45. A function that returns a boolean value.






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






47. An operator that takes two operands.






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






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






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