THEORY EXAMINATION (SEM–II) 2016-17 COMPUTER PROGRAMMING

B.Tech Computer Science 0 downloads
₹29.00

This document contains the full B.Tech / Diploma – Computer Programming in C semester examination paper, designed for 100 marks with a duration of 3 hours. The question paper evaluates a student’s understanding of the fundamentals of C programming, including algorithms, flowcharts, loops, recursion, functions, pointers, arrays, matrices, file handling, memory allocation, and preprocessor directives.
The paper is divided into three major sections: A, B, and C, ensuring a balanced approach toward conceptual clarity, programming logic, algorithmic thinking, and hands-on coding skills.

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

This section consists of ten short questions, each aimed at testing core C concepts and definitions required for strong programming foundations. Topics include:

Storage classes of C variables (auto, static, extern, register)

Purpose of do-while loop and when it is preferred

Concept of top-down development and stepwise refinement

Meaning and use of break and continue statements

Understanding of recursion and recursive functions

Difference between function declaration and function definition

Explanation of flowcharts and standard flowchart symbols

Algorithm to find the greatest of three numbers

Meaning of call-by-value with an example

Definition and usage of Macros in C

These questions check whether a student understands basic definitions, syntax rules, and logic-building concepts of C programming.

SECTION – B (Programming & Analytical Questions – 5 × 10 = 50 Marks)

Students are required to attempt any five out of eight questions. This section focuses on writing programs, understanding memory concepts, differentiating between types of arguments, and applying logic using conditional statements and loops.

Key topics include:

Flowchart vs Algorithm

Explaining differences with examples and applications.

Pointers

Definition of pointers and writing a program to swap two variables using pointers.

Actual Arguments vs Formal Arguments

Clear differentiation with examples of functions.

Switch Statement Program

Writing a program to print number of days (usually based on month number).

Matrix Operations

Printing diagonal elements of a matrix.

Recursion

Writing a recursive Fibonacci series program.

Pattern Printing

Generating a star (*) pattern using nested loops.

Sorting Names

Writing a program to arrange names in ascending order.

This section tests logic building, coding skills, use of loops, recursion, pointers, conditional statements, and simple data manipulation.

SECTION – C (Long Answer Questions – 2 × 15 = 30 Marks)

Students must attempt any two of the three long questions. These questions involve advanced concepts, full coding solutions, and detailed explanations.

Q3 – File Handling in C

Explanation of all file opening modes (r, w, a, r+, w+, a+, rb, wb, etc.)

Writing a complete C program to:

Read student records (name + age) from a file

Sort them alphabetically by name

Display sorted output

This evaluates file processing, data handling, and string manipulation.

Q4 – Advanced Concepts

Short notes on:

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

Command-line arguments (argc, argv and their use in real programs)

This tests understanding of memory management and real-world program execution.

Q5 – Macros & Series Calculation

Writing a macro with arguments to calculate simple interest and amount

Writing a C program to compute the sum of the series:

  • 11!+22!+33!+…\frac{1}{1!} + \frac{2}{2!} + \frac{3}{3!} + \dots1!1​+2!2​+3!3​+…

(first 7 terms) using a for loop

This checks preprocessor knowledge, looping, mathematical calculations, and factorial applications.

File Size
99.17 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

🇪🇸 Spanish Language Classes Near Golf Course Road – Learn Spanish for Global Communication Golf Course Road, Gurugram
Soap Making Classes Near By Dwarka Mor – Learn Handmade & Herbal Soap Crafting Dwarka Mor, Delhi
Geography Coaching Classes Near By Dwarka Mor Build Strong Conceptual Understanding & Score High in Board Exams Dwarka Mor, Delhi
Data Analytics Course Near Sector 63A Gurugram – Build a High-Demand Career in Data Sector 63A, Gurugram
Diet & Nutrition Consultation Near Malibu Town – Personalized Guidance for a Healthy Lifestyle Malibu Town, Gurugram
Prenatal Yoga Training Near Sector 121 Noida – A Complete Guide for Healthy Pregnancy and Wellness Noida
Zumba Classes Near Palam Vihar Extension – Dance Your Way to Fitness New Palam Vihar, Gurugram
Guitar Classes Near Mehrauli – Professional Guitar Training in South Delhi Mehrauli, Delhi
Guitar Classes Near Sarita Vihar – Learn Guitar from Expert Trainers in South Delhi Sarita Vihar, Delhi
Guitar Classes Near By Lajpat Nagar Learn Guitar with Expert Trainers & Turn Your Passion into a Powerful Skill Lajpat Nagar, Delhi
Public Speaking Training Near Sector 108 Noida – Build Confidence and Communication Skills Noida
Spanish Language Classes Near Uttam Nagar – Learn Spanish with Confidence Uttam Nagar, Delhi
Zumba Classes Near Palam Vihar – Fun Dance Fitness for a Healthy Lifestyle Palam Vihar, Gurugram
Harmonium Classes Near Sushant Lok Phase 1 – Learn Classical Music with Confidence Sushant Lok Phase 1, Gurugram
Spoken English Classes Near By Chhatarpur Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Chhatarpur, Delhi
Spoken English Classes Near By Hauz Khas Build Fluency, Confidence & Professional Communication Skills in 2026 Hauz Khas, Delhi
Guitar Classes Near Tilak Nagar – Learn, Play & Perform with Confidence Tilak Nagar, Delhi
Spoken English Classes Near By Malviya Nagar Build Confidence, Improve Fluency & Unlock Career Opportunities in 2026 Malviya Nagar, Delhi
Real Estate Consulting Near By Dwarka Mor Professional Property Guidance for Buying, Selling & Investment Decisions Dwarka Mor, Delhi
Baking Classes Near By Dwarka Mor – Learn Professional Baking Skills 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