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. One of the operators that combines boolean expressions: and or and not.






2. Any one of the languages that people speak that evolved naturally.






3. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.






4. A name that refers to a value.






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






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






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






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






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






10. A kind of data structure that can contain data of any type.






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






12. The structure of a program.






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






14. Repeated execution of a set of programming statements.






15. The set of operations that define an ADT.






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






17. A tree in which each node refers to zero or one or two dependent nodes.






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






19. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a






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






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






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






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. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.






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






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






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






28. A function that yields a return value.






29. A function which has no side effects. It only makes changes to the calling program through its return values.






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






31. An error in a program that makes it impossible to parse






32. A method that acts as a middleman between a caller and a helper method - often making the method easier or less error-prone to invoke.






33. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.






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






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






36. A way of writing a mathematical expression with each operator appearing before its operands.






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






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






39. The sequential accessing of each element in a list.






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






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






42. A data type (usually a collection of objects) that is defined by a set of operations but that can be implemented in a variety of ways.






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






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






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






46. A thing to which a variable can refer.






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






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






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






50. A set of instructions for solving a class of problems by a mechanical and unintelligent process.