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 queueing policy in which the first member to arrive is the first to be removed.






2. A statement that causes the current iteration of a loop to end.






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






4. A special character that causes the cursor to move to the beginning of the next line.






5. A linked list with a single node.






6. An ADT that performs the operations one might perform on a queue.






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






8. A string displayed by a command line interface indicating that commands can be entered.






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






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






11. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.






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






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






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






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






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






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






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






19. A loop inside the body of another loop.






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






21. A function that returns a boolean value.






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






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






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






25. A function that yields a return value.






26. The set of nodes equidistant from the root.






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






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






29. To prevent an exception from terminating a program using the try and except statements.






30. The class from which a child class inherits.






31. A reference to a list node can be treated as a single object or as the first in a list of nodes.






32. A program stored in a file (usually one that will be interpreted).






33. A statement that assigns a value to a name (variable).






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






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






36. A way to traverse a tree - visiting the children of each node before the node itself.






37. A property of a program that can run on more than one kind of computer.






38. An operation defined in linear algebra that multiplies two Points and yields a numeric value.






39. To replace something unnecessarily specific (like a constant value) with something appropriately general (like a variable or parameter). It makes code more versatile - more likely to be reused and sometimes even easier to write.






40. A combination of variables and operators and values that represents a single result value.






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






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






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






44. The meaning of a program.






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






46. An error in a program.






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






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






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






50. A reference stored in an attribute of an object.