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 loop inside the body of another loop.






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






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






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






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






6. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.






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






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






9. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.






10. A variable used to count something - usually initialized to zero and incremented in the body of a loop.






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






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






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






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






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






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






17. A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.






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






19. One of the operators that combines boolean expressions: and or and not.






20. An ADT that performs the operations one might perform on a queue.






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






22. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.






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. Temporary storage of a precomputed value to avoid redundant computation.






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






26. A function that returns a boolean value.






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






28. A program in a high-level language before being compiled.






29. Repeated execution of a set of programming statements.






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






31. An operator that takes two operands.






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






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






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






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






36. A statement that controls the flow of execution depending on some condition.






37. It prevents a compiler from compiling.






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






39. An ordered set of objects waiting for a service of some kind.






40. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.






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






42. A bottom-most node in a tree with no children.






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






44. A named collection of files - also called a folder.






45. The statements inside a loop.






46. A variable defined inside a module - accessed by using the dot operator ( .).






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






48. A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.






49. A situation in which two or more names in a given namespace cannot be unambiguously resolved.






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