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






2. A special character that causes the cursor to move to the next tab stop on the current line.






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






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






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






6. A program (or the person who wrote it) that uses an ADT.






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






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






9. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.






10. A data type which can be modified.






11. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.






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






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






14. A process for developing a program.






15. The class from which a child class inherits.






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






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






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






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






20. A class definition that implements an ADT with method definitions that are invocations of other methods - sometimes with simple transformations. It does no significant work but it improves or standardizes the interface seen by the client.






21. To signal an exception using the raise statement.






22. Another name for object code that is ready to be executed.






23. A way of developing programs starting with a prototype and gradually testing and improving it.






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






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






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






27. Any of the data types that consist of an ordered set of elements with each element identified by an index.






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






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






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






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






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






33. Generalization by reducing the information content of a concept.






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






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






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






37. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.






38. An item of data contained in a node.






39. A tree in which each node refers to zero or one or two dependent nodes.






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






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






42. The set of nodes equidistant from the root.






43. An error in a program.






44. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.






45. Decrease by 1.






46. The sequence of characters read into the command interpreter in a command line interface.






47. A way of writing mathematical expressions with the operators between the operands.






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






49. An operation whose runtime does not depend on the size of the data structure.






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