0% found this document useful (0 votes)
15 views4 pages

C Programming

Uploaded by

Ruchi Rewri
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)
15 views4 pages

C Programming

Uploaded by

Ruchi Rewri
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/ 4

Roll No........................... Roll No...........................

B.S.Anangpuria Institute of Technology& Management, Faridabad B.S. Anangpuria Institute of Technology& Management, Faridabad
Pre-University Test , Dec 2022 Pre-University Test , Dec 2022
BCA(DS , 1 Sem)
st BCA(DS , 1st Sem)
Programming In C Programming In C
BCA-DS-101 BCA-DS-101
Set-A Set-A

Time: 3Hrs MM:75 Time: 3Hrs MM:75


Note: Attempt 5 questions in all. Q1 is compulsory. Attempt any Note: Attempt 5 questions in all. Q1 is compulsory. Attempt any
four from remaining six questions. four from remaining six questions.
Q1. Answer the following questions: (1.5x10) Q1. Answer the following questions: (1.5x10)

(a) Define the following in context of C language: (a) Define the following in context of C language:
Keyword, identifier and variable. Keyword, identifier and variable.

(b) What do mean by increment and decrement operators? (b) What do mean by increment and decrement operators?

(c) Define go to statement with syntax. (c) Define go to statement with syntax.

(d) What is meant by basic data types? Name the basic data types used in (d) What is meant by basic data types? Name the basic data types used in
C mentioning their memory requirement. C mentioning their memory requirement.

(e) What is the difference between constant and variable? (e) What is the difference between constant and variable?

(f) Differentiate between formal parameters and actual parameters. (f) Differentiate between formal parameters and actual parameters.

(g) What are the characteristics of an algorithm? (g) What are the characteristics of an algorithm?

(h)Name any four library functions used in C language . (h)Name any four library functions used in C language .

(i) Differentiate between while and do-while loop. (i) Differentiate between while and do-while loop.

(j) What do you mean by break and continue statement? (j) What do you mean by break and continue statement?
Q2. (a) Explain the different types of loops in C with syntax and Q2. (a) Explain the different types of loops in C with syntax and
example. (10) example. (10)
(b) Differentiate between while and do-while loop.with example (5) (b) Differentiate between while and do-while loop.with example (5)
Q3. (a) Write a program in C language to find out the smallest number Q3. (a) Write a program in C language to find out the smallest number
out of given three numbers. (5) out of given three numbers. (5)
(b) What are various logical operators used in C? (5) (b) What are various logical operators used in C? (5)
(c) Discuss strcmp() function with a small programming example. (5) (c) Discuss strcmp() function with a small programming example. (5)

Q4. (a) What do you mean by decision making statement ? Explain the Q4. (a) What do you mean by decision making statement ? Explain the
switch statement with syntax and example. (10) switch statement with syntax and example. (10)
(b) Write a recursive function to print the factorial of a given (b) Write a recursive function to print the factorial of a given
number. (5) number. (5)

Q5. (a) Explain the following functions with their working and syntax Q5. (a) Explain the following functions with their working and syntax
getch(), getche(), gets(), getchar(),puts() (10) getch(), getche(), gets(), getchar(),puts() (10)
(b) Determine the order of evaluation of the following expressions (5) (b) Determine the order of evaluation of the following expressions (5)
(i) A*B*C-D/E*A (i) A*B*C-D/E*A
(ii) A&&B||(C>=D) (ii) A&&B||(C>=D)

Q6. (a) Write a program in C that demonstrates the usage of various Q6. (a) Write a program in C that demonstrates the usage of various
arithmetic operators. (5) arithmetic operators. (5)
(b) Write a program in C that demonstrates the usage of various (b) Write a program in C that demonstrates the usage of various
conditional operators. (5) conditional operators. (5)
(c) Differentiate between a structure and a union . (5) (c) Differentiate between a structure and a union . (5)

Q7. (a) What is an array? What are the merits and demerits of array in C? Q7. (a) What is an array? What are the merits and demerits of array in C?
Differentiate between one dimensional and two dimensional arrays Differentiate between one dimensional and two dimensional arrays
with suitable example. (10) with suitable example. (10)
(b) Differentiate between structure and array? (5) (b) Differentiate between structure and array? (5)
Roll No........................... Roll No...........................

B.S.Anangpuria Institute of Technology& Management,Faridabad B. S. Anangpuria Institute of Technology& Management, Faridabad


Pre-University Test , Dec 2022 Pre-University Test , Dec 2022
BCA(DS , 1st Sem) BCA(DS , 1st Sem)
Programming In C Programming In C
BCA-DS-101 BCA-DS-101
Set-B Set-B

Time: 3Hrs MM:75 Time: 3Hrs MM:75


Note: Attempt 5 questions in all. Q1 is compulsory. Attempt any Note: Attempt 5 questions in all. Q1 is compulsory. Attempt any
four from remaining six questions. four from remaining six questions.

Q1. Answer the following questions: (1.5x10) Q1. Answer the following questions: (1.5x10)

(a) Define the following in context of C language: (a) Define the following in context of C language:
printf() Functions printf() Functions
(b) What do mean by C character set? (b) What do mean by C character set?
(c) Define go to statement with syntax. (c) Define go to statement with syntax.
(d) What is meant by basic data types? Name the basic data types used in (d) What is meant by basic data types? Name the basic data types used in
C mentioning their memory requirement. C mentioning their memory requirement.
(e) What are Arithmetic expressions? (e) What are Arithmetic expressions?
(f) Differentiate between formal parameters and actual parameters. (f) Differentiate between formal parameters and actual parameters.
(g) What do you mean by algorithm? (g) What do you mean by algorithm?
(h)Define the term recursion. (h)Define the term recursion.
(i) Write down the syntax of for loop. (i) Write down the syntax of for loop.
(j) What do you mean if-else statement in C? (j) What do you mean if-else statement in C?
Q2. (a) What is the difference between algorithm and flow chart? Q2. (a) What is the difference between algorithm and flow chart?
Draw a flow chart to find out the largest number out of given Draw a flow chart to find out the largest number out of given
three numbers. (10) three numbers. (10)
(b) Write a program that reads a string and checks if the string is (b) Write a program that reads a string and checks if the string is
palindrome or not. (5) palindrome or not. (5)

Q3. (a) What do you understand by function prototype? What is its Q3. (a) What do you understand by function prototype? What is its
significance? Design a function in C to calculate area of significance? Design a function in C to calculate area of
a triangle. (5) a triangle. (5)
(b) What are the different parameter passing techniques? Explain (b) What are the different parameter passing techniques? Explain
with the help of suitable example. (10) with the help of suitable example. (10)

Q4. (a) What are storage classes in C? (5) Q4. (a) What are storage classes in C? (5)
(b) What is a pointer in C language? How do you declare pointers? (b) What is a pointer in C language? How do you declare pointers?
Explain call by reference using a suitable example. (10) Explain call by reference using a suitable example. (10)

Q5. What is data type ? Explain various categories of data types Q5. What is data type ? Explain various categories of data types
available in C. (15) available in C. (15)

Q6. (a) Differentiate between getch() and getche() with example (5) Q6. (a) Differentiate between getch() and getche() with example (5)
(b)Write an algorithm and also draw flaw chart to print N terms of (b)Write an algorithm and also draw flaw chart to print N terms of
Fibonacci series. (5) Fibonacci series. (5)
(c) Differentiate between while and do-while loop.with example(5) (c) Differentiate between while and do-while loop.with example(5)
Q.7 (a) Explain the structure of a C Program. (5) Q.7 (a) Explain the structure of a C Program. (5)
(b) What is recursion? Write a recursive function to print the (b) What is recursion? Write a recursive function to print the
factorial of a given number (5) factorial of a given number (5)
(c) Write a program in C language to print the roots of a quadratic (c) Write a program in C language to print the roots of a quadratic
equation. (5) equation. (5)

You might also like