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 string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






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






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






4. A name given to a variable.






5. Having no specific pattern. Unpredictable.






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






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






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






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






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






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






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






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






14. A class definition that implements an ADT with method definitions that are invocations of other methods - sometimes with simple transformations. It does no significant work but it improves or standardizes the interface seen by the client.






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






16. The meaning of a program.






17. To represent one set of values using another set of values by constructing a mapping between them.






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






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






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






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






22. A compound data type that is often used to model a thing or concept in the real world.






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






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






25. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.






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






27. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.






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






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






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






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






32. An embedded reference used to link one object to another.






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






34. One of the named data items that makes up an instance.






35. A software development practice which arrives at a desired feature through a series of small but iterative steps motivated by automated tests which are written first that express increasing refinements of the desired feature.






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






37. The set of nodes equidistant from the root.






38. Repeated execution of a set of programming statements.






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






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






41. An explicit statement that takes a value of one type and computes a corresponding value of another type.






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






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






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






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






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. A way of writing mathematical expressions with the operators between the operands.






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






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






50. An operator that takes two operands.