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 linked list with a single node.






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






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






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






6. An error in a program that makes it impossible to parse






7. An operator that takes two operands.






8. A programming construct that waits for events and processes them.






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






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






11. Any one of the languages that people have designed for specific purposes - such as representing mathematical ideas or computer programs; all programming languages are formal languages.






12. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.






13. A function that yields a return value.






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






15. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.






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






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






18. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.






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






20. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.






21. A special character that causes the cursor to move to the next tab stop on the current line.






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






23. A method that acts as a middleman between a caller and a helper method - often making the method easier or less error-prone to invoke.






24. A variable defined inside a module - accessed by using the dot operator ( .).






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






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






27. An invisible marker that keeps track of where the next character will be printed.






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






29. A variable or value used to select a member of an ordered set - such as a character from a string.






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






31. An expression in parentheses that acts as a single operand in a larger expression.






32. The statements inside a loop.






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






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






35. An error in a program.






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






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






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






39. A way of writing mathematical expressions with the operators between the operands.






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






41. Repeated execution of a set of programming statements.






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






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






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






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






46. The node that refers to a given node.






47. An expression that is either true or false.






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






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






50. An assertion that must be true in order for a method to work correctly.