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

Fundamental of Programming_16-2-2022

Uploaded by

Soumya Das
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)
7 views

Fundamental of Programming_16-2-2022

Uploaded by

Soumya Das
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

Seat No:_______________ Enrollment No:_______________

PARUL UNIVERSITY
FACULTY OF IT & COMPUTER SCIENCE
BCA/IMCA/B.Sc.IT Regular Exam, Winter 2021-22
Semester: 1st Date: 16/02/2022
Subject Code: 05101104 Time: 2hr:30min
Subject Name: Fundamentals of Programming using C Total Marks: 60
Instructions:
1. All questions are compulsory.
2. Figures to the right indicate full marks.
3. Make suitable assumptions wherever necessary.
4. Start new question on new page.

Q.1 Answer the followings.


A. Answer / Define the following in short. (05)
1. What is constant?
2. What is the use of printf() and scanf()?
3. List out 5 keywords of C?
4. What is a Header file?
5. What are the logical operators in C?
B. Multiple choice type questions/ Give the sentence true or false. (Each of 01 marks) (10)
1. Types of Integers are ______
a) short b) int c) long d) All the above
2. All keywords in C are in ____________
a) LowerCase letters b) UpperCase letters
c) CamelCase letters d) None of the mentioned
3. Which of the following is not a logical operator?
a) & b) && c) || d) !
4. The C-preprocessors are specified with _________ symbol.
a) # b) $ c) ” ” d) &
5. The C language consists of number of keywords.
a) 32 b) 40 c) 24 d) 56
6. Which among the following is a unconditional control structure.
a) goto b) for c) do-while d) if-else
7. How is an array initialized in C language?
a) int a[3] = {1, 2, 3}; b) int a = {1, 2, 3};
c) int a[] = new int[3] d) int a(3) = [1, 2, 3];
8. Which is valid string function ?
a) strpbrk b) strlen c) strxfrm d) strcut
9. An array elements are always stored in _________memory locations.
a) Sequential b) Random c) Sequential and Random d) None of the
above
10. What is #include <stdio.h>?
a) Preprocessor directive b) Inclusion directive
c) File inclusion directive d) None of the mentioned
Q.2 Answer the followings. (3 Marks Questions.) (Any Five) (15)
1. What is the history of C?
2. What are the data types in C?
3. Differentiate while and do..while loop.
4. What is Ternary (?) Operator, explain with syntax.
5. Write a C program to calculate factorial of a given number using while loop.
6. Differentiate structure and union.
Q.3 Answer the following. (5 Marks Questions)(Any three) (15)
1. What is the need of an algorithm and flowchart? Write an algorithm to check a
number is even or odd.
2. What is structure? Explain with suitable example.
3. What are the control statements? Explain nested if with suitable example
Page 1 of 2
4. What is array? How to declare an array? Explain with suitable example.
Q.4 Answer the following in detail.
A. What is function? What are the different categories of function? (05)
B.(1) Write short note on jumping statements in C. (05)
B.(2) What is 2-D array? Write a C program for addition of two matrices. (05)
OR
B.(1) What are the storage classes in C? Explain. (05)
B.(2) Draw a flow chart for find a greatest number between three numbers. (05)

Page 2 of 2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy