B.TechSemester 22021-22Programming For Problem SolvingKCS201T

Programming For Problem Solving (KCS201T) - AKTU Question Paper 2021-22

B.Tech · Semester 2 · Free PDF Download

This is the official AKTU Programming For Problem Solving Previous Year Question Paper for B.Tech Semester 2, academic session 2021-22. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.

Course:B.Tech
Semester:Semester 2
Session:2021-22
University:AKTU / UPTU

Rate this paper

Questions Asked in 2021-22

Programming For Problem Solving (KCS201T) — extracted question text

Section AAttempt all q u e s t i o n s i n b r i e f . 2x10 = 20
  • a
    Differentiate between void and int datatypes. 1
  • b
    Draw the Pyramid structure of memory hierarchy. 1
  • c
    Describe the syntax and working of Ternary operator. 2
  • d
    Write advantages of Switch statement. 2
  • e
    Find the output:
    #include <stdio.h>
    int main()
    {
        int a=100;
        printf("%d\n"+1, a);
        printf("Value is = %d"+3, a);
        return 0;
    }
  • f
    Define function and its type. 3
  • g
    Find the output:
    #include<stdio.h>
    int main()
    {
        int arr[1]={10};
        printf("%d\n", 0[arr]);
        return 0;
    }
  • h
    Define time and space complexity. What is the complexity of bubble sort? 4
    (i) Find the output:
    #include<stdio.h>
    int main()
    {
     printf("%d", sizeof(void *));
     return 0;
    }
    (j) What is the requirement of FREE() function in Dynamic memor y allocation. 5
Section BAttempt any three o f t h e f o l l o w i n g : 1 0 x 3 = 3 0
  • a
    Discuss the various symbols used in flow chart and Draw the flow chart to find the reverse of a number
  • b
    Illustrate the concept of t ype conversion and type casting with program. 2
  • c
    Write a program to print the pattern
  • d
    Explain bubble sort concept and write the program. 4
  • e
    Discuss about the command line argument with example. 5
Section CAttempt any one p a r t o f t h e f o l l o w i n g : 1 0 x 1 = 1 0
  • a
    Explain the different kind of storage classes in C programming. 1
  • b
    Draw the architecture of Digital computer System and explai n its all components
  • a
    Define Operator and Opera nds. Discuss about the different type of operators used in programming
  • b
    What is use of break in switch case? Write a program to dev elop a calculator using case in character format
  • a
    Write a Program for pattern
  • b
    Write a program to print the Fibonacci series using recursi ve function. Take the limit from the user as input
  • a
    Write a program for the sel ection sort and explain it with example. 4
  • b
    Write a program to find the product of two 2-dimensional ar ray and print the output in separate array
  • a
    Write a program to allocate the memory with dynamic memory allocation concept. Take the input from the user and find the sum of all elements
  • b
    Discuss about the file handling concept and write a program t o c o p y t h e content of one file to another and print the count of these coping elements

Question text is extracted from the official AKTU question paper PDF above. Check the original PDF for equations, diagrams and complete wording. Extracted: 2026-08-23.

Syllabus & More PYQs

Paper solve karne se pehle unit-wise syllabus dekh lo