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. The statements inside a loop.






2. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.






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






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






5. A function that yields a return value.






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






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






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






9. An implementation of a queue using a linked list.






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






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






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






14. A named collection of objects where each object is identified by an index.






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






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






17. The class from which a child class inherits.






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






19. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.






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






21. An operator that takes two operands.






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






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






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






25. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.






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






27. Use of the dot operator '.' to access functions inside a module.






28. To execute a program in a high-level language by translating it one line at a time.






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






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






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






32. Having no specific pattern. Unpredictable.






33. A thing to which a variable can refer.






34. A programming construct that waits for events and processes them.






35. A function that can operate on more than one type. If all the operations in a function can be applied to a type then the function can be applied to a type.






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






37. Another name for a runtime error.






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






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






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






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






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






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






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






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






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






47. An operation defined in linear algebra that multiplies each of the coordinates of a Point by a numeric value.






48. Calling one function from within the body of another or using the return value of one function as an argument to the call of another.






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






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