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 ordered set of objects waiting for a service of some kind.






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






3. An error that occurs at runtime.






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






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






6. A data type in which the values are made up of components or elements that are themselves values.






7. A data type comprised of a collection of keys and associated values.






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






9. An operation defined in linear algebra that multiplies two Points and yields a numeric value.






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






11. An integer variable or value that indicates an element of a list.






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






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






14. A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.






15. A numerical result that is too large to be represented in a numerical format.






16. An expression that is either true or false.






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






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






19. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.






20. A reference stored in an attribute of an object.






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






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






23. To create an instance of a class.






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






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






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






27. A thing to which a variable can refer.






28. A part of a string (substring) specified by a range of indices.






29. The boolean expression in a conditional statement that determines which branch is executed.






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






31. The process of formulating a problem and finding a solution and expressing the solution.






32. A function that returns a boolean value.






33. The structure of a program.






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






35. A linked list with a single node.






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






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






38. One of the named data items that makes up an instance.






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






40. The class from which a child class inherits.






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






42. One of the operators that compares two values: == or != or > or < or >= and <=.






43. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.






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






45. A statement which makes the objects contained in a module available for use within another module.






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






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






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






49. The topmost node in a tree with no parent.






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