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. An operation defined in linear algebra that multiplies two Points and yields a numeric value.






2. To replace something unnecessarily specific (like a constant value) with something appropriately general (like a variable or parameter). It makes code more versatile - more likely to be reused and sometimes even easier to write.






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






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






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






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






7. An implementation of a queue using a linked list.






8. A name given to a variable.






9. A visual cue that tells the user to input data.






10. A data type which can be modified.






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






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






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






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






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






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






17. An error in a program.






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






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






20. Making more than one assignment to the same variable during the execution of a program.






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






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






23. An operation whose runtime does not depend on the size of the data structure.






24. A program that translates higher level programming languages into basic instructions the CPU can understand.






25. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.






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






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






28. A group of consecutive statements with the same indentation.






29. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.






30. A variable or value used to select a member of an ordered set - such as a character from a string.






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






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






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






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






35. A way of writing a mathematical expression with each operator appearing before its operands.






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






37. A set of values. The type of a value determines how it can be used in expressions. So far the types you have seen are integers (type int) and floating-point numbers (type float) and strings (type str).






38. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






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






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






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






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






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






44. A class definition that implements an ADT with method definitions that are invocations of other methods - sometimes with simple transformations. It does no significant work but it improves or standardizes the interface seen by the client.






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






46. A data type in which the elements can be modified. It is a compound type - e.g. lists.






47. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.






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






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






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