0% found this document useful (0 votes)
29 views2 pages

Adobe Scan Dec 12, 2023

This document provides instructions for a C programming exam. It outlines 6 modules that will be covered in the exam. Students must answer 1 full question from each module. The modules cover topics like loops, conditional statements, arrays, functions, strings and structures. Students are provided with sample questions and problems to solve for each module to test their understanding of C programming concepts.

Uploaded by

harshagowda0464
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)
29 views2 pages

Adobe Scan Dec 12, 2023

This document provides instructions for a C programming exam. It outlines 6 modules that will be covered in the exam. Students must answer 1 full question from each module. The modules cover topics like loops, conditional statements, arrays, functions, strings and structures. Students are provided with sample questions and problems to solve for each module to test their understanding of C programming concepts.

Uploaded by

harshagowda0464
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

USN: BES!

VIDYAVARDHAKACOLLEGE OF ENGINEERING
Technological Untversity, Belagavi
Autonom¡us Instiutr, A!fNliated to Visvesvraya
Gokulam 3r Stage, Mysuru 570 002
Second Semester B.E. Examinations: September/0ctober-z023
Introduction to CProgramming Max. Mai
Duration: 3 Hour
INSTRUCTION TO STUDENTS
1) Answer One Fullquestion from each module.
2) Each module carries 20 marks.
Q.No Module-|
Marks BI
7 Li
1 (a) Write an algorithm anddraw the lowchart tofind the area of a circle.
6 L2
1 (b)| Explain the logical operators in 'C' with suitable example.
7 L3
1(<) Develop a CProgramto caleulate Area and Perimeter of a Rectangle.
Module-II
L2
2 (a) 1llustrate if-else and if-else-if statements in 'C" with its syntax.
6 L3
2(b) Write a Cprogram to find the factorial of a number 'N' using for loop. L3
7
2(c) Develop a CProgram for arithmetic operations using switch-case() statement.
OR
7 L2
3 (a) Explain while and do-while statementsin Cwith its syntax.
6 L3
|3(b) Write a CProgram to check whether a person is eligible to Vote or not.
7 L3
3 (c) Develop aCprogram to print the following pattern using nested loop.

Module-II
4 (a)l Explain declaration and initialization of 1D and 2D array with syntax and L2
example. 7

4 (b) For the given array a (7], find an element '55' in the given array by using 8 L3
linear search and print whether the element is searched successfully or
unsuccessfully.
30 35 50 55 65 75 85

|4 (c) Develop a Cprogram to add two matrices. 5 L3


OR
5 (a)l Write aCProgram to print even numbers from 2to 'N' usine 1D araray L2
s(b) For the given array a (5). develop the Cprogram to swap the adjacent L3
elements repeatedly using bubble sort and print the sorted array.
15 2 11 3
25

5 (c)l Develop a Cprogram to find transpose of a given matrix. 5 L3


Module-V
f l Explain function declaration, function definition and function call with its 6 L2
syntax.
6 (b)l Writea Cprogram to periorm swapping of two numbers using pointer. 6 L3

1
hon 8
6 (c) For the given below funtion, complete the codetofind factorial of the
compete
negative integer.
int fact(arguments)

n'fact(n-1)
Module-y
7
7(a) Discuss the following in strnngrnanipulation function in 'C with syntax.
()strcmp()
(i) strcpy0
( )strlen)
7(b) Assume Mr. Dhanush. Mis studying in your chass.
Devetop a C Program to
read and print his academic performance in TE:ST using structure. (Assumne
structure members suitabBy)
7(c) Develop a Cpeogram o voxatenate the given two
"Wortd' and dasplay the resuit sn str3 without strings: stri: "Hello" str2
using string functao.
End..

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