(SEM I) THEORY EXAMINATION 2023-24 PROGRAMMING FOR PROBLEM SOLVING

B.Tech General 0 downloads
₹29.00

This question paper evaluates the foundational understanding of C programming, problem-solving techniques, algorithmic thinking, memory management, and program structure. It is structured into three major sections (A, B, C) to assess students’ conceptual clarity, coding ability, analytical thinking, and application skills.

SECTION A — Short Answer Questions (2 × 7 = 14 Marks)

This section tests basic programming concepts through seven short questions.

Topics Covered:

1. Programming Theory Basics

Syntax and its importance in programming

Memory hierarchy based on access time

2. Language Elements

Operator vs. operand differences

Conditional operator with syntax & example

3. Program Tracing

Students must find the output of C code involving:

For loops

Modulus operator

Break statement

Pointer to void type

4. Recursion Concept

Role and importance of base case in recursive functions

This section checks the student’s ability to understand core concepts quickly and accurately.

SECTION B — Descriptive Questions (7 × choose any 3 = 21 Marks)

Students must attempt any three questions, each requiring detailed explanation or coding.

Topics include:

1. Storage Classes in C

auto

extern

static

register
Their scope, lifetime, and usage.

2. Type Casting & Type Conversion

Explanation with examples and programs demonstrating:

Implicit conversion

Explicit conversion

3. Pattern Printing

Logic building using loops to generate star patterns.

4. Recursion with Fibonacci Series

Writing and tracing a function that calls itself.

5. Data Structures & Macros

Short notes on:

Linked lists

Macros and their preprocessor role

This section evaluates coding skills, logic development, and understanding of advanced C concepts.

SECTION C — Long Answer Questions (7 marks each)

Each block contains two questions. Students must answer one question from each block.

Question 3 — Algorithms, Architecture, and Flowcharts

3(a) Digital Computer Architecture

Requires explanation of:

Input unit

Output unit

CPU (ALU + CU)

Memory unit

Storage types

How components work together

3(b) Algorithm & Flowchart

Students write an algorithm to find the greatest of three numbers and draw its flowchart.
Skills tested:

Logical steps

Structured thinking

Visual representation of program flow

Question 4 — Operators & Control Statements

4(a) Operator Precedence & Associativity

Explanation and examples of:

Arithmetic operators

Relational operators

Logical operators

Unary & assignment operators

4(b) Break Statement in Switch Case

Write a program to show how break prevents fall-through in switch-case structure.

Question 5 — Conditional Logic & Matrix Operations

5(a) Program to Check Prime Number

Tests fundamental logic building using loops and conditions.

5(b) Matrix Multiplication Program

Demonstrates understanding of:

2D arrays

Nested loops

Handling matrix dimensions properly

Question 6 — Arrays & Sorting Techniques

6(a) Greatest Element in Array

Using "array passing to function"—testing:

Call-by-value

Passing array as argument

Traversal logic

6(b) Bubble Sort

Define sorting, explain algorithm, and write program to sort values using bubble sort.

Question 7 — File Handling & Dynamic Memory Allocation

7(a) File Handling Concepts

Define file and modes such as:

r, w, a

r+, w+, a+

Binary modes

Program: write multiple lines to a text file.

7(b) calloc Function

Explain dynamic memory allocation using calloc(), and write program to compute sum of stored elements.

File Size
139.13 KB
Uploader
Payal Saini
⭐ 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

Personal Fitness Training Near Sector 132 Greater Noida – Achieve Your Health and Fitness Goals with Expert Trainers Noida
Competitive Exam Coaching Near Sector 95 Gurugram – Structured Preparation for Government & Entrance Exams Sector 95, Gurugram
Personal Fitness Training Near Malviya Nagar – Transform Your Health with Expert Guidance Malviya Nagar, Delhi
Hindi Coaching Classes Near By Dwarka Mor Build Strong Language Skills Dwarka Mor, Delhi
Data Analytics Training Near Noida Sector 94 – Learn Data Skills and Build a High-Demand Career Noida
Digital Marketing Classes Near Noida Sector 96 – Learn Modern Marketing Skills and Build a Successful Career Noida
Music Production (Laptop-Based) Classes Near Sector 143 Noida – Learn Professional Music Creation Sector 143, Noida
Spoken English Classes Near By Paschim Vihar Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Paschim Vihar, Delhi
Fitness Training Near By Najafgarh Professional Workout Programs for Strength, Weight Loss & Overall Wellness Najafgarh, Delhi
Spoken English Classes Near Sector 117 Noida – Improve Fluency, Confidence and Communication Skills Noida
Spoken English Classes Near Rajouri Garden Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Rajouri Garden, Delhi
Yoga Classes Near By Lajpat Nagar Build Strength, Reduce Stress & Achieve Holistic Wellness in 2026 Lajpat Nagar, Delhi
Singing / Vocal Training Near DLF Phase 2 Gurugram – Professional Voice Training for Kids, Beginners & Aspiring Singers DLF Phase 2, Gurugram
Keyboard / Piano Classes Near DLF Phase 3 – Learn Music with Professional Training DLF Phase 3, Gurugram
Piano Classes Near Tilak Nagar – Learn, Play & Master Music with Confidenc Tilak Nagar, Delhi
Personal Fitness Training Near Palam Vihar – Transform Your Body with Expert Guidance Palam Vihar, Gurugram
Spoken English Classes Near By CR Park Improve Fluency, Boost Confidence & Unlock Better Opportunities in 2026 Chittaranjan Park, Delhi
Digital Marketing Classes Near By Kirti Nagar – Build a High-Growth Career in the Digital World Kirti Nagar, Delhi
Candle Making Classes Near Sector 83 Gurugram – Learn the Art of Handmade Candles Gurugram
Singing Classes Near by Uttam Nagar – Discover Your True Voice Uttam Nagar, 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