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. Use of the dot operator '.' to access functions inside a module.






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






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






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






5. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.






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






7. A programming construct that waits for events and processes them.






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






9. Nodes that share a common parent.






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






11. To represent one set of values using another set of values by constructing a mapping between them.






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






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






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






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






16. a sequence of instructions that specifies to a computer actions and computations to be performed.






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






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






19. To signal an exception using the raise statement.






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






21. Repeated execution of a set of programming statements.






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






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






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






25. Decrease by 1.






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






27. A name given to a variable.






28. A reference to a list node can be treated as a single object or as the first in a list of nodes.






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






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






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






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






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






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






35. The code (or the person who wrote it) that implements an ADT.






36. To create an instance of a class.






37. The statement in a recursive function with is a call to itself.






38. A linked list with a single node.






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






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






41. An element of a list - usually implemented as an object that contains a reference to another object of the same type.






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






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






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






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






46. A variable defined inside a module - accessed by using the dot operator ( .).






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






48. It prevents a compiler from compiling.






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






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