0% found this document useful (0 votes)
27 views3 pages

Question Paper 5th Attempt

Uploaded by

dijangolatte
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)
27 views3 pages

Question Paper 5th Attempt

Uploaded by

dijangolatte
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/ 3

BESCK 104E - Introduction to C Programming - 5th Attempt

Visvesvaraya Technological University

BESCK 104E - INTRODUCTION TO C PROGRAMMING

Model Question Paper - 5th Attempt

Time: 3 Hours

Max Marks: 100

Note:

- Answer any five full questions, choosing ONE from each Module.

- All questions carry equal marks.

- Assume any missing data suitably.

- Draw diagrams wherever necessary.

Module - 1

Q1.

a) Describe the steps involved in the execution of a C program. (6M)

b) Write a C program to calculate the area and perimeter of a rectangle. (8M)

c) Differentiate between keywords and identifiers with examples. (6M)

OR

Q2.

a) Explain the various types of operators in C with examples. (6M)

b) Write a program to find the largest of three numbers using if-else ladder. (8M)

c) Describe the use of printf() and scanf() functions with format specifiers. (6M)
Module - 2

Q3.

a) Explain for, while, and do-while loops with syntax. (6M)

b) Write a C program to display the Fibonacci series up to N terms. (8M)

c) What is the difference between entry-controlled and exit-controlled loops? (6M)

OR

Q4.

a) Discuss the use of conditional (?:) operator with an example. (6M)

b) Write a program to count the number of digits, spaces, and special characters in a string. (8M)

c) What is a switch statement? Write syntax and explain with an example. (6M)

Module - 3

Q5.

a) What is an array? List the types and applications. (6M)

b) Write a C program to find the sum of all elements in a one-dimensional array. (8M)

c) Differentiate between character array and string. (6M)

OR

Q6.

a) Explain the concept of a 2D array. Give syntax and a sample program. (6M)

b) Write a C program to search an element in an array using linear search. (8M)

c) Write short notes on string handling functions like strlen() and strcpy(). (6M)
Module - 4

Q7.

a) What is recursion? Mention its advantages and disadvantages. (6M)

b) Write a C program using a function to reverse a given number. (8M)

c) Explain different types of functions in C. (6M)

OR

Q8.

a) What is a user-defined function? Describe with an example. (6M)

b) Write a program to calculate the power of a number using a function. (8M)

c) Discuss scope and lifetime of variables in C. (6M)

Module - 5

Q9.

a) What is a pointer? Explain pointer arithmetic. (6M)

b) Write a program to display the address and value of a variable using a pointer. (8M)

c) Explain the use of pointers in function arguments. (6M)

OR

Q10.

a) Explain how structures are declared and used. (6M)

b) Write a C program to read and display information of 3 employees using structure. (8M)

c) Write short notes on file opening modes and file functions like fopen() and fclose(). (6M)

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