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 special character that causes the cursor to move to the next tab stop on the current line.






2. The order in which statements are executed during a program run.






3. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.






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






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






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






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






8. An organization of data for the purpose of making it easier to use.






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






10. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.






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






12. A named collection of files - also called a folder.






13. A general process for solving a category of problems.






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






15. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.






16. The class from which a child class inherits.






17. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.






18. A data item that is mapped to a value in a dictionary. Used to look up values in a dictionary.






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






20. A name that refers to a value.






21. A way of writing mathematical expressions with the operators after the operands.






22. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.






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






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






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






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






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






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






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






30. Having no specific pattern. Unpredictable.






31. A compound data type that is often used to model a thing or concept in the real world.






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






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






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






35. To simplify an expression by performing the operations in order to yield a single value.






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






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






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






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






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






41. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.






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






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






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






45. A variable used as part of the terminating condition of a loop.






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






47. A data type which can be modified.






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






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






50. The meaning of a program.