0% found this document useful (0 votes)
13 views1 page

I/I 2022 2024-2028 20.11.2024 &FN: Year/Semester: Regulation: Batch: Date&Session

Very nice

Uploaded by

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

I/I 2022 2024-2028 20.11.2024 &FN: Year/Semester: Regulation: Batch: Date&Session

Very nice

Uploaded by

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

Government College of Engineering, Salem-11

(An Autonomous Institution Affiliated to Anna University, Chennai)


Internal Assessment Test - 1
ELECTRONICS AND COMMUNICATION ENGINEERING
Year/Semester: I/I Regulation:2022 Batch: 2024-2028 Date&Session:20.11.2024 &FN
22CS101 – Problem Solving and C Programming
Time : 2 Hours Maximum Marks: 40
Part A (4 x 2 = 08 Marks)

Answer ALL Questions BTL M CO

1. Define problem-solving and its significance in programming. R 2 CO1

2. What is a variable in C? Provide an example. U 2 CO1

3. Write a C program using a for loop to print the multiplication table A 2 CO2
of a given number.

4. Illustrate the usage of the switch statement with an example program A 2 CO2

5. Describe how to initialize an array in C U 2 CO3

6. Identify the syntax for declaring an integer array in C R 2 CO3

*****ALL THE BEST*****

Part B (2 x 16 = 32 Marks)
Answer ALL Questions BTL M CO

7. i) Examine the basic data types in C and illustrate with AN 8 CO1


examples of variable declarations for each type.

ii) Compare while and do-while loops in C, and illustrate with AN 8 CO2
examples

8. i) Write a C program to simulate a banking system with the AN 8 CO2


following functionalities: Create an account (Name, Account
Number, Balance), Deposit money, withdraw money (ensure
sufficient balance) & Display account details.

ii) Write a C program to sort an array in ascending order using AN 8 CO3


bubble sort, and explain the steps.

You might also like