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. The sequential accessing of each element in a list.






2. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.






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






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






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






6. Memory which requires an electrical current to maintain state. Information stored is lost when the computer is turned off.






7. To signal an exception using the raise statement.






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






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






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






11. It prevents a compiler from compiling.






12. A variable used as part of the terminating condition of a loop.






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






14. The structure of a program.






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






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






17. The first part of a compound statement. Headers begin with a keyword and end with a colon (:)






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






19. To read a string of characters or tokens and analyze its grammatical structure.






20. Calling one function from within the body of another or using the return value of one function as an argument to the call of another.






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






22. One of the operators that compares two values: == or != or > or < or >= and <=.






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






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






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






26. An error in a program that makes it do something other than what the programmer intended.






27. Use of the dot operator '.' to access functions inside a module.






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






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






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






31. A programming language that is designed to be easy for humans to read and write.






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






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






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






35. Nodes that share a common parent.






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






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






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






39. Another name for a runtime error.






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






41. The meaning of a program.






42. A linked list with a single node.






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






44. A way of writing mathematical expressions with the operators after the operands.






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






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






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






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






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






50. To create a new object that has the same value as an existing object.