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. It prevents a compiler from compiling.






2. To signal an exception using the raise statement.






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






4. To create a new object that has the same value as an existing object.






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






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






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






8. A statement that consists of two parts: header - which begins with a keyword determining the statement type and ends with a colon. body - containing one or more statements indented the same amount from the header.






9. A step-by-step process for solving a category of problems.






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






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






12. A queueing policy in which the first member to arrive is the first to be removed.






13. A named collection of objects where each object is identified by an index.






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






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






16. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.






17. A style of programming in which data and the operations that manipulate it are organized into classes and methods.






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






19. An operator that takes two operands.






20. One of the nodes referred to by a node.






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






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






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






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






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






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






27. A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language.






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






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






30. Code that is used during program development but is not part of the final version.






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






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






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






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






35. Use of the dot operator '.' to access functions inside a module.






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






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






38. A programming language that is designed to be easy for humans to read and write.






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






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






41. Repeated execution of a set of programming statements.






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






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






44. The class from which a child class inherits.






45. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






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






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






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






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






50. A compound data type whose elements cannot be assigned new values.