0% found this document useful (0 votes)
21 views

II Internal Nov 2023

This document contains an internal test on programming in C for a mathematics department. [1] It has three parts - multiple choice questions in Part A testing concepts like output functions, array initialization, array types, operators, and multidimensional arrays. [2] Part B asks students to explain scanf and printf statements, precedence of operations, find maximum value in an array, two dimensional arrays, and how structures use pointers and arrays. [3] Part C asks students to write programs using a do-while loop, explain multidimensional arrays, and structures in detail with an example.

Uploaded by

s77896859
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

II Internal Nov 2023

This document contains an internal test on programming in C for a mathematics department. [1] It has three parts - multiple choice questions in Part A testing concepts like output functions, array initialization, array types, operators, and multidimensional arrays. [2] Part B asks students to explain scanf and printf statements, precedence of operations, find maximum value in an array, two dimensional arrays, and how structures use pointers and arrays. [3] Part C asks students to write programs using a do-while loop, explain multidimensional arrays, and structures in detail with an example.

Uploaded by

s77896859
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ARULMIGU PALANIANDAVAR COLLEGE OF ARTS AND CULTURE, PALANI. ARULMIGU PALANIANDAVAR COLLEGE OF ARTS AND CULTURE, PALANI.

DEPARTMENT OF MATHEMATIC DEPARTMENT OF MATHEMATIC


SMCJA32 II INTERNAL TEST- PROGRAMMING IN C SMCJA32 II INTERNAL TEST- PROGRAMMING IN C
I Choose the correct answer Part –A 9x1=9 I Choose the correct answer Part –A 9x1=9

1 All output operations are carried out through function called such 1 All output operations are carried out through function called such
as _______ as _______
(a) printf (b) scanf (c) stdio.h (d) getchar (a) printf (b) scanf (c) stdio.h (d) getchar

2. ___________ is used to initialize arrays. 2. ___________ is used to initialize arrays.

(a) { } (b) [ ] (c) ( ) (d) < > (a) { } (b) [ ] (c) ( ) (d) < >

3. Array is a ____________ type variable collection. 3. Array is a ____________ type variable collection.
(a) similar (b) multi (c) two (d) none (a) similar (b) multi (c) two (d) none

4. A ______ is a symbol that tells the computer to perform certain 4. A ______ is a symbol that tells the computer to perform certain
mathematical or logical manipulations. mathematical or logical manipulations.
(a) operator (b) expression (c) constant (d) precedence (a) operator (b) expression (c) constant (d) precedence

5. Four dimensional array requires —————— 5. Four dimensional array requires ——————
square brackets. square brackets.
(a) 1 (b) 2 (c) 3 (d) 4 (a) 1 (b) 2 (c) 3 (d) 4

6. No. of elements in a two dimensional array of size 6. No. of elements in a two dimensional array of size
mn is ——————. mn is ——————.
(a) m n (b) mn (c) m n (d) (mn)2 (a) m n (b) mn (c) m n (d) (mn)2

7. Structure within —————— is allowed. 7. Structure within —————— is allowed.


(a) variable (b) pointer (c) array (d) structure (a) variable (b) pointer (c) array (d) structure

8. Keyword to denote structure is 8. Keyword to denote structure is


(a) Struct (b) Union (c) Data (d) Array (a) Struct (b) Union (c) Data (d) Array

9. # define is used for ——————. 9. # define is used for ——————.


(a) variable (b) constant (c) symbolic constant (d) array (a) variable (b) constant (c) symbolic constant (d) array
II Answer all the questions Part – B 3x7=21 II Answer all the questions Part – B 3x7=21

10. Explain Sca f sand printf statement.. 10. Explain Scan f and printf statement..
( OR ) ( OR )
Explain the concept of precedence of operation. Explain the concept of precedence of operation.
. .
11. Write a program using arrays to find the maximum value. 11. Write a program using arrays to find the maximum value.
( OR ) ( OR )
Explain two dimensional arrays.. Explain two dimensional arrays..

12. Explain Pointer and Arrays are used in structures. 12. Explain Pointer and Arrays are used in structures.
( OR ) ( OR )
How do you access structure member Explain. How do you access structure member Explain.

III Answer all the questions Part – C 10x2=20 III Answer all the questions Part – C 10x2=20

13. Write a program to print numbers from 1 to 10 using do-while 13. Write a program to print numbers from 1 to 10 using do-while
loop.. loop..

14. Explain multidimensional array.. 14. Explain multidimensional array..

15. Explain in detail about structure with example. 15. Explain in detail about structure with example.

You might also like