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 loop inside the body of another loop.






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






3. The process of formulating a problem and finding a solution and expressing the solution.






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






5. The node that refers to a given node.






6. To signal an exception using the raise statement.






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






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






9. A function that can operate on more than one type. If all the operations in a function can be applied to a type then the function can be applied to a type.






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






11. One of the named data items that makes up an instance.






12. A statement that consists of two parts: header - which begins with a keyword determining the statement type and ends with a colon. body - containing one or more statements indented the same amount from the header.






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






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






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






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






17. An intermediate language between source code and object code. Many modern languages first compile source code into byte code and then interpret the byte code with a program called a virtual machine.






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






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






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






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






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






23. Any one of the languages that people speak that evolved naturally.






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






25. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.






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






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






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






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






30. The set of operations that define an ADT.






31. A function that yields a return value.






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






33. One program structure within another - such as a conditional statement inside a branch of another conditional statement.






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






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






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






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






38. A character or string used to indicate where a string should be split.






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






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






41. A linked list with a single node.






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






43. The process of finding and removing any of the three kinds of programming errors.






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






45. A way to traverse a tree - visiting each node before its children.






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






47. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.






48. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.






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






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