0% found this document useful (0 votes)
33 views1 page

PPS 100104

1. This document provides a set of programming problems and questions for a Programming for Problem Solving course. 2. It includes multiple choice questions about C programming concepts like bitwise operations, variable declaration syntax, logical operators, header files, and storage classes. 3. Programming problems involve writing code to initialize a character array, find the transpose of a matrix, swap variable values using a function, perform bubble sort, and more. Students are asked to write algorithms and C code to solve these problems.

Uploaded by

sroy35953
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)
33 views1 page

PPS 100104

1. This document provides a set of programming problems and questions for a Programming for Problem Solving course. 2. It includes multiple choice questions about C programming concepts like bitwise operations, variable declaration syntax, logical operators, header files, and storage classes. 3. Programming problems involve writing code to initialize a character array, find the transpose of a matrix, swap variable values using a function, perform bubble sort, and more. Students are asked to write algorithms and C code to solve these problems.

Uploaded by

sroy35953
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/ 1

SERSHAH ENGINEERING, SASARAM

B. Tech (CSE/EEE) Semester – I 3. (A). Write syntax to initialize a character array of size 5. [1]
Session 2021-22 (B). WAP in C to take input a matrix along with its dimension and find its
transpose. [3]
Subject: Programming for
Time: 2 Hour 4. (A). Write the output of following statement: [1]
Problem Solving

Course Code: 100104 Full Marks: 20 printf(“%d”,3<<4);

(B). Write the output of following program: [3]

#include <stdio.h>
Note: Each question carry equal marks.
1. Choose the correct answer in MCQ and fill in the blank with appropriate words. void main( ) {
[8 x 0.5 = 4]
A. The result of bitwise operation 15 & 12 will be:- fun(3);
i. 3 ii. 27
iii. 12 iv. 15 }

B. The INVALID syntax to declare a variable is void fun(int n){


i. int a-1; ii. int A1;
iii. int a1; iv. int a_1; while(n){

n--;
C. Choose the INVALID logical operator in C:-
i. || ii. ! fun(n);
iii. && iv. ^
printf("\n%d",n);
D. printf() function is defined in the header file
i. conio.h ii. stdio.h }
iii. string.h iv. math.h
}
E. Bhojpuri is a …………. level language.
F. do while loop is the example of ………… controlled loop.
G. Name of the array also represents ……………………….. 5. (A). WAP in C to swap value of two variables using function. [2]
H. Default value of a variable defined with auto storage class is …………
(B). WAP in C to perform bubble sort [2]
2. (A). Classify token in C programming. [2]

(B). Draw a flowchart to compute the factorial of a number. [2]

You might also like