0% found this document useful (0 votes)
41 views3 pages

CS-01 C Lang 2024-25

This document is a preliminary exam paper for BCA/BSC IT students at Geetanjali College of Computer Science & Commerce, focusing on Programming in C. It includes various types of questions such as multiple choice, brief explanations, and detailed explanations covering topics like data types, operators, loops, functions, and structures. The exam is designed to assess students' understanding of fundamental programming concepts in C language.
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)
41 views3 pages

CS-01 C Lang 2024-25

This document is a preliminary exam paper for BCA/BSC IT students at Geetanjali College of Computer Science & Commerce, focusing on Programming in C. It includes various types of questions such as multiple choice, brief explanations, and detailed explanations covering topics like data types, operators, loops, functions, and structures. The exam is designed to assess students' understanding of fundamental programming concepts in C language.
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/ 3

Geetanjali Cheritable Trust Sanchalit

G E E T A N J A L I C O L L E G E O F C O M P U T E R S C I E N C E & CO M M E R C E ( B B A )
PRELIMINARY EXAM
BCA / BSC IT S E M - 1
SUBJECT : Programming In C DATE : / /
TIME : 2 Hours. MARKS: 50

Q-1-(A) ANSWER THE FOLLOWING. (3)


1. How many bits occupied by char data type?
2. Who developed C language?
3. && is …………………. Operator.

Q-1-(B) ANSWER IN BRIEF (2)


1. Explain the typedef data type

Q-1-(C) ANSWER IN BRIEF (5)


1. List different types of Operators.
OR
Q-1-(A) ANSWER THE FOLLOWING. (3)
1. Logical operator cannot be used with “DO” Loop? (True / False)
2. What is constant?
3. What is Dry run?

Q-1-(B) ANSWER IN BRIEF (2)


1. Explain Type casting?

Q-1-(C) ANSWER IN BRIEF (5)


1. Explain Structure of c language with example.

Q-2-(A) ANSWER THE FOLLOWING. (3)


1. Which Symbol is used for Conditional operator?
2. break statement is used for………………
3. …………….. known as exit control loop.

Q-2-(B) ANSWER IN BRIEF (ANY ONE) (2)


1. Explain goto statement with syntax and example.

Q-2-(C) ANSWER IN BRIEF (ANY ONE) (5)


1. What is loop? Explain while loop in detail with example
OR
Q-2-(A) ANSWER THE FOLLOWING. (3)
1. List out iterative control statement.
2. Which value is return by conditional operator when condition is false?
3. what is ternary operator?

Q-2-(B) ANSWER IN BRIEF (ANY ONE) (2)


1. Explain for loop.

Q-2-(C) ANSWER IN BRIEF (ANY ONE) (5)


1. Write down note on switch case.
Q-3-(A) ANSWER THE FOLLOWING. (3)
1. In ………………… storage class, the scope of the variable is global.
2. Recursion means ….......................
3. What is use of atof() ?

Q-3-(B) ANSWER IN BRIEF (ANY ONE) (2)


1. Explain Any 4 Mathematical function

Q-3-(C) ANSWER IN BRIEF (ANY ONE) (5)


1. What is UDF? Explain It’s Type with suitable Example.
OR
Q-3-(A) ANSWER THE FOLLOWING. (3)
1. A function cannot return more than one value. (true/false).
2. If two strings are identical then, strcmp() function will return ………………
3. Which header file is included in errno() ?

Q-3-(B) ANSWER IN BRIEF (ANY ONE) (2)


1. Explain call by reference in detail.

Q-3-(C) ANSWER IN BRIEF (ANY ONE) (5)


1. Explain Different Storage Class.

Q-4-(A) ANSWER THE FOLLOWING. (3)


1. Pointer to structure is used …………….. operator.
2. Array index starts from ……………
3. The declaration of int arr[4] = {1,2,3,4}; is true or false.

Q-4-(B) ANSWER IN BRIEF (ANY ONE) (2)


1. Explain String Array.

Q-4-(C) ANSWER IN BRIEF (ANY ONE) (5)


1. Explain types of Array with suitable Example.
OR
Q-4-(A) ANSWER THE FOLLOWING. (3)
1. How many ways we can initialize array variable?
2. What is pointer?
3. ………………………array is a collection of rows and columns.

Q-4-(B) ANSWER IN BRIEF (ANY ONE) (2)


1. Explain Dangling pointer problem.

Q-4-(C) ANSWER IN BRIEF (ANY ONE) (5)


1. Explain Pointer to structure.

Q-5-(A) ANSWER THE FOLLOWING. (3)


1. Structure is collection of ………………….. data types.
2. ……………… keyword is used to create structure.
3. Which operator is used to access a member element of structure?
Q-5-(B) ANSWER IN BRIEF (ANY ONE) (2)
1. Explain nested structure.

Q-5-(C) ANSWER IN BRIEF (ANY ONE) (5)


1. Different between Structure and Union.
OR
Q-5-(A) ANSWER THE FOLLOWING. (3)
1. What is the difference between a Structure and a Union?
2. ……………… keyword is used to create union.
3. Will the values in a structure be modified when they are changed in a function?

Q-5-(B) ANSWER IN BRIEF (ANY ONE) (2)


1. Explain structure with array.

Q-5-(C) ANSWER IN BRIEF (ANY ONE) (5)


1. Define a structure named Circle to represent a circle with a radius. Write a C program to
calculate the area and perimeter of two circles and display the results

BEST OF LUCK

You might also like