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

Programming For Problem Solving KCS-101T PUT QP ODD 20-21

This document outlines the details of a pre-university test for the subject Programming for Problem Solving. It includes 20 questions divided into 3 sections (A, B, C). Section A contains 10 multiple choice questions worth 2 marks each. Section B contains 3 out of 5 long answer questions worth 10 marks each. Section C contains 5 long answer questions worth 10 marks each, where students must attempt all parts. The document provides the course code, semester, subject name, maximum marks, duration of the test, and mapping of questions to course outcomes for outcome based education.

Uploaded by

gosokaj462
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)
42 views2 pages

Programming For Problem Solving KCS-101T PUT QP ODD 20-21

This document outlines the details of a pre-university test for the subject Programming for Problem Solving. It includes 20 questions divided into 3 sections (A, B, C). Section A contains 10 multiple choice questions worth 2 marks each. Section B contains 3 out of 5 long answer questions worth 10 marks each. Section C contains 5 long answer questions worth 10 marks each, where students must attempt all parts. The document provides the course code, semester, subject name, maximum marks, duration of the test, and mapping of questions to course outcomes for outcome based education.

Uploaded by

gosokaj462
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

AKGEC/IAP/FM/02

Ajay Kumar Garg Engineering College, Ghaziabad


Department of IT
Pre-University Test
Course: B.Tech Semester: I
Session: 2020-21 Section: S-11 to S-19
Subject: Programming for problem solving Sub. Code: KCS-101T
Max Marks: 100 Time: 3 hour

OBE Remark:
Q. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
No.
CO CO CO CO CO CO CO CO CO CO CO CO CO CO CO CO CO CO CO CO CO
No. 1 1 2 2 3 3 4 4 5 5 1 1 2 2 3 4 4 5 5 3

Section-A
A. Attempt all the parts. (10 X 2 = 20)
1. Explain Memory hierarchy with diagram.
2. Write characteristics of Algorithm.
3. What are mixed operands. Explain with example
4. What will be the output:

5. Differentiate between while and do-while loop.


6. What will be the output of following code

7. Define notations of order of complexity.


8. Differentiate between structure and union.
9. What do you understand by self-referential structure?
10. Explain pointer arithmetic in short.

Section-B
B. Attempt Any Three (3X 10 = 30)
11. Write an algorithm and draw Flowchart for checking whether entered number is palindrome or not.
12. Differentiate between:
(i) Compiler and Interpreter. (ii) static and auto storage class.
13. What are operators? Explain in detail. When same precedence operators are encountered in an arithmetic
expression, how associativity helps in deciding evaluation order?
14. Discuss significance of break and default in switch-case statement. WAP to find roots of a quadratic
equation.
15. Describe types of looping statements in C. Differentiate between iteration and recursion with example.

Section-C
C. Attempt all the parts. (5 X10 = 50)
16. Attempt Any One
a) Explain various operations defined on arrays. WAP to perform Bubble sort on an integer array using
function.
b) Write a program to find the transpose of a given matrix & check whether it is symmetric or not.

17. Attempt Any One


a) What are structures in C? Write a program to compare two given dates. To store a date uses a structure
that contains three members namely day, month and year. If the dates are equal then display message
equal otherwise unequal.
b) What do you mean by searching? Discuss different searching algorithm and give example of anyone.

18. Attempt Any One


a) What are command line arguments in C programming? Write a program to find the sum of digits of a 5-
digit number using command line argument.
b) What do you understand by preprocessor directives? Explain any three.

19. Attempt Any One


a) What do you mean by dynamic memory allocation? Explain different functions for dynamic memory
allocation along with their syntax.
b) List out various file operations and opening modes in C. Write a program to print all the prime number,
between 1 to 100 in file prime.txt.

20. Attempt Any One


a) What is recursion? WAP to print Fibonacci series using recursion.
b) Explain different parameter passing mechanism in detail. Give an example for both types.

You might also like