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. One of the values on which an operator operates.






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






3. A bottom-most node in a tree with no children.






4. It prevents a compiler from compiling.






5. The class from which a child class inherits.






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






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






8. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.






9. Memory which requires an electrical current to maintain state. Information stored is lost when the computer is turned off.






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






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






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






13. A situation in which two or more names in a given namespace cannot be unambiguously resolved.






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






15. The name and location of a file within a file system.






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






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






18. Another name for a runtime error.






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






20. To signal an exception using the raise statement.






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






22. A list of the functions that are executing - printed when a runtime error occurs. Also commonly refered to as a stack trace since it lists the functions in the order in which they are stored in the runtime stack.






23. A statement that assigns a value to a name (variable).






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






25. A distinct method of operation within a computer program.






26. An assertion that should be true of an object at all times (except perhaps while the object is being modified).






27. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.






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






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






30. One of the possible paths of the flow of execution determined by conditional execution.






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






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






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






34. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.






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






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






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






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






39. A way to traverse a tree - visiting the children of each node before the node itself.






40. A function that can operate on more than one type. If all the operations in a function can be applied to a type then the function can be applied to a type.






41. The rules that determine which member of a queue is removed next.






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






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






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






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






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






47. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).






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






49. An error that occurs at runtime.






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