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 branch of the conditional statement in a recursive function that does not result in a recursive call.






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






3. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.






4. A compound data type whose elements cannot be assigned new values.






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






6. A thing to which a variable can refer.






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






8. The block of statements in a compound statement that follows the header.






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






10. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.






11. Multiple variables that contain references to the same object.






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






13. A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.






14. A method for naming and accessing and organizing files and the data they contain.






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






16. Repeated execution of a set of programming statements.






17. A function which has no side effects. It only makes changes to the calling program through its return values.






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






19. A loop inside the body of another loop.






20. The class from which a child class inherits.






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






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






23. An escape character '' followed by one or more printable characters used to designate a nonprintable character.






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






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






26. Another name for a runtime error.






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






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






29. The second part of a compound statement. The body consists of a sequence of statements all indented the same amount from the beginning of the header.






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






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






32. An assertion that must be true in order for a method to work correctly.






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






34. A recursive call that occurs as the last statement (at the tail) of a function definition.






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






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






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






38. A way of developing programs starting with a prototype and gradually testing and improving it.






39. A queueing policy in which the first member to arrive is the first to be removed.






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






41. An error that occurs at runtime.






42. A variable defined inside a function. A local variable can only be used inside its function.






43. To create an instance of a class.






44. An expression that is either true or false.






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






46. A process for developing a program.






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






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






49. Any one of the languages that people speak that evolved naturally.






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