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






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






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






4. A variable used to store an intermediate value in a complex calculation.






5. A data type comprised of a collection of keys and associated values.






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






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






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






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






10. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.






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






12. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






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






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






15. An expression that is either true or false.






16. A variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.






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






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






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






20. The boolean expression in a conditional statement that determines which branch is executed.






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






22. A loop inside the body of another loop.






23. Another name for a runtime error.






24. A set of instructions for solving a class of problems by a mechanical and unintelligent process.






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






26. An operation whose runtime is a linear function of the size of the data structure.






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






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






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






30. Decrease by 1.






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






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






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






34. Both as a noun and as a verb - it means to increase by 1.






35. A visual cue that tells the user to input data.






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






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






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






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






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






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






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






43. The code (or the person who wrote it) that implements an ADT.






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






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






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






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






48. An operator that takes two operands.






49. The interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified it defaults to 1.






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