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 reference stored in an attribute of an object.






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






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






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






5. The dot operator ( .) permits access to attributes and functions of a module.






6. A conditional branch with more than two possible flows of execution.






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






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






9. The first part of a compound statement. Headers begin with a keyword and end with a colon (:)






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






11. An error that does not occur until the program has started to execute but that prevents the program from continuing.






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






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






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






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






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






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






18. One of the basic elements of the syntactic structure of a program - analogous to a word in a natural language.






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






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






21. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?






22. A numerical result that is too large to be represented in a numerical format.






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






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






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






26. To examine a program and analyze the syntactic structure.






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






28. To create a new object that has the same value as an existing object.






29. A reference to a list node can be treated as a single object or as the first in a list of nodes.






30. A special symbol that represents a simple computation like addition or multiplication or string concatenation.






31. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).






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






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






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






35. A data type which can be modified.






36. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.






37. One of the values on which an operator operates.






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






39. One of the possible paths of the flow of execution determined by conditional execution.






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






41. A collection of key-value pairs that maps from keys to values.






42. To create an instance of a class.






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






44. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.






45. Another name for a runtime error.






46. An expression in parentheses that acts as a single operand in a larger expression.






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






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






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






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