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. Multiple variables that contain references to the same object.






2. A process for developing a program.






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






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






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






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






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






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






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






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






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






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






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






14. A statement that creates a new function specifying its name and parameters and the statements it executes.






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






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






17. A list that is an element of another list.






18. Using the output from one function call as the input to another.






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






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






21. Decrease by 1.






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






23. The statements inside a loop.






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






25. A numerical value that does not change during the execution of a program.






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






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






28. Having no specific pattern. Unpredictable.






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






30. A data type that contains a sequence of elements of any type - like a list but is immutable. Can be used wherever an immutable type is required.






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






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






33. To signal an exception using the raise statement.






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






35. A program in a high-level language before being compiled.






36. The structure of a program.






37. A data type which can be modified.






38. A thing to which a variable can refer.






39. An ADT that performs the operations one might perform on a queue.






40. An expression that is either true or false.






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






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






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






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






45. An explicit statement that takes a value of one type and computes a corresponding value of another type.






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






47. A variable that is defined inside a class definition but outside any method. These are accessible from any method in the class and are shared by all instances of the class.






48. The meaning of a program.






49. The ability to define a new class that is a modified version of a previously defined class.






50. To read a string of characters or tokens and analyze its grammatical structure.