(SEM II) THEORY EXAMINATION 2021-22 PROGRAMMING FOR PROBLEM SOLVING

B.Tech General 0 downloads
₹29.00

PROGRAMMING FOR PROBLEM SOLVING | KCS201T

B.Tech (Semester II) – Theory Examination 2021–22

This document consists of the complete and original B.Tech (Semester II) Theory Examination Question Paper for Programming for Problem Solving (KCS201T) for the academic year 2021–22. The paper is designed to thoroughly assess a student’s understanding of the C programming language, problem-solving skills, algorithmic thinking, memory concepts, sorting, flowcharts, data structures basics, dynamic memory allocation, and file handling.
The question paper follows the latest university pattern and covers fundamental to moderately advanced concepts of C programming.

The paper is divided into three major sections—each focusing on different skill levels: basic conceptual knowledge, applied programming logic, and full-length descriptive/problem-solving questions.

SECTION A – Short Answer / Conceptual Questions (10 × 2 = 20 Marks)

This section tests students' basic understanding of C programming and computational concepts.

Key topics include:

Difference between void and int data types

Memory hierarchy pyramid

Syntax and use of ternary operator

Advantages of switch statement

Output-based questions testing pointer arithmetic in printf()

Definition and types of functions

Accessing array elements using alternative indexing (0[arr])

Time & space complexity (with Bubble Sort complexity)

sizeof(void*) output

Need of free() function in dynamic memory allocation

These questions ensure the student understands the syntax, terminology, memory concepts, and program behavior in C.

SECTION B – Applied Programming & Logic Development (Any 3 × 10 = 30 Marks)

This section evaluates the student’s ability to apply concepts through flowcharts, programs, and explanations.

Major topics covered:

Flowcharts & Algorithms

Symbols used in flowcharts

Drawing a flowchart to reverse a number

Type Conversion & Casting

Implicit and explicit type conversion with examples

Pattern Printing Logic

Writing nested loops to print numeric patterns

Sorting Techniques

Bubble Sort explanation and program

Command Line Arguments

Working principle and example program

This section checks the student’s skill in writing programs, explaining logics, and using C syntax effectively.

SECTION C – Long Descriptive / Full Programs (4 × 10 = 40 Marks)

Each subsection contains two questions; the student attempts one from each.
These are detailed questions requiring full programs, diagrams, or long explanations.

Includes:

3. Storage & Architecture

Storage classes in C: automatic, external, static, register

Digital computer architecture diagram: CPU, memory, I/O, buses

4. Operators & Switch Case

Types of operators: arithmetic, relational, logical, bitwise, assignment, conditional

Program to make a calculator using switch-case

5. Pattern Programs

Printing star patterns using nested loops

Fibonacci series using recursive function

6. Sorting & Matrices

Selection sort algorithm + program

Multiplication of two 2D arrays

7. Dynamic Memory & File Handling

Dynamic memory allocation (malloc, calloc, realloc, free) with example

Program to copy content from one file to another and count characters

This section assesses coding ability, logic structuring, algorithm analysis, and clear code explanation.

Sample Questions (1–2 from the actual paper)

As requested, here are two included sample questions to represent the level of difficulty:

Sample Question from Section A:

“Differentiate between void and int datatypes.”
— A fundamental question checking data type understanding.

Sample Question from Section C:

“Write a program to allocate memory dynamically. Take inputs from the user and find the sum of all elements.”
— A full program-based problem testing dynamic memory allocation concepts.

Overall Coverage of the Question Paper

This question paper covers almost every essential topic from the C programming syllabus, including:

Programming Concepts

Data types, variables, operators

Conditional statements & loops

Functions (recursive & non-recursive)

Storage classes

Data Handling

Arrays

Multi-dimensional arrays

Strings

Pointers

Dynamic memory allocation

Algorithms

Time & space complexity

Searching & sorting (Bubble Sort, Selection Sort)

File Handling

Reading & writing files

Copying content between files

Problem Solving Techniques

Flowcharts

Pattern printing

Mathematical computations

This comprehensive coverage ensures students are evaluated on both theoretical understanding and practical coding abilities.

File Size
124.36 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

🇩🇪 German Language Classes Near Sector 116 Noida – Learn German with Professional Training Sector 116, Noida
Financial Advisory Near By Dwarka Mor Professional Financial Planning, Investment Guidance & Wealth Management Support Dwarka Mor, Delhi
Social Science Classess Dwarka Mor, Delhi
Yoga Classes Near Sector 105 Gurugram (Dwarka Expressway) – Transform Your Body & Mind Naturally Gurugram
Singing / Vocal Training Near DLF Phase 2 Gurugram – Professional Voice Training for Kids, Beginners & Aspiring Singers DLF Phase 2, Gurugram
French Language Classes Near By Uttam Nagar – Learn French with Confidence Uttam Nagar, Delhi
Graphic Designing Classes Near Uttam Nagar – Turn Your Creativity into a Successful Career Uttam Nagar, Delhi
Spoken English Classes Near By Govindpuri Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Govindpuri, Delhi
Spoken English Classes Near By Hauz Khas Build Fluency, Confidence & Professional Communication Skills in 2026 Hauz Khas, Delhi
Guitar Classes Near By Saket Learn Guitar from Experts & Turn Your Passion into Skill in 2026 Saket, Delhi
Yoga Classes Near Malviya Nagar Build Strength, Reduce Stress & Transform Your Lifestyle with Professional Yoga Training in 2026 Malviya Nagar, Delhi
Diet & Nutrition Consultation Near Vatika City, Gurugram – Your Path to Healthy Living Vatika City, Gurugram
German Language Classes Near Golf Course Road – Learn German for Career & Study Abroad Golf Course Road, Gurugram
Vedic Maths Classes Near By Dwarka Mor Improve Speed, Accuracy & Confidence in Mathematics Dwarka Mor, Delhi
Spoken English Classes Near By Punjabi Bagh Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Punjabi Bagh, Delhi
Meditation Coaching Near Sector 126 Noida – A Complete Guide to Mental Wellness and Inner Peace Sector 126, Noida
Public Speaking Training Near Sector 108 Noida – Build Confidence and Communication Skills Noida
🇫🇷 French Language Classes Near Rosewood City – Learn French for Global Opportunities Rosewood, Gurugram
Resume & Interview Coaching Near By Dwarka Mor Build a Professional Resume, Crack Interviews & Secure Your Dream Job Dwarka Mor, Delhi
Fashion Designing Classes Near By Dwarka Mor – Turn Your Creativity into a Stylish Career Dwarka Mor, Delhi
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020