Programming for Problem Solving PYQ 2021-22 AKTU (KCS101T)
AKTU · BTECH · Semester 1, 2 · Programming for Problem Solving · Session 2021-22 · PYQ
AKTU Programming for Problem Solving (KCS101T) previous year question paper 2021-22 for B.Tech Semester 1/2. Covers Introduction to Computer System and C…
Open the interactive reader to study this resource on AcademicArk.
Programming for Problem Solving AKTU syllabus
- Unit 1: Introduction to Computer System and C Basics
- Unit 2: Operators Expressions and Conditional Branching
- Unit 3: Loops Arrays Strings and Structures
- Unit 4: Functions and Searching Sorting Algorithms
- Unit 5: Pointers File Handling and Preprocessors
Questions in Programming for Problem Solving AKTU PYQ 2021-22
- Q1a. Differentiate between algorithm and pseudocode. (2 marks, 2021-22)
- Q1b. What are header files? Why are they important? (2 marks, 2021-22)
- Q1c. Find the output of the following code: void main() { int x=3 , y = 4 , a=6 , z=7,result ; result = (x>y) + ++a || !c ; printf("%d", result); } (2 marks, 2021-22)
- Q1d. Write limitations of switch case. (2 marks, 2021-22)
- Q1e. Show the usage of break statement. (2 marks, 2021-22)
- Q1f. Differentiate between scope and lifetime of variable. (2 marks, 2021-22)
- Q1g. Write limitations of subscript operator in an array. (2 marks, 2021-22)
- Q1h. Compare linear and binary search in terms of complexity. (2 marks, 2021-22)
- Q1i. Find the output of the following code: void main() { int a ,*p; //value of a is input by the user and assumed it is equal to 7. p = &a; scanf("%d", p); printf("%d",a); } (2 marks, 2021-22)
- Q1j. Explain the significance of End of File (EOF). (2 marks, 2021-22)
- Q2a. Draw block diagram of computer and explain each of its components in brief. (10 marks, 2021-22)
- Q2b. Differentiate between type conversion and typecasting. Write a program to input a floating-point number and find leftmost digit of integral part of a number. (10 marks, 2021-22)
- Q2c. Write a program to find the sum of series using function 1! + 2! + 3! + 4! +----------- n terms. (10 marks, 2021-22)
- Q2d. Write a program to find transpose of matrix. (10 marks, 2021-22)
- Q2e. Why are preprocessor required? Explain any two preprocessor directives. (10 marks, 2021-22)
- Q3a. Define flowchart and draw a flowchart to find largest among three numbers. (10 marks, 2021-22)
- Q3b. Explain in detail about all storage classes with proper example. (10 marks, 2021-22)
- Q4a. Explain Logical, Unary and Bitwise operators in detail. (10 marks, 2021-22)
- Q4b. Compare if-else-if ladder and switch case. Write a menu driven program to perform basic functions of calculator. (10 marks, 2021-22)
- Q5a. Define recursion. Write a program to find sum of Fibonacci series using recursion. (10 marks, 2021-22)
- Q5b. Differentiate between call by value and call by reference with proper example. (10 marks, 2021-22)
- Q6a. Implement sorting technique using bubble sort on the following sequence: 34, 78, 12, 5, 3, 98, 101, 15 (10 marks, 2021-22)
- Q6b. What is searching? Write a program to implement linear search. (10 marks, 2021-22)
- Q7a. Define dynamic memory allocation. Differentiate between malloc() and calloc() with proper example. (10 marks, 2021-22)
- Q7b. Explain different file opening modes. Write a program to read content of any file and display the number of lines and words in that file. (10 marks, 2021-22)
AKTU paper codes: BCS101, BCS201, KCS101, KCS101T, KCS201, KCS201T
Programming for Problem Solving previous year papers
More Programming for Problem Solving resources
Browse all notes · Semester 1 notes · Semester 2 notes · Programming for Problem Solving notes