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 operator that takes two operands.






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






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






4. The statements inside a loop.






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






6. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.






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






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






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






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






11. The class from which a child class inherits.






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






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






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






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






16. One of the basic elements of the syntactic structure of a program - analogous to a word in a natural language.






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






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






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






20. A situation in which two or more names in a given namespace cannot be unambiguously resolved.






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






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






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






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






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






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






27. Repeated execution of a set of programming statements.






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






29. The second part of a compound statement. The body consists of a sequence of statements all indented the same amount from the beginning of the header.






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






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






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






33. A process for developing a program.






34. A function which has no side effects. It only makes changes to the calling program through its return values.






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






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






37. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.






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






39. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.






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






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






42. An expression that is either true or false.






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






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






45. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.






46. An object that belongs to a class.






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






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






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






50. An error that occurs at runtime.