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. Code that satisfies the syntactic and semantic requirements of an interface.






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






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






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






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






6. There are exactly two boolean values: True and False.






7. One of the operators that combines boolean expressions: and or and not.






8. A special character that causes the cursor to move to the beginning of the next line.






9. An item of data contained in a node.






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






11. A set of instructions for solving a class of problems by a mechanical and unintelligent process.






12. To create an instance of a class.






13. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a






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






15. Repeated execution of a set of programming statements.






16. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.






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






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






19. The value provided as the result of a function call.






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






21. The statements inside a loop.






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






23. A function which has no side effects. It only makes changes to the calling program through its return values.






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






25. An ADT that defines the operations one might perform on a priority queue.






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






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






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






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






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






31. A group of consecutive statements with the same indentation.






32. An expression that is either true or false.






33. A data type which can be modified.






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






35. A combination of variables and operators and values that represents a single result value.






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






37. A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.






38. A kind of data structure that can contain data of any type.






39. A data type (usually a collection of objects) that is defined by a set of operations but that can be implemented in a variety of ways.






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






41. A logical error which stops a program from performing.






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






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






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






45. A property of a program that can run on more than one kind of computer.






46. Another name for a runtime error.






47. The process of calling the function that is currently executing.






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






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






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