Fundamentals of



Download 9.46 Mb.
Page32/57
Date09.01.2017
Size9.46 Mb.
#8172
1   ...   28   29   30   31   32   33   34   35   ...   57

33. Any program can be written using

(A) Selection logic

(C) Iterative logic

(B) Pseudocode

(D) Structured Chart
(B) Sequence and selection logic

(D) Sequence, selection and Iterative logic




34. Any program can be written using structures.

(A) Sequence logic, Merge logic, Insertion logic

(B) Sequence logic, Selection logic, Iteration logic (C) Sequence logic, Branch logic, Iteration logic (D) None of the above

35. 'DO ... WHILE' and 'REPEAT .... UNTIL' structure are called


(A) Sequential logic structures

(C) Iterative logic structures



36. 'IF ... THEN ... ELSE' or 'CASE 'structure are called

(A) Selection logic structures



(C) Iteration logic structures

37. Loops in a program are written using

(A) Selection logic

(C) Sequence logic

(B) Decision logic structures



(D) None of the above
(B) Sequence logic structures

(D) Program logic structures
(B) Iteration logic

(D) None of the above


38. Which of the following logic is used to produce loops in programme logic?



(A) sequence logic

(C) iteration logic

39. Flowlines are used for

(B) selection logic



(D) none of them


(A) connecting from one page to another page (B) input-output

(C) Decision logic (D) Indicate flow of program

40. Which of the following is not used as a logic structure while writing 'C' programs?


(A) sequence logic

(C) selection logic

(B) process logic

(D) iteration logic


41. The default flow of control, particularly in imperative programming is


(A) Parallel

(C) Random

42. In flowcharts, ellipse is used fOf denoting

(A) Start only

(C) Both Start and End



(B) Sequential

(D) None above
(B) Stop only

(D) None ofthese




43. The symbol is used to indicate the beginning, ending, and pauses in the program logic flow.


(A) Flowlines

(C) Input/Output

(B) Processing

(D) Terminal.


44. To write the correct and effective program we must first


(A) Draw a flowchart

(C) Write the pseudocode

45. Pseudocode is also called as the

(A) Program Design Language (PDL)



(C) imitation

(B) Plan its logic



(D) All ofthe above
(B) Microflowchart

(D) Decision.


46. Pseudocode emphasize on the aspect of a program.


(A) Development

(C) design

(B) Coding

(D) debugging.


47. The similarity between structure charts and flow charts is


(A) both of them use top-down approach

(C) both of them provide pictorial view.

(B) both of them use bottom-up approach

(D) none of them hide specific language syntax




48. The logic is used to produce loops in program logic when one or more instruction may be executed several times depending on some conditions.


(A) Iteration logic

(C) Sequence logic

(B) Selection logic

(D) Decision logic


49. Which logic is used to select the proper path out of two or more alternative paths in the program

logic?


(A) Looping logic

(C) Iteration logic

(B) Sequence logic

(D) Selection logic


50. The is a program-planning tool that allows the programmers to plan program logic by

writing program instructions in an ordinary language


(A) Flowchart

(C) Program

(B) Pseudocode

(D) Looping



Answers

1. A 2. C 3. D 4. A 5. A 6. A 7. D 8. C 9. C 10. A



11. B 12. D 13. D 14. B 15. B 16. B 17. B 18. A 19. D 20. D

21. D

22. D

23. D

24. C

25. D

26. D

27. B

28. A

29. B

30. B

31. D

32. A

33. D

34. B

35. C

36. A

37. B

38. C

39. D

40. B

41. B

42. C

43. D

44. D

45. A

46. C

47. C

48. A

49. D

50. B





1. Selection logic is also called as the

(A) Decision logic (B) Iteration logic (C) Sequence logic (D) Looping logic



2. What do you mean by an iterative operations?

(A) It is a control structure that repeats the execution of a block of instructions



(B) It is a control structure that asks a true/false question and then selects the next instruction

based on the answer

(C) In it Instructions are executed in order



(D) All of the above

3. Which of the following is used for making the next iteration of the loop to be started?

(A) break (B) case (C) continue (D) All the Above

4. In which of the following scenario, sequence logic will not be used?

(A) Accepting an input from the user. (B) Comparing two sets of data

(C) Giving an output to the user. (D) Adding two numbers

7. Which of the following statement is false?

(A) Flowchart provides graphical representation of program logic



(B) Drawing a flowchart before writing the program is better

(C) Pseudocode gives graphical representation of program logic

(D) Writing pseudocode before writing the program is better


Download 9.46 Mb.

Share with your friends:
1   ...   28   29   30   31   32   33   34   35   ...   57




The database is protected by copyright ©ininet.org 2024
send message

    Main page