B.TechSemester 12025-26Programming For Problem SolvingBCS101

Programming For Problem Solving (BCS101) - AKTU Question Paper 2025-26

B.Tech · Semester 1 · Free PDF Download

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

Course:B.Tech
Semester:Semester 1
Session:2025-26
University:AKTU / UPTU

Rate this paper

5 · 1 rating

Questions Asked in 2025-26

Programming For Problem Solving (BCS101) — complete question paper · 70 marks · 3 Hours

Section AAttempt all questions in brief. 02 x 7 = 14
  • a
    Write the fundamental data types used in C Programming, along with their range, byte size and format specifier
  • b
    Draw the memory hierarchy of a computer
  • c
    What are logical operators?
  • d
    Differentiate between implicit and explicit type conversion in C
  • e
    Write the output of the following code:
       #include<stdio.h>
    int main() {
     int a = 0, i = 0, b;
     for (i = 0; i < 5; i++)
     {
      a++;
      break;
     }
     printf("%d",a);
     return 0; }
      #include<stdio.h>
    int main() {
     int a = 0, i = 0, b;
     for (i = 0;i < 5; i++)
     {
      a++;
      break;
     }
     printf("%d",a);
     return 0; }
  • f
    What is a recursive function? Explain with an example
  • g
    List various file opening modes
Section BAttempt any three of the following: 03 x 7 = 21
  • a
    Differentiate between compiler and interpreter. Also differentiate between syntax error and logical error
  • b
    Write an algorithm to calculate sum of digits of a number entered by the user
  • c
    Differentiate between structure and union with suitable example
  • d
    Differentiate between call by value and call by reference parameter passing in C using example
  • e
    Explain the use of command -line arguments (argc, argv) and show with an example how to access them in C
Section CAttempt any one part of the following: 01 x 7 = 07
  • a
    Discuss various storage classes used in C with examples
  • b
    Write an algorithm to find the greatest of three numbers. Also draw the flowchart for the algorithm
  • a
    Write a program to discuss the use of break in a switch case statement
  • b
    What do you mean by operator precedence and associativity in C. Explain with suitable example
  • a
    Write a program to print the following pattern in C
  • b
    Create a structure in C language for keeping the records of the employees of an organization about their Name, Designation, Salary, Department and City of posting. Write program to enter records of 100 employees and display the names of those with salary more than 20,000
  • a
    What is recursion? Write a program to find factorial of n numbers using recursion
  • b
    Write a program in C to implement selection sort
  • a
    Discuss dynamic memory allocation. Explain calloc(), malloc(), realloc() and free() functions with suitable example
  • b
    List out various file operations and modes in C. Write a ’C’ program to copy the content from one file to another fie

Question text is extracted from the official AKTU question paper PDF above. Hindi translations are omitted — every question is printed in English in the original paper. Last verified: 2026-08-23.

Repeated Questions — BCS101

Questions that appeared in more than one session, found by comparing 4 years of Programming For Problem Solving papers (2022-23, 2023-24, 2024-25, 2025-26)

4x

Write a program to print the following pattern in C

Appeared in: 2022-23 · 2023-24 · 2024-25 · 2025-26

2x

Draw the memory hierarchy of a computer

Appeared in: 2022-23 · 2025-26

2x

Differentiate between implicit and explicit type conversion in C

Appeared in: 2022-23 · 2025-26

2x

List various file opening modes

Appeared in: 2022-23 · 2025-26

2x

Write an algorithm to calculate sum of digits of a number entered by the user

Appeared in: 2022-23 · 2025-26

2x

Differentiate between call by value and call by reference parameter passing in C using example

Appeared in: 2022-23 · 2025-26

2x

Discuss various storage classes used in C with examples

Appeared in: 2024-25 · 2025-26

2x

Write a program to discuss the use of break in a switch case statement

Appeared in: 2023-24 · 2025-26

2x

What is recursion? Write a program to find factorial of n numbers using recursion

Appeared in: 2022-23 · 2025-26

2x

Write a program in C to implement selection sort

Appeared in: 2022-23 · 2025-26

2x

Discuss dynamic memory allocation. Explain calloc(), malloc(), realloc() and free() functions with suitable example

Appeared in: 2022-23 · 2025-26