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

Programming For Problem Solving

Uploaded by

tulsisarkar2030
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)
18 views4 pages

Programming For Problem Solving

Uploaded by

tulsisarkar2030
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. …………………..

TCS–101
B. Tech. (First Semester)
EXAMINATION, 2023-24
PROGRAMMING FOR PROBLEM SOLVING
Time : Three Hours
Maximum Marks : 60
Note : Question Paper has three section. Read carefully
instructions for each section.
Section—A
(Very Short Answer Questions)
1. Attempt all questions : 1 each
(a) Write the purpose of an operating system ?
(CO1, RE)
(b) A Source program usually in which language.
(CO1, UN)
(c) Give the range of values that can be stored by int
data type inc ? (CO1, RE)
(d) How is an array initialized in C language ?
(CO3, RE)
(e) Find out the output of the following code snippet :
(CO1, RE)

P. T. O.
[2] TCS–101

int main()
{
int sum=2+4/2+6*2;
printf(“%d”,sum) ;
return0;
}
(f) Write the disadvantage of arrays in C ?
(CO3, RE)
(g) Write the return type of the of open () function in
C? (CO4, UN)
(h) Find out the output of the following code :
(CO2, UN)
void main()
{
int i;
for (i+1;i<=10;i++)
printf(”%d\n”’,i);
}
(i) Write the types of functions in c language ?
(CO3, RE)
(j) Comment on this const int*ptr; (CO3, UN)
(k) List out the return type of mallac() or calloc().
(CO4, RE)
(l) Write the return value of putchar(). (CO5, UN)
[3] TCS–101

Section—B
(Short Answer Type Questions)
2. Attempt all questions : 4 each
(a) List the different data types in c. (CO1, AN)
OR
Define the variable ? Illustrate with an example.
(CO1, AN)
(b) Write a program to find greatest in 3 numbers.
(CO2, AN)
OR
Write a program to find whether given no. is
Even or Odd. (CO2, AN)
(c) Differentiate between a for loop and a while loop
? what are it uses ? (CO2, AN)
OR
Explain the decision making statement in c ?
(CO2, AN)
(d) Differentiate between Array and Pointers ?
(CO3, AN)
OR
Write a program to find the average of n numbers
using Arrays. (CO3, AN)
(e) Differentiate in between malloc and calloc ?
(CO4, AP)
OR
How to declare a members in Structure ?
(CO4, AP)

P. T. O.
[4] TCS–101

(f) write short notes on fseek(). (CO5, EV)


OR
Write a program to accept a string and display in
Reverser. (CO5, EV)
Section—C
(Long Answer Type Questions)
3. Attempt all questions : 8 each
(a) Explain the various Storage classes in c in detail.
(CO1, EV)
OR
Explain the Structure of c program in detail.
(CO1, EV)
(b) Difference between CALL by Value and CALL
by Address with example. (CO3, AN)
OR
Write a program to implement multiplication of 2
Matrices. (CO3, AN)
(c) Explain the concept of files with examples.
(CO5, EV)
OR
Write a program to COPY one file contents into
another. (CO5, EV)

TCS–101

You might also like