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 library is a collection of software used as tools in the development of other software.






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






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






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






5. A data structure that implements a collection using a sequence of linked nodes.






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






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






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






9. A distinct method of operation within a computer program.






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






11. A string displayed by a command line interface indicating that commands can be entered.






12. A software development practice which arrives at a desired feature through a series of small but iterative steps motivated by automated tests which are written first that express increasing refinements of the desired feature.






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






14. A file that contains printable characters organized into lines separated by newline characters.






15. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






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






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






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






19. Any one of the languages that people have designed for specific purposes - such as representing mathematical ideas or computer programs; all programming languages are formal languages.






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






21. The value given to an optional parameter if no argument for it is provided in the function call.






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






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






24. The sequence of characters read into the command interpreter in a command line interface.






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






26. An item of data contained in a node.






27. The output of the compiler after it translates the program.






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






29. The value provided as the result of a function call.






30. A program stored in a file (usually one that will be interpreted).






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






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






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






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






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






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






37. A name that refers to a value.






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






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






40. Code that satisfies the syntactic and semantic requirements of an interface.






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






42. One of the values in a list (or other sequence). The bracket operator selects elements of a list.






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






44. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a






45. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.






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






47. There are exactly two boolean values: True and False.






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






49. One program structure within another - such as a conditional statement inside a branch of another conditional statement.






50. The code (or the person who wrote it) that implements an ADT.