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

03 Introduction to Programming

Exam

Uploaded by

shaikumar14363
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

03 Introduction to Programming

Exam

Uploaded by

shaikumar14363
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

H.T.

No: Course Code: 231ES1T04

ADITYA ENGINEERING COLLEGE (A)


INTRODUCTION TO PROGRAMMING
(Common to CSE, IT, CSE (DS) & AIML)
Time: 3 hours Max. Marks: 70
1. Answer all 10 questions from Section-A. Each question carries 2 marks.
2. Answer one question from each unit in Section-B. Each question carries 10 marks.

10 X 2 =20
SECTION –A
1 a Define Token. L2 CO1 [2M]
b What is pseudocode. L2 CO1 [2M]
c Write a C program to check number is even or odd. L3 CO2 [2M]
d What is loop. L2 CO2 [2M]
e Define array. L2 CO3 [2M]
f Write any four string handling functions. L2 CO3 [2M]
g Explain function and its types. L2 CO4 [2M]
h What is dangling pointer with example. L2 CO4 [2M]
i Define union with example. L2 CO5 [2M]
j What is Enumeration. L2 CO5 [2M]

SECTION –B 5 X 10 =50
UNIT-I
2 a Discuss about algorithm and flowchart with an example. L2 CO1 [5M]
b Explain arithmetic, relational, bitwise operators in C. L2 CO1 [5M]
OR
3 a Demonstrate the structure of C Program with neat Diagram. L2 CO1 [5M]
b Differentiate implicit and explicit type conversion. Explain the process L4 CO1 [5M]
of type conversion in C programming
UNIT-II
4 a Describe looping statements with syntax and give examples? L2 CO2 [5M]
b Explain a. break b. Continue with example. L2 CO2 [5M]
OR
5 a Explain the various conditional branching statements. L2 CO2 [5M]
b Write a C program to print the factorial of a number L3 CO2 [5M]
UNIT-III
6 a Discuss about the different types of arrays in C. L2 CO3 [5M]
b Explain about various string handling functions with an example L2 CO3 [5M]
OR
7 a Write a C program to find the maximum element in the given L3 CO3 [5M]
array.
b Illustrate various operations on strings using library functions. L3 CO3 [5M]
UNIT-IV
8 a Explain about various categories of functions L2 CO4 [5M]
b What is a pointer? Illustrate how pointers can be used as function L2 CO4 [5M]
arguments with an example.
Page 1 of 2
OR
9 a Explain in detail about the scope of variables in C. L2 CO4 [5M]
b Explain about dynamic memory allocation in detail. L2 CO4 [5M]
UNIT-V
10 a Write a C program to calculate the total marks and grade of a given L3 CO5 [5M]
student using structures.
b Describe different file opening modes that can be used with the L2 CO5 [5M]
fopen() function.
OR
11 a Compare and contrast unions with structures L3 CO5 [5M]
b Write a C program to copy contents of one file to other file. L3 CO5 [5M]

Page 2 of 2

You might also like