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

c-programming simp questions

The document is a question bank for an Introduction to C Programming course for VTU 2025, organized into five modules covering fundamental concepts such as computer organization, C program structure, operators, functions, arrays, and string manipulation. Each module contains a series of questions and programming tasks designed to test understanding and application of C programming concepts. The content is structured to facilitate learning and assessment in various areas of C programming.

Uploaded by

libaharmain55
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)
2 views2 pages

c-programming simp questions

The document is a question bank for an Introduction to C Programming course for VTU 2025, organized into five modules covering fundamental concepts such as computer organization, C program structure, operators, functions, arrays, and string manipulation. Each module contains a series of questions and programming tasks designed to test understanding and application of C programming concepts. The content is structured to facilitate learning and assessment in various areas of C programming.

Uploaded by

libaharmain55
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/ 2

Introduction to C Programming- SIMP Question bank- VTU 2025

Module 1
1.​ What is a computer, and what are its characteristic features?
2.​ Explain the various types of computers based on speed, memory, and cost.
3.​ Explain the components of a computer with a neat diagram.
4.​ Explain the basic organization of a computer.
5.​ Explain the structure of a C program in detail. Write a sample program to demonstrate the
components in the structure of a C program.
6.​ Define a token. Explain different tokens used in a C program.
7.​ What is a variable? What are the rules to construct a variable? Explain printf() and scanf()
functions with syntax and an illustrative example.
8.​ Develop an algorithm and draw a flowchart to find the area and perimeter of a circle. Also,
define an algorithm.

Module 2
1.​ What are operators, operands, and expressions? Explain the different types of operators used
in C with examples.
2.​ What is type conversion and type casting? Explain with an example.
3.​ With syntax and example, explain the conditional operator.
4.​ What are decision control statements? List and explain different decision control statements
with syntax, flowchart, and an example.
5.​ Write a C program using switch for the simulation of a simple calculator.
6.​ What are iterative statements? List and explain different iterative statements with syntax,
flowchart, and an example.
7.​ Write the difference between while and do-while loops.
8.​ Explain break, goto, and continue statements with examples.

Module 3
1.​ Define function. Explain function definition and function declaration with syntax and
example. Write a C program to add two integers using the call-by-value method in functions.
2.​ Explain the terminologies of functions.
3.​ Explain the difference between actual parameters and formal parameters.
4.​ Explain passing parameters to a function using an example of swapping 2 numbers.
5.​ Differentiate between call-by-value and call-by-reference methods. Explain different scopes
of variables with an example.
6.​ Explain different storage classes with an example.
7.​ What is recursion? Write a C program to find the factorial of a number using a recursive
function.
8.​ Program to balance the given chemical equation values x, y, p, q of a simple chemical
equation of the type: The task is to find the values of constants b1, b2, b3 such that the
equation is balanced on both sides, and it must be the reduced form.
Module 4
1.​ What is an array? Explain how 1-D arrays are initialized and declared with an example.
2.​ What are 2-D arrays? Explain how 2-D arrays are initialized and declared with an example.
3.​ Write a C program to read and display a 3x3 matrix.
4.​ Write a C program to input 2 m x n matrices and then calculate the sum of their
corresponding elements and store it in a third m x n matrix.
5.​ Write a C program to input 2 m x n matrices and then calculate the product of their
corresponding elements and store it in a third m x n matrix. Also, validate their rules.
6.​ Write a C program to read and display a 2x2x2 array.
7.​ Define a string. Explain the declaration and initialization of string variables with examples.
8.​ Explain sprintf() and sscanf() with examples.

Module 5
1.​ List and illustrate the use of string manipulation functions.
2.​ Explain character manipulation functions with examples.
3.​ Write a C program for the following operations on strings without using string manipulation
functions/library functions:
○​ To find the length of a string
4.​ Explain an array of strings with an example.
5.​ Define a pointer. Explain the declaration and initialization of pointers with examples.
6.​ List the applications of pointers.
7.​ What is a structure? Declaration of structure with an example.
8.​ Write a C program to read and display 'n' student information using a structure.

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