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. An operation whose runtime is a linear function of the size of the data structure.






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






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






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






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






6. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.






7. Decrease by 1.






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






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






10. A graphical representation of a stack of functions and their variables and the values to which they refer.






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






12. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.






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






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






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






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






17. A variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.






18. A branch of the conditional statement in a recursive function that does not result in a recursive call.






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






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






21. A numerical result that is too large to be represented in a numerical format.






22. A variable used to count something - usually initialized to zero and incremented in the body of a loop.






23. An operation defined in linear algebra that multiplies each of the coordinates of a Point by a numeric value.






24. The value given to an optional parameter if no argument for it is provided in the function call.






25. Multiple variables that contain references to the same object.






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






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






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






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






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






31. The sequential accessing of each element in a list.






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






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






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






35. A compound data type that is often used to model a thing or concept in the real world.






36. The ability to define a new class that is a modified version of a previously defined class.






37. A variable in the sys module which stores a list of command line arguments passed to a program at run time.






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






39. The name and location of a file within a file system.






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






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






42. The output of the compiler after it translates the program.






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






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






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






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






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






48. An item of data contained in a node.






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






50. Code that satisfies the syntactic and semantic requirements of an interface.