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 statement that creates a new function specifying its name and parameters and the statements it executes.






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






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






4. The set of operations that define an ADT.






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






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






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






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






9. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.






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






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






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






13. A special character that causes the cursor to move to the next tab stop on the current line.






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






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






16. The node that refers to a given node.






17. A numerical value that does not change during the execution of a program.






18. The structure of a program.






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






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






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






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






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






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






25. The rules that determine which member of a queue is removed next.






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






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






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






29. A property of a program that can run on more than one kind of computer.






30. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.






31. A new class created by inheriting from an existing class; also called a subclass.






32. A name that refers to a value.






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






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






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






36. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.






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






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






39. A special character that causes the cursor to move to the beginning of the next line.






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






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






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






43. An operator that takes two operands.






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






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






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






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






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






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






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