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. Any one of the languages that people speak that evolved naturally.






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






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






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






5. A visual cue that tells the user to input data.






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






7. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.






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






9. An embedded reference used to link one object to another.






10. A function that returns a boolean value.






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






12. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.






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






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






15. A signal such as a keyboard press or mouse click or message from another program.






16. The block of statements in a compound statement that follows the header.






17. Part of a program that can never be executed - often because it appears after a return statement.






18. A function that yields a return value.






19. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?






20. A variable used as part of the terminating condition of a loop.






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






22. Making more than one assignment to the same variable during the execution of a program.






23. An object that belongs to a class.






24. A numerical value that does not change during the execution of a program.






25. Another name for a runtime error.






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






27. An ordered set of objects waiting for a service of some kind.






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






29. The interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified it defaults to 1.






30. To execute a program in a high-level language by translating it one line at a time.






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






32. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.






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






34. A software development practice which arrives at a desired feature through a series of small but iterative steps motivated by automated tests which are written first that express increasing refinements of the desired feature.






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






36. Decrease by 1.






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






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






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






40. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.






41. A name that refers to a value.






42. The node that refers to a given node.






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






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






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






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






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






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






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






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