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. One of the operators that compares two values: == or != or > or < or >= and <=.






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






3. An expression that is either true or false.






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






5. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.






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






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






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






9. A logical error which stops a program from performing.






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






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






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






13. A statement that assigns a value to a name (variable).






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






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






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






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






18. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.






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






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






21. A statement that controls the flow of execution depending on some condition.






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






23. A way to traverse a tree - visiting the children of each node before the node itself.






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






25. An invisible marker that keeps track of where the next character will be printed.






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






27. The statements inside a loop.






28. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.






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






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






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






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






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






34. A kind of data structure that can contain data of any type.






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






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






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






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






39. An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.






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






41. A loop in which the terminating condition is never satisfied.






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






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






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






45. A variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.






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






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






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






49. The class from which a child class inherits.






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