NKR ARTS AND SCIENCE COLLEGE FOR a) dataType arrayName[size];
WOMEN, NAMAKKAL b) array dataType[size];
DEPARTMENT OF COMPUTER SCIENCE
c) dataType[size] arrayName;
INTERNAL TEST- I
‘C’ PROGRAMMING d) arrayName[size] dataType;
Class: II Bsc(CS) Maximum: 50 Marks PART B (4x5=20 marks)
Date: 19-02-2025 Time: 2 hours
Answer All Questions
11. Write short notes on rules for switch statement.
PART A (10x1=10 marks)
12. Write the difference between While and Do While.
Answer ALL Questions
13. Briefly write about jump statement.
1) Switch statement accepts 14. How will you declare One Dimensional array?
a) Int b) char c)long d)All of the above
PART C (10x2=20 marks)
2) If switch feature is used, then Answer ALL Questions
a) Default case must be present
b) Default case, if used, should be the last case 15. Discuss in detail about decision making statements of
c) Default case, if used, can be placed anywhere ‘C’.
d) None of the above
16. Explain in detail about For loop Statement.
3) Which loop is guaranteed to execute at least one time?
a) for b) while c) do while d) None of the above
4) A labeled statement consist of an identifier followed by
a) ; b) : c) , d) =
5) do-while loop terminates when conditional expression
returns?
a) One b) Zero c) Non – zero d) None of the above
6) The continue statment cannot be used with ________
a) for b) while c) do while d) switch
7) Loops in C Language are implemented using?
a) While Block b) For Block
c) Do While Block d) All the above
8) Array is a _________ data structure.
a) Non-linear c) Primary
b) Linear d) Data type
9) Which of the following statement is correct about the
array?
a. In the array, users can only allocate the memory at the
run time.
b. In the array, users can only allocate the memory at the
compile time.
c. The array is a primitive and non-linear data structure
that only stores a similar data type.
d. All of the these
10. How is an array declared in C?