Fundamentals of



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

8. Which of the following statements is correct?

(A) Flowchart is a pictorial representation of an algorithm

(B) Pseudocode is an analysis tool used for planning program logic

(C) Both A and B are false



(D) Both A and B are true

9. A structured chart is

(A) A statement of information processing requirements



(B) A hierarchical partitioning of the program

(C) A document of what has to be accomplished

(D) All of the above



10. Connector in flowchart is represented by

(A) Rectangle (C) Ellipse (B) Diamond (D) Circle

11. A rectangle in flowchart denotes

(A) Start of Program (B) Input or output function



(C) Arithmetic and data movement instruction (D) End of program

12. In a flowchart, flow lines are used to indicate


(A) Beginning of program

(C) Flow of operations

(B) Data movement

(D) All of the above


13. Which of the following symbol is not used while drawing flowchart?

(A) Terminal (B) Input/Output (C) Processing

14. Infinite loops can be avoided by using

(A) Sentinel (B) Counter (C) Algorithm (D)BothA&B

15. Structure charts are read in direction.

(A) left-right,top-down (B) top-down,left-right



(C) down~up,left-right (D) top-down,right-Ieft

16. An algorithm is represented as
(D) Control


(A) Programs (B) Flow charts (C) Pseudo Codes (D) All of above

17. A diamond is used in flowcharts to represent .

(A) Arithmetic & data movement instructions (B)Input



(C) Output (D) Decision




18. Functional flow of a program is shown by:

(A) Flowchart (B) Pseudo code (C) Structure chart (D) Program Map

19. The is a program design tool that visually represents the solution logic.

(A) Flowchart (B) Program map (C) Pseudo code (D) Structure chart

20. The term algorithm refers to

(A) step by step description of how to arrive at the solution of problem. (B) it is a kind of flow chart.

(C) it is a set of instructions in specified sequence.

(D) All of the above.

21. Pseudo code is used to

(A) Run a program (B) Compile a program



(C) Plan program logic using natural language (D) Debug a program

22. Algorithm can be represented in following ways except


(A) as a program (B) as a flowchart (C) as a process

23. Rectangle can be used for representing

(D) as a pseudo code


(A) decision (B) processing (C) input-output (D) none of these

24. Which one of the following is the disadvantage of a flowchart?


(A) Efficient coding

(C) Better Communication

(B) Systematic Debugging



(D) None of these


25. Iteration logic is used to execute instructions

(A) Depending upon some condition to choose one of the path



(B) One after another

(C) Several times depending upon some condition

(D) None of the above


Answers :-




1. A 2. A 3.C 4 B

14. D 15. B 16.D 17.D

5. A 6. A 7. C

18.C 19. A 20. A

8. D 9. B

21. C 22. C

10. D

23. B

11. C 12. C 13. D

24. D 25. C


1. Which of the variable occupies 2 bytes of the memory?

(A) Float (B) Double (C) Short Integer (D) None of the above



2. The preprocessor can be denoted using which of the symbols?

(A) # (B)- (C)$ (D) &

3. The escape character \n is used for-----purpose


(A) Tab (B) New line (C) Header flies

4. The operator '+' has which priority?

(A) First (B) Third (C) Second (D) Fourth

5. The type of constants can be enclosed between single quotes

(A) Real (B) Character (C) Integer (D) Float



D) None of the above


6. The type of constants have to be enclosed between double quotes.

(A) Float (B) Integer (C) String (D) Character

7. In C the maximum length of the ............... is said to be 8.

(A) Character (B) String (C) Integer (D) Identifiers

8. Which of the following variable has the maximum length of 4 bytes?

(A) Float (B) Double (C) Integer (D) Character

9. Which of the following variable the maximum length of 8 bytes?

(A) String (B) Constant (C) Integer (D) Double

10. 8 Bytes will be occupied by which the following statements?

(A) float a, s; (B) char p, q; (C) int x, y; (D) All of above






11. The constants in c can express in both fractional & exponential forms.

(A) String (B) Character (C) Real (D) Integer

12. The statement char ch='z' would store in ch


(A) ASCII value of z

(D) All the Above

13 The maximum value of

(B) The character z (C) along with single inverted comma


Download 9.46 Mb.

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




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

    Main page