Skip to main content

PPT quiz

Chapter 1: The Programming Process
Q: 1. Arrange the activities of a problem solving process in order.
1)      Defining the problem
2)      Documenting
3)      Preparing a problem flow chart
4)      Preparing an algorithm
5)      Debugging and testing
6)      Coding the program
Answer: 1>4>3>6>5>2
Q: 2. The programming process is———–

A)    System-development process
B)    Coding process
C)    Testing process
D)    Problem solving process
Answer: D
Q: 3. A computer program is a means to end . Which of the following  about “ the end” is true ?
A)    The end will normally be information needed to solve a problem.
B)    The end will normally be input needed to solve the program.
C)    The end will normally be process needed to solve the program.
D)    None of the above.
Answer: A
Q: 4. which one is true?
A)    The programming process is a problem solving process.
B)    The programming process is a data transformation process.
C)    The programming process is a coding process.
D)    The programming process is a problem defining process.
Answer: A.
Q: 5. In a programming process what the programmer must do carry out before moving from one activity to the next?

A)    Documenting procedure.
B)    Model design activities.
C)    Checking procedure.
D)    Compilation.
Answer: C.



Q: 6. Which of the following is or are included the problem definition?

A)    Out put.
B)    What the output look like.
C)    Input.
D)    Processing algorithm.
Answer: A, B, C

Q: 7. In the problem definition which of the following do we use to describe the output that is to be printed?
A)    Print chart.
B)    Display system layout sheet.
C)    A record format form.
D)    All of the above.
Answer: A
Q: 8.  In the problem definition which of the following do we use to describe the output that is to be displayed on VDT?
A)    Print chart.
B)    Display system layout sheet.
C)     A record format form.
D)    All of the above.
Answer: B
Q: 9. Who usually defines the problem to programmer?
A)    The system analyst.
B)    The program manager.
C)    The project manager.
D)    A senior programmer.
Answer: A
Q: 10. Which of the following defines an algorithm?
A)    It is a graphical representation of a program flow.
B)    It is the documentation of program logic.
C)    It is a list of sequence of steps required to solve the problem.
D)    It is the actual program code.
Answer: C
Q: 11. What is used to keep track of the number of times something occurs in a program?
A)    A loop.
B)    A counter.
C)    A decision construct.
D)    None of the above.

Answer: B

Q: 12. What do mean by in correcting?
A)    Squaring.
B)    Adding one.
C)    Subtracting one.
D)    Setting initial value>
Answer: B
Q: 13. What do we can an error that occurs while a program is being executed?
A)    Syntax error.
B)    Logical error.
C)    Execution-time error.
D)    Bug.
Answer: C
Q: 14. Which of the following procedure can you use to check an algorithm?
A)    Debugging by automated debugger.
B)    Desk checking.
C)    Inspection.
D)    Consultation.
E)        Answer: B





Q: 15. Which of the following defines an algorithm?
A)    It is a symbolic representation an algorithm.
B)    It is the documentation of program logic.
C)    It is a list of the sequence of steps required to solve the problem.
D)    It is the actual program code.
Answer: C
Q: 16. What does the following notation mean?
Acounter <- 0
A)    Destroying the memory location used by acounter.
B)    Replacing the value currently in memory location used by acounter by the value zero.
C)    Decrementing acounter.
D)    Incrementing acounter.
Answer: B

Q20. During testing what type or types or error are eliminated?
  1. Syntax Error
  2. Logic Error
  3. Execution time error
  4.  None of the above
Answer: A, B
Q21. A compiler is a                        .
  1. Software development environment
  2. Code Editor
  3. Translation program
  4. System software
Answer:  C

Q22. Which of the following translation program or programs process the entire source program as a unit?
  1. Compiler
  2. Generator
  3. Assembler
  4. Interpreter

Answer: A, B, C


1. How do we know that the algorithm produce the correct result?
a. Desk Checking
b. Program Flow Chart
c. Debugging
d. All of the above.
Answer:
2. A group of instructions for a computer that causes it to perform a task as known as……………..
a. Algorithm
b. Statement
c. Computer Program
d. Counter
Answer: c
3. Which steps allow for programming process?
a. Coding the program
b. Defining the problem
c. Preparing an algorithm
d. All of the above
Answer: d
4. A sequence of steps that describes a method for solving a problem is known as…………..
a. Algorithm
b. Flowchart
c. Pseudo code
d. HIPO
Answer: a
5.. Represents any data input or output operations……..
a. Process
b. Input /output
c. preparation
d. Decision
Answer: b
6. A master file must be—
a. Checked
b. Written
c. Updated & maintained
d. None
Answer: c
7. ANSI stands for ……………
a. American National Standards Institute.
b. American National Stander information
c. American National Standard Institute
d. American Nationalism standard Institute
Answer: a




8. The go- to instruction causes a branch to a step that is not next in sequence……….
a. The cause of branching.
b. Documenting
c. Computer program
d. Decision table
Answer: a
9. Something that is not even a valid number in which case the computer will stop………..
a. Syntax Error
b. Runtime Error
c. General Error
d. Execution time Error
Answer: d
11. A source program written in a high language is translated into a special translation program?
a. Object program
b. Assembly program
c. IL program
d. Byte Code
Answer: a
12. Which of the following are translator program?
a. Compiler
b. Assembler
c. Generator
d. Interpreter
Answer: a, b ,c ,d

13. Which of  the following is programming language category?
a. High Level Language
b. Low Level Language
c. Top Level Language
d. Middle Level Language
Answer: a, b

14. Which Languages allows three way branching?
a. FORTEAN
b. COBOL
c. BASIC
d. Pascal
Answer: a

15. Which Languages allow two way branching ?
a. Assembler
b. RPG  II
c. FORTARN
d. BASIC
Answer: d
16.We can display our program in which way?

a. Using printing
b. Using  CRT
c. Using VDT
d. All of the above
Answer: d

17. Interpreter is used  for what?
a. Syntax of whole program Checked
b. Syntax of each instruction is checked
c. Checked the algorithm
d. All of the above
Answer: b

18.Violation of the rules of a particular programming language creates what?
a. Syntax error
b. Logical error
c. Execution time error
d. Bug
Answer: a



Module 1-Part 1: PPT
Chapter 2: Introduction to Structured Programming

Q. no1: Why will use a Pseudo code?
Ans: structure coding.
Q. no2: Pseudo code, literally a ……….
Ans: Fake code.
Q. no3: Pseudo code is an extension of, and a replacement for…
Ans: The algorithom developed.
Q. no4: Which rules to be concerned with involve the loop and selection structure?
Ans: Syntax rules.
Q. no5: The loop structure is illustrated by which instruction?
Ans: DO WHILE.
Q. no 6: The indention of all instructions within the ……….
Ans: LOOP.
Q. no7: What is aligned left with DO WHILE?
Ans: End.
Q. no8: Which instruction is illustrated by the selection structure?
Ans: IF-THEN-ELSE.
Q. no9: Who provide FOR Loops?
Ans: BASIC, FORTAN77, PASCAL, COBOL.
Q. no10: Who has a PERFORM UNTIL instruction?
Ans: COBOL.
Q. no11: PASCAL has which instruction?
Ans: REPEAT UNTIL.
Q. no12: which instruction can be represented in a flowchart as a series of selection structure?
Ans: CASE.
Q. no13: The comparison of two values is represented in a program flowchart by the….
Ans: Decision outline.

1. How do we know that the algorithm produce the correct result?

a. Desk Checking
b. Program Flow Chart
c. Debugging
d. All of the above.
Answer: a

2. A group of instructions for a computer that causes it to perform a task as known as……………..

a. Algorithm
b. Statement
c  Computer Program
d. Counter
Answer: c

3. Which steps allow for programming process?

a. Coding the program
b. Defining the problem
c. Preparing an algorithm
d. All of the above
Answer: d

4. A sequence of steps that describes a method for solving a problem is known as…………..

a. Algorithm
b. Flowchart
c  Pseudo code
d. HIPO
Answer: a

5. Represents any data input or output operations……..

a. Process
b. Input /output
c. preparation
d. Decision
Answer: b

7. ANSI stands for ……………

a. American National Standards Institute.
b. American National Stander information
c. american National Standard Institute
d .American Nationalism standard Institute
Answer: a

8. The go- to instruction causes a branch to a step that is not next in sequence……….
a. The cause of branching.
b. Documenting
c  Computer program
d. Decision table
Answer: a

9. Something that is not even a valid number in which case the computer will stop………..

a. Syntax Error
b. Runtime Error
c. General Error
d. Execution time Error
Answer: d

10. The __________________ is a more efficient searching algorithm.

a. Binary search
b. Sequential search
c. Linear search
Answer: a

11. A source program written in a high language is translated into +a special translation program?

a. Object program
b. Assembly program
c. IL program
d. Byte Code
Answer:a

12. Which of the following are translator program?
a. Compiler
b. Assembler
c. Generator
d. Interpreter
Answer:a,b,c,d

13.Which of  the following is programming language category?

a. High Lavel Language
b.  Low Level Language
c. Top Level Language
d.  Middle Lavel Language
Answer:a,b

14.Which Languages allows three way branching?
a. FORTEAN
b. COBOL
c. BASIC
d. Pascal
Answer:a

15. Which Languages allow two way branching ?

a. Assembler
b. RPG  II
c. FORTARN
d. BASIC
Answer:d
16.We can display our program in which way?

a. Using printing
b. Using  CRT
c. Using VDT
d. All of the above
Answer:d

17. Interpreter is used  for what?

a. Syntax of whole program Checked
b. Syntax of each instruction is checked
c. Checked the algorithm
d. All of the above
Answer:b

18.Violation of the rules of a particular programming language creates what?

a. Syntax error
b. Logical error
c. Execution time error
d. Bug
Answer:a

19. A compiler is a

a. Software development environment
b. Code editor
c. Translator program
d. System software
Answer:C

20. An asterisk (*) is represent?

a. Multiplication
b. Division
c. Subtraction
d. Addition
Answer:a

21. When is the early days of programming?

a. In 1960 and 1970
b. In 1950 and 1960
c. In 1970 and 1980
d. None of them.
Answer:b

22. What are the result of the emphasis the programmer often spent a great deal?

a. A clever techniques and algorithms to remove computer time and memory.
b. A clever techniques and algorithms to save computer time and memory.
c. None of them.
d. Both a and b.
Answer:b

23.Some of the early programmers are what?

a. Truly ingenious.
b. Their programs could properly be considered works of art.
c. Both a and b
d. None of above.
Answer:c

24. Which of the following the term structured programming refers to?

a. A collection of techniques to follow for program developing
b. A collocations of library code to help programs
c. A collocations hardware for fast processing
d. A collocations of efficient logic.
Answer:a

25. The main transfers controls to a sub module to perform a task. What happens when the sub module has completed its task?

a. The  sub module closes the program.
b. The submodule returns control to the main module.
c. The sub module waits idly for the main take the control back
d. The sub  module transfers control the underlying operating system.
Answer:b

26. Which type of subroutine is frequently used for complex processing that is needed by many users, such as mathematical or statistical
routines or the sorting of files?
a. Internal
b. External
Answer:b
27.The top-down approach is a useful technique in-
a. Planning a modular  programming
b. Writing a smart program code
c. A object oriented programming
d. Report writing
Answer:a
28. What do we identity a module?
a. A module is given a abbreviated name
b. A module is given a name which reflects what the module does and a number is included with name.
c. A module is given name a special prefix.
d. None of the above.
Answer:b
29. A structure chart is commonly used planning tool in–
a. top-down programming.
b. Object oriented programming
c. procedural programming
d. data processing.
Answer:a
30.Find out the following logic patterns or structures are identified as sufficient for any structured programming?
a. The sequence structure.
B. the loop structure.
C. the selection structure.
d. control structure.
Answer:a,b,c
31. Write down the name of the tools for planning programs?
a. structured flowcharts
b. structure charts
c. pseudocode
d. All of them
Answer:d
32. In modular programming,the program is broken down into-
a. files.   b.  project
c. Instructions
d. Modules
Answer:d
33. Modular programming is implemented by-
a. Subroutine
b. Instryctios
c. Source programs
d. Machine code
Answer:a
34. Which one is the definittation of a subroutine?
a. A group of instructions that perform a limited processing task.
b. A file that contains a group of instructions that performs a limited processing task.
c. A group of instructions that performs a total processing task.
d. None.
Answer:b
35. A collection of techniques for planning and writing of program that increases programmer productivity is —
a. Modular programming
b. Procedural programming
c. Structured Programming
d. Functional Programming
Answer:c

36. The subroutine that is part of the program that uses is-

a. An internal subroutine
b. An external subroutine
c. None
Answer:a

37. After a subroutine has finished its work what will happen?

a. The program end
b. Control is returned transferred to the caller of the subroutine
c. Control is transferred to the exit routine
d. None
Answer:b

38. Which one is register?

a. A special-purpose hardware
b. A special-purpose software
c. A special purpose memory device
d. None
Answer:c

39. VTOC means-
a. Visual tool of contains
b. Visual table of contents
c. None
Answer:b
40. What is the use of ractangle?
a. to represent modules
b. to represent submodule
c. to represent subroutine
d. Allof above
Answer:a
41. In this technique we define the main program module ,which initiates the program, call other modules and then terminates.
What technique is this?
a. Moduler programming
b. Top-down programming
c. Bottom-up programming
d. None
Answer:a
42. What are the disadvantage of subroutine?
a. Using them results in generally slower execution speed for the program.
b. Using them results in generally faster execution speed for the program.
c. None
Answer:a
43. The modules are ordered–
a. Right to left
b. Left to Right
c. None
Answer:b
44. A module name is a short description of what?
a. the module does.
b. the file does.
c. the structure does.
d. the sub module does.
Answer:a
45. What is the identification of a module?
a. a character.
b. a name.
c. a number.
d. a file.
Answer:c
46. Whatis the advantage of system?
a. simple.
b. flexible.
c. both simple and flexible.
Answer:c

47. What are show the numbers for modules?
a. show the processing
b. show the number.
c. show the record.
d. show the requiring.
Answer:a
48. What do contain Transaction records?
a. data about a business activity .
b. data about a marketing activity.
c. data about a official activity.
d. data about a designing activity.
Answer:a
49. What is the symbol of a module?
a. a rectangle
b. a oval.
c. a flowline.
d. a circle.
Answer:a
50. How can we identify a subordinate module?
a. by a module which is shaded in the upper left corner.
b. by a module which is shaded in the upper right corner.
c. by a module which is shaded in the down left corner.
d. by a module which is shaded in the down right corner.
Answer:b
51. What is the structure chart?
a. a tool for planning.
b. a tool for documenting.
c. a tool for designing.
d. a tool for decision.
Answer:a
52. What does show the structure chart?
a. the function to be performed.
b. the relationship between modules.
c. the function to be performed and the relationship between double.
d. none of them.
Answer:c
53. What is the most easy to be understand?
a. a flowchart.
b. a structure chart.
c. a truth table.
d. a decision table.
Answer:b



54. What is GOTOless programming?
a. programming without using the branch instruction.
b. programming which using the branch instruction.
c. programming without using the go-to instruction.
d. programming without using the go-to instruction.
Answer:a,c
55. What kinds of logic pattern?
a. three.
b. two.
c. four.
d. five.
Answer:a
56. Which is the part of logic pattern?
a. selection structure.
b. multiple structure.
c. decision structure.
d. logical structure.
Answer:a
57. What is the way to enter a sequence structure and to exit?
a. to enter a sequence structure is at the top and to exit from it is at the bottom.
b. to enter a sequence structure is at the bottom and to exit from it is at the top.
c. to enter a sequence structure is at the top and to exit from it is at the middle.
d. to enter a sequence structure is at the middle and to exit from it is at the bottom.
Answer:a
58. When a condition exists in the loop structure ?
a. when a condition is true.
b. when a condition is false.
c. when a condition both of true and false.
d. none of them.
Answer:a
59. What is EOF?
a. end of file .
b. end of function.
c. both of them.
d. none of them.
Answer:a
60. Why we use connectors?
a. to return the flow to the beginning of the loop is  a branch.
b. to return the flow to the beginning of the loop is not a branch.
c. both of them.
d. none of them.
Answer:b
10. The __________________ is a more efficient searching algorithm.
a. Binary search
b. Sequential search
c. Linear search
Answer: a

21. When is the early days of programming?

a. In 1960 and 1970
b. In 1950 and 1960
c. In 1970 and 1980
d. None of them.
Answer: b

22. What are the result of the emphasis the programmer often spent a great deal?

a. A clever techniques and algorithms to remove computer time and memory.
b. A clever techniques and algorithms to save computer time and memory.
c. None of them.
d. Both a and b.
Answer: b

23.Some of the early programmers are what?

a. Truly ingenious.
b. Their programs could properly be considered works of art.
c. Both a and b
d. None of above.
Answer: c

24. Which of the following the term structured programming refers to?

a. A collection of techniques to follow for program developing
b. A collocations of library code to help programs
c. A collocations hardware for fast processing
d. A collocations of efficient logic.
Answer: a

25. The main transfers controls to a sub module to perform a task. What happens when the sub module has completed its task?

a. The  sub module closes the program.
b. The submodule returns control to the main module.
c. The sub module waits idly for the main take the control back
d. The sub  module transfers control the underlying operating system.
Answer: b

26. Which type of subroutine is frequently used for complex processing that is needed by many users, such as mathematical or statistical
routines or the sorting of files?

a. Internal
b. External
Answer: b

27.The top-down approach is a useful technique in-

a. Planning a modular  programming
b. Writing a smart program code
c. A object oriented programming
d. Report writing
Answer: a

28. What do we identity a module?

a. A module is given a abbreviated name
b. A module is given a name which reflects what the module does and a number is included with name.
c. A module is given name a special prefix.
d. None of the above.
Answer: b

29. A structure chart is commonly used planning tool in–

a. top-down programming.
b. Object oriented programming
c. procedural programming
d. data processing.
Answer: a

30.Find out the following logic patterns or structures are identified as sufficient for any structured programming?
a. The sequence structure.
B. the loop structure.
C. the selection structure.
d. control structure.
Ans: a,b,c
31. Write down the name of the tools for planning programs?
a. structured flowcharts
b. structure charts
c. pseudocode
d. All of them
Answer: d
32. In modular programming,the program is broken down into-
a. files.
b. project
c. Instructions
d. Modules
Answer: d
33. Modular programming is implemented by-
a. Subroutine
b. Instryctios
c. Source programs
d. Machine code
Answer: a

34. Which one is the definittation of a subroutine?

a. A group of instructions that perform a limited processing task.
b. A file that contains a group of instructions that performs a limited processing task.
c. A group of instructions that performs a total processing task.
d. None.
Answer: b

35. A collection of techniques for planning and writing of program that increases programmer productivity is —

a. Modular programming
b. Procedural programming
c. Structured Programming
d. Functional Programming
Answer: c

36. The subroutine that is part of the program that uses is-
a. An internal subroutine
b. An external subroutine
c. None
Answer: b

37. After a subroutine has finished its work what will happen?

a. The program end
b. Control is returned transferred to the caller of the subroutine
c. Control is transferred to the exit routine
d. None
Answer: b

38. Which one is register?

a. A special-purpose hardware
b. A special-purpose software
c. A special purpose memory device
d. None
Answer: c

39. VTOC means-

a. Visual tool of contains
b. Visual table of contents
c. None
Answer: b

40. What is the use of ractangle?

a.to represent modules
b.to represent submodule
c.to represent subroutine
d.Allof above
Answer: a

41. In this technique we define the main program module ,which initiates the program, call other modules and then terminates What technique is this?

a. Moduler programming
b. Top-down programming
c. Bottom-up programming
c. None
Answer: a

42. What are the disadvantage of subroutine?
a. Using them results in generally slower execution speed for the program.
b. Using them results in generally faster execution speed for the program.
c. None
Answer: a
43. The modules are ordered–
a. Right to left
b. Left to Right
c. None
Answer: b
44. A module name is a short description of what?
a. the module does
b. the file does
c. the structure does
d. the sub module does
Answer: a

45. What is the identification of a module?

a. a character
b. a name
c. a number
d. a file
Answer: c

46. Whatis the advantage of system?

a. simple
b. flexible
c. both simple and flexible
Answer: c

47. What are show the numbers for modules?

a. show the processing
b. show the number
c. show the record
d. show the requiring
Answer: a

48. What do contain Transaction records?

a. data about a business activity
b. data about a marketing activity
c. data about a official activity
d. data about a designing activity
Answer: a

49. What is the symbol of a module?
a. a rectangle
b. a oval
c. a flowline
d. a circle
Answer: a
50. How can we identify a subordinate module?
a. by a module which is shaded in the upper left corner
b. by a module which is shaded in the upper right corner
c. by a module which is shaded in the down left corner
d. by a module which is shaded in the down right corner
Answer: b
51. What is the structure chart?
a. a tool for planning.
b. a tool for documenting.
c. a tool for designing.
d. a tool for decision.
Answer: a
52. What does show the structure chart?
a. the function to be performed
b. the relationship between modules
c. the function to be performed and the relationship between double
d. none of them
Answer: c
53. What is the most easy to be understand?
a. a flowchart
b. a structure chart
c. a truth table
d. a decision table
Answer: b
54. What is GOTOless programming?
a. programming without using the branch instruction
b. programming which using the branch instruction
c. programming without using the go-to instruction
d. programming without using the go-to instruction
Answer: a,c
55. What kinds of logic pattern?

a. three
b. two
c. four
d. five
Answer: a

56. Which is the part of logic pattern?
a. selection structure
b. multiple structure
c. decision structure
d. logical structure
Answer: a
57. What is the way to enter a sequence structure and to exit?
a. to enter a sequence structure is at the top and to exit from it is at the bottom
b. to enter a sequence structure is at the bottom and to exit from it is at the top
c. to enter a sequence structure is at the top and to exit from it is at the middle
d. to enter a sequence structure is at the middle and to exit from it is at the bottom
Answer: a
58. When a condition exists in the loop structure ?
a. when a condition is true
b. when a condition is false
c. when a condition both of true and false
d.none of them
Answer:a
59. What is EOF?
a. end of file
b. end of function
c. both of them
d. none of them
Answer: a

60. Why we use connectors?

a. to return the flow to the beginning of the loop is  a branch
b. to return the flow to the beginning of the loop is not a branch
c. both of them
d. none of them
Answer:b

61. Which are the relational operator?

a. true, false
b. *,/,+
c. <,>,=
d. -,%
Answer: c


62. An entire program module can be represented

a. by a selection structure
b. by a loop structure
c. by a sequence structure
d. both of them
Answer:c

63. What is the significant feature of the threes structures?

a. a double entry point
b. a double exit point
c. a single entry point
d. a single entry point  and a single exit point
Answer: d

64. Why will use a Pseudocode?

A. Structure coding
B. Structure looping
C. Structure initializing
D. All the above
Answer: A

65. Pseudocode, literally a ………

A. Fake code
B. Selection code
C. Reading code
D. All the above
Answer: A

66. Pseudo code is an extension of, and a replacement for…

A. Program develop
B. The algorithm developed
C. Defining the problem
C. All the above
Answer: B

67. The indention of all instructions within the ………

A. EACH
B. End
C. LOOP
D. Not at all
Answer: C

68. What is aligned left with DO WHILE?

A. End
B. DO
C. While
D. All the above
Answer: A

69. Which instruction is illustrated by the selection structure?

A. IF-THEN-TRUE
B. IF-THEN-ELSE
C. IF-THEN-FALSE
D. A & B
Answer: B

70. Who provide FOR Loops?

A. BASIC, COBOL
B. PASCAL, COBOL
C. BASIC, FORTAN77, PASCAL, COBOL
D. All the above
Answer: C

71. Who has a PERFORM UNTIL instruction?

A. BASIC
B. PASCAL
C. FORTAN77
D. COBOL
Answer: D

72.  PASCAL has which instruction?

A. DO WHILE
B. Go to instruction
C. REPEAT UNTIL
D. All the above
Answer: C

73. Which instruction can be represented in a flowchart as a series of selection structure?

A. CASE
B. Verb
C. Sentence
D. All the above
Answer: A

74. The comparison of two values is represented in a program flowchart by the….

A. Decision making
B. Decision outline
C. Decision putting
D. Decision understanding
Answer: B

75. Which rules to be concerned with involve the loop and selection structure?

A. Code rules
B. System rules
C. Syntax rules
D. All the Above
Answer: C

76. The loop structure is illustrated by which instruction?

A. IF-ELSE
B. GO-TO
C. A&D
D. DO WHILE
Answer: D

Q1. Today in developing a program, major emphasis is given on which aspects?  

  1. Efficient algorithms and techniques to save computer time and memory.
  2. Easily understood logic.
  3. Easy maintenance
  4. Low usage of costly disk space

Answer: B, C

Q2. Which of the following the term structured programming refers to?
  1. A collection of techniques to follow for program developing
  2. A collection of library code to help programmers
  3. A collection of hardware for fast processing
  4. A collection of efficient logic

Answer: A

Q3. The main transfers controls to a sub module to perform a task. What happens when the sub module has completed its task?
  1. The sub module closes the program
  2. The sub module returns control to the main module
  3. The sub module waits idly for the main task the control back
  4. The sub module transfers control the underlying operating system
Answer: B
Q4. Which type of subroutines is frequently used for complex processing that is needed by many users, such as mathematical or statistical routines or the storing of files?
  1. Internal
  2. External

Answer: B

Q5. The top down approach is a useful technique in                          .
  1. Planning a modular programming
  2. Writing a smart program code
  3. A object oriented  programming
  4. Report writing

Answer: A

Q6. What do we do identify a module?

  1. A module is given a abbreviated name
  2. A module is given a name which reflects what the module does and a number is included with name
  3. A module is given a name with a special prefix.
  4. None of the above

Answer: B

Q6. A structure chart is commonly used planning tool in                         .

  1. Top-down programming
  2. Object oriented programming
  3. Procedural programming
  4. Data processing.

Answer; A

Q8. Find out the following logic patterns or structures are identified as suffient for any structured programming?

  1. The sequence structure .
  2. The loop structure
  3. The selection structure
  4. Control structure.

Answer: A, B, C

Q9.  EOF means___

  1. There is no record in the file.
  2. The file does not exist
  3. The file is not accessible
  4. The file cannot be created

Answer: A

Q10. In modular programming, the program is broken down into __

  1. Files
  2.  Projects
  3.  Instructions
  4. Modules

Answer: D

Q11. Modular programming is implemented by ___
  1. Subroutine
  2. Instructions
  3. Source programs
  4. Machine code
  Answer: A

Q12. Which one is the definition of a subroutine?

  1. A group of instructions that perform a limited processing task.
  2. A file that contains a group of instructions that performs a limited processing task.
  3. A group of instructions that performs a total processing task.
  4. None

Answer: A
Q13. A collection of techniques for planning writing for program that increases programmer productivity is
  1. Modular programming
  2. Procedural programming
  3. Structure programming
  4. A functional programming
Answer: A
Q14. Which of the following are related to structured programming?
  1. Top down programming
  2. Use of control structure-loop,selection,sequence
  3. Functional programming
  4. OOP
Answer: A
Q15. In modular programming, a piece of program that performs a single limited function is known as which of the following?
  1. A class
  2. A module
  3. A loop
  4. A sequence
Answer: B
Q16. The likelihood of error in a small & limited purpose serving module is reduced. Why?
A. Because each module is written by an individual team.
B. Because it commented well while coding
C. Because the purpose & size of the each module is limited
D. All of the above
Answer: C

Q17. In Modular programming, each program contains a main module , which controls everything that happens but it transfers control to sub modules so that they can perform their function. Then, Which of the following is true ?

  1. Each Sub module exits program when it has performed its function.
  2. Each Sub module returns control to the main module when it has performed its function.
  3. Each Sub module calls an exit module when it has performed its function.
  4. None

Answer: B

 Q18. A printed line that contains information about a single entity is which of the following

  1. Group indication
  2. Heading line
C. Detail line
D. Printed line

Answer: C

Q19. The subroutine that is part of the program that uses is ___________
  1. An internal subroutine
  2. An external subroutine
  3. None

Answer: A


Q20. After a subroutine has finished its work what will happen?

  1. The program end
  2. Control is returned transferred to the caller of the subroutine
  3. Control is transferred to the exit  routine
  4. None

Answer: B

Q21. Which one is register?

  1. A special-purpose hardware
  2. A special-purpose software
  3. A special-purpose memory device
  4. None

Answer: C

Q22. The instruction that transfers control to the subroutine and back again are commonly known as___________

  1. Call instruction
  2. Return instruction
  3. Call and return instruction
  4. Any of the three

Answer: B
Q23. The transfer of control to the subroutine and return control back is possible because
  1. the location of the instruction to which control is to return is stored in program
  2. the location of the instruction to which control is to return is stored in memory
  3. the location of the instruction to which control is to return is stored in register
  4. None
Answer: C
Q24. A set of instructions for performing a particular task that can be used by any program as the instructions reside in a library that is external to the using program is ___
  1. Internal subroutine
  2. External subroutine
  3. Module
  4. None
Answer: B
Q25. In this technique we define the main program module, which initiates the program, call other modules and then terminates. What technique is this?
  1. Modular programming
  2. Top-down programming
  3. Bottom up programming
  4. None
Answer: B
Q26. Structure chart is planning tool used in ___________
A. Modular programming
  1. Top-down programming
  2. Bottom up programming
  3. None

Answer: A

Q27. Which of the following is / are true for structure chart?

  1. It does not show the exact processing steps
  2. It does not show what modules  will be called under what condition
  3. It does not show function to perform
  4. It does not show relationship between modules.

Answer: A, B

Q28. Reading of first record in a file prior to entering a loop that is executed until EOF id reached is known as ____________

Active read

Comments

Popular posts from this blog

IDB HTML MCQ

Questions: 1. A webpage displays a picture. What tag was used to display that picture? a. picture b. image c. img d. src 2. <b> tag makes the enclosed text bold. What is other tag to make text bold? a. <strong> b. <dar> c. <black> d. <emp> 3. Tags and test that are not directly displayed on the page are written in _____ section. a. <html> b. <head> c. <title> d. <body> 4. Which tag inserts a line horizontally on your web page? a. <hr> b. <line> c. <line direction=”horizontal”> d. <tr> 5. What should be the first tag in any HTML document? a. <head> b. <title> c. <html> d. <document> 6. Which tag allows you to add a row in a table? a. <td> and </td> b. <cr> and </cr> c. <th> and </th> d. <tr> and </tr> 7. How can you make a bulleted list? a. <list> b. <nl> c. <ul> d. <ol> 8. Ho

Database Connection with PHP PDO MYSQL

PDO Connection MYSQLI // Create Connection with Pdo\ $dsn = "mysql:host=localhost; dbname=test;"; $db_user = "root"; $db_password = ""; try{     $conn = new PDO("$dsn", "$db_user","$db_password");    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);     // $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);     echo "Connected"; }catch(PDOException $a){     echo "Connection Failed". $a->getMessage(); }