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 reserved word that is used by the compiler to parse program; you cannot use keywords like if or def or while as variable names.






2. A style of program design in which the majority of functions are pure.






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






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






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






6. An item of data contained in a node.






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






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






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






10. A name used inside a function to refer to the value passed as an argument.






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






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






13. Using the output from one function call as the input to another.






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






15. To represent one set of values using another set of values by constructing a mapping between them.






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






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






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






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






20. An object that belongs to a class.






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






22. To create an instance of a class.






23. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.






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






25. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.






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






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






28. A loop in which the terminating condition is never satisfied.






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






30. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.






31. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






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






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






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






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






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






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






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






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






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






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






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






43. An operator that takes two operands.






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






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






46. An error that does not occur until the program has started to execute but that prevents the program from continuing.






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






48. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).






49. A library is a collection of software used as tools in the development of other software.






50. An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.