B.TechSemester 22023-24Programming For Problem SolvingBCS201

Programming For Problem Solving (BCS201) - AKTU Question Paper 2023-24

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 2023-24. 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:2023-24
University:AKTU / UPTU

Rate this paper

Questions Asked in 2023-24

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

Section AAttempt all q u e s t i o n s i n b r i e f . 2 x 7 = 14
  • a
    1Nibble =………..Bytes. 2 1
  • b
    Find the value of variable ma x in the following code: -
    int a=10, b=20;
    int max= (a>b)? a: b
  • c
    Define Explicit type conversi on with suitable example. 2 2
  • d
    Write a C program to print al l natural numbers from 10 to 100. 2 3
  • e
    Define Pointer to Pointer. 2 4
  • f
    Find the output of following code: -
    #include<stdio.h>
    #defien a 2*2+2
    void main ()
    {
    int b,c;
    b=2/a;
    c=b+4;
    printf(“Value of variable b and c are %d%d respectively ”, b,c);
    }
  • g
    Draw block diagram to represent doubly linked list. 2 5
Section BAttempt any three o f t h e f o l l o w i n g : 7 x 3 = 21
  • a
    What is Flowchart what are th e properties of Flowchart? Draw a flowchart to check number is a buzz number or not. (A number is said to be Buzz if it ends with 7 or divisible by 7)
  • b
    What is the importance of Prece dence order and associativity? Explain Bitwise and Ternary operators in detail
  • c
    Write a program in C language to multiply 2 matrices of orde r n*n each and print the resultant matrix al ong with the transpose of the resultant matrix
  • d
    Write a program in C language to implement Selection sort method. 7 4
  • e
    Write a program to delete the end of the file using function feof(). Display the file pointer position for detecting end of file
Section CAttempt any one p a r t o f t h e f o l l o w i n g : 7 x 1 = 7
  • a
    What is the different user de fined data types in C language? Write range, Format specifier, memory size of primitive data types
  • b
    How algorithm is different form flowchart. Write an algorithm to check number is a Prime number or not
  • a
    Why break statement is required? Write a C program in C lang uage to check character is a vowel or consonant
  • b
    Write a program in C language to calculate energy bill. Read the starting and ending meter readings. The charges are as follows: - No. of Units Consumed rates in Rs. 0<units<=200 Rs 5.50 per Unit 200<units<=400 Rs 700 + Rs 6.0 per unit excess of 200 400<units<= 600 Rs 1400 + Rs 7.50 per unit excess of 400 600<units Rs 1850+ Rs 9.0 per Unit excess of 600
  • a
    (i) Write a program in C la nguage to print the following pattern: - (ii) Write a program in C language to print the sum of following series
  • b
    Write a program in C language using union to store name, mob ile number, year of birth, fees deposited, total marks in class 12th and print only name and marks of class 12th of those students who have deposited fees less that5000 and how born after year 2005
  • a
    Write a C program to find the presence of any particular ele ment in an array of n number of elements using Binary search method
  • b
    What are the different types of functions in C programming? Write a C program to print the multiplication of all the digits of a numb er using recursion
  • a
    What are the advantages of Dynamic memory allocation over st atic memory allocation? Write a progr am to display two numbers with malloc () and reallocate memory for displaying three numbers
  • b
    Define any 3 functions which are used for file handling in C language. Write a program in C language t o count total number vowels in a text file

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.