Programming and Problem Solving Through Python Language Theory Question

Introduction to Programming - Set 2

  1. What is easier for a program to read and write
    1. Binary file
    2. Text file
    3. Doc file
    4. Excel file
    Answer : A
    Explain: Computer only understand binary language which is 0 and 1.
  2. __________ is part of user documentation.
    1. Class Diagram
    2. Code Comment
    3. Use Case
    4. Installation Guide
    Answer : D
    Explain: Installation Guide is part of user documentation, which helps user to install the product and use it.
  3. The examination of changing values of variables is called stepping.
    1. True
    2. False
    3. Can‟t say
    4. May be
    Answer : B
    Explain: The examination of changing values of variables is called tracing.
  4. Which of the following language is understood by computer ?
    1. Machine language
    2. Assembly language
    3. High-level language
    4. None of the above
    Answer : A
    Explain: Computer understand only machine language which is made up of binary numbers or bits.
  5. The process of finding errors in code is called as __________.
    1. Compiling
    2. Running
    3. Testing
    4. Debugging
    Answer : D
    Explain: Debugging is the process of finding errors in software code.
  6. Testing is known as :
    1. A stage of all projects
    2. Finding broken code
    3. Evaluating deliverable to find errors
    4. None of above
    Answer : C
    Explain: Testing is done to find out the error in program.
  7. Operations to be repeated a certain number of times are done by __________.
    1. Selection
    2. Sequential
    3. Simple
    4. Loop
    Answer : D
    Explain: Loop is a way to repeat a program to a certain number of times.
  8. A computer programme that manages and controls a computer's activity :
    1. Interpreter
    2. Modem
    3. Compiler
    4. O.S
    Answer : D
    Explain: Operating system (OS), program that manages a computer's resources, especially the allocation of those resources among other programs.
  9. Debugging is __________
    1. Creating program code
    2. Finding and correcting errors in the program code
    3. Identifying the task to be computerized
    4. Creating the algorithm
    Answer : B
    Explain: Debugging is method to correct the error occur in program.
  10. Select one of the true statement for the compiler?
    1. The input of the compiler is source program
    2. It translates the source code into object code as a whole
    3. The output of the compiler is object code
    4. All of above
    Answer : D
    Explain: Compiler converts whole program, the program entered in compiler is known as source code which is made by programmer and compiler converts it into object code which is understand by computer.
  11. Translates the source code into machine language
    1. Operating system
    2. Programming language
    3. Language processor
    4. All of these
    Answer : C
    Explain: Translate source code (which is written by programmer) into machine language (object code) with the help of language processor.
  12. Python is an example of which generation programming language ?
    1. 1 Gen.
    2. 2 Gen.
    3. 3 Gen.
    4. 4 Gen.
    Answer : D
    Explain: Python is a fourth generation high level programming language.
  13. Software mistakes during coding are known as
    1. Errors
    2. Failures
    3. Bugs
    4. Defect
    Answer : C
    Explain: Sometimes when coding there is bugs means an unexpected problem occur(software mistake).
  14. Technical documentation is addressed to :
    1. User
    2. Programmer
    3. Owner
    4. Company
    Answer : B
    Explain: Technical documentation is addressed to programmer for futher use to modify and changes in program.
  15. The pseudocode is
    1. Algorithm
    2. Flowchart
    3. Object code
    4. coding
    Answer : A
    Explain: There are mainly three types of Algorithm : Flowchart, pseudocode and program.
  16. a set of logically sequenced instructions that allows to find the solution to a problem is:
    1. algorithm
    2. Pseudocode
    3. Programming
    4. program
    Answer : A
    Explain: Algorithm is a process to find the solution of the problem step by step.

Next Set

1

Make sure you make notes of these question. We hope it helps you.