0% found this document useful (0 votes)
63 views2 pages

MID-2 Question Paper BCS 101

The document outlines the structure and content of a mid-semester examination for a B. Tech.-I Semester course on Programming for Problem Solving. It includes course outcomes, a breakdown of questions across three sections, and specific tasks related to C programming concepts such as arrays, loops, and string handling functions. The exam is designed to assess students' understanding and application of programming principles within a 1.5-hour timeframe for a total of 30 marks.

Uploaded by

dwivedialok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views2 pages

MID-2 Question Paper BCS 101

The document outlines the structure and content of a mid-semester examination for a B. Tech.-I Semester course on Programming for Problem Solving. It includes course outcomes, a breakdown of questions across three sections, and specific tasks related to C programming concepts such as arrays, loops, and string handling functions. The exam is designed to assess students' understanding and application of programming principles within a 1.5-hour timeframe for a total of 30 marks.

Uploaded by

dwivedialok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Total no.

of Printed Pages: 1 Roll No:


Odd Semester Session 2024-25 MID-2
B. Tech.-I Semester
Programming for Problem Solving (BCS-101)
CO Number Course Outcome
CO1 Define [Remember] the basic concepts of Computer and C programming.
CO2 Understand the concepts of programming.
CO3 Implement the various principles of programming.
CO4 Analyze the various algorithms and programs.
Time: 1.5 Hrs. M.M. 30
Section A
Q1. Attempt all questions: (1X5 = 5Marks)
a) Define 2D array. CO1
b) What is do-while loop? CO1
c) What is infinite loop? CO1
d) Differentiate between entry controlled loop and exit controlled loop. CO2
e) If an array is initialized as: int A[2][4]={2,4,6,8,5,6,9} CO3
Find the values for A[0][2] and A[1][3].

SectionB
Q2. Attempt all questions: (5X2= 10 Marks)

a. What are the different string handling functions in C? Explain each with proper syntax and CO2
example.
b. Apply the basic syntax of coding in c to write a C program to check whether a number is CO3
Prime or not.
Section C
Q3. Attempt all questions: (5X3 = 15 Marks)
a.i) Apply the basic syntax of loop in c to print the following pattern. CO3
1
2 3
4 5 6
7 8 9 10
OR
ii) Apply the basic syntax of coding in c to generate first n Fibonacci terms. CO3
b.i) What are break statement and continue statement in C Language? Explain the working with CO2
proper syntax and examples.
OR
ii) Explain the working of any five string handling functions in C using proper syntax and CO2
example.
c.i) Apply the syntax of 2D array to write a program to multiply two matrices each of 3x3. CO3
OR
ii) Apply the basic syntax of coding in c to check whether a number is Armstrong or not. CO3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy