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. An implementation of a queue using a linked list.






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. The value given to an optional parameter if no argument for it is provided in the function call.






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






5. A reserved word that is used by the compiler to parse program; you cannot use keywords like if or def or while as variable names.






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






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






8. To iterate through the elements of a set performing a similar operation on each.






9. An ADT that defines the operations one might perform on a priority queue.






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






11. To signal an exception using the raise statement.






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






13. A statement which makes the objects contained in a module available for use within another module.






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






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






16. An operation defined in linear algebra that multiplies two Points and yields a numeric value.






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






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






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






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






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






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






23. A way to traverse a tree - visiting each node before its children.






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






25. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.






26. An operator that takes two operands.






27. A function that returns a boolean value.






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






29. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.






30. A name that refers to a value.






31. Decrease by 1.






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






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






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






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






36. Code that is used during program development but is not part of the final version.






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






38. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.






39. a sequence of instructions that specifies to a computer actions and computations to be performed.






40. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.






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






42. A programming language that is designed to be easy for humans to read and write.






43. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






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






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






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






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






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






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






50. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.