Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
104 views

Important Unit Wise Questions C Programming

This document provides a blue print for the programming in C and MATLAB course. It outlines 5 units that will be covered: 1) C Programming Basics 2) Conditional statements and arrays 3) Strings, Functions, and Pointers 4) Structures and unions 5) Basics of MATLAB. For each unit, it lists short answer and long answer questions that will be asked, along with the weightage and group of each question type. Sample questions are also provided for each unit to demonstrate the question format and topics that will be covered.

Uploaded by

revanthmanidheep
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views

Important Unit Wise Questions C Programming

This document provides a blue print for the programming in C and MATLAB course. It outlines 5 units that will be covered: 1) C Programming Basics 2) Conditional statements and arrays 3) Strings, Functions, and Pointers 4) Structures and unions 5) Basics of MATLAB. For each unit, it lists short answer and long answer questions that will be asked, along with the weightage and group of each question type. Sample questions are also provided for each unit to demonstrate the question format and topics that will be covered.

Uploaded by

revanthmanidheep
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Subject: PROGRAMMING IN C& MATLAB

Faculty:P.Haritha

BLUE PRINT

Branch: DIP:ECE
S.N Chapter Unit Short Long Essay type Weightag Group
o /Unit title No answer answer questions e s
Questions questions (10M) Of marks
(3M) (8M)
1. C
Programmi 1 (2x3m)=6m _____ ___________ 6m
ng Basics __
2. Conditional 2 ______
statements (2x3m)=6m (2x8m)=16 22m A
and arrays m
3. Strings, 3 (1x8m)=8
Functions & (2x3m)=6m m (1x10m)=10 24m
Pointers m
4. Structures 4
&unions (2x3m)=6m (1x8m)=8 _________ 14m B
m
5. Basics of 5 C
MATLAB. (2x3m)=6m (1x8m)=8 -------------- 14m
m
Total=80m

UNIT-I

2*3=6M

3marks questions:

1) List any three relational operators used in C.

2. Describe the decrement operators.

3. Write the syntax for nested assignment statement.

4. List any three data types used in C.


5. Write about the operator precedence.

6. List any three logical operators supported by c

7.Explain 8 operators

8. List few Keywords used in C?


9.Write about the character set?

UNIT-II

3marks questions:

1. 1.Define an Array.
2. Write the syntax of do while statement.
3. List any three conditional statements supported by C.
4. Give the syntax of nested for loop
5. Describe the syntax of If...Else conditional statement
6. Give the syntax of do while statement.
7. Write the syntax of switch case statement.
8. . Differentiate between break statements and continue statements

8 marks questions:

1. Explain if..else statement with a simple program.


2. (b) Explain while statement with a simple example.
(a) Write a program to check whether a given number is Armstrong
or not
3. (b) Write a C program to perform matrix subtraction
4. Write a program to find whether a given year is leap year or not.
5. (b) Explain if statement with a simple program.
6. Write a C program to perform matrix multiplication
7. Explain while statement with a simple program
8. Write a C program to perform matrix addition.
Write a program to print even and odd numbers.

Explain declaration and initialization of One Dimensional Array

9. with a simple example.


10. Explain while loop with a simple program.
11. (b) Explain nested for loop with a simple example.
12. (a) Write a program to find sum of n natural numbers.
13. (b) Write a program to find sum of digits of a given number.
14. Explain nested If...Else statement with a simple example

UNIT-III

3marks questions:

1. Define a pointer.
2. Describe the initialization of a pointer.
3. Give the syntax of declaring a pointer.
4. Define string.
5. Write the syntax of assignment of a pointer.
6. List any three String manipulation functions.
7. State the use of return statement.
8. Differentiate between address operators and dereferencing operators.

8 marks questions:

1. Explain the operation of getche   and putchar   functions with


a simple program.
2. Explain call by value in functions.
3. Explain passing of parameters to the function with a simple
example.
4. Explain the string manipulation functions strcat(), strcmp() with
Examples
5. Explain call by reference in function with a simple program.
6. Explain function call technique with a simple program.
7. Explain the operation of getchar(), getch() functions with a simple
Program
8. Explain recursion with a simple program

UNIT_-IV

3marks questions:

1. Write the syntax of structure declaration.


2. . Write the function of pre-processor directives in C.
3. Write how to find the size of a structure.
4. Define a structure in C.
5. Differentiate structure and union in any three aspects.
6. Describe the method declaring a Union variable.
7. Write the method of accessing of members of a structure.

8 marks questions:

1. Explain the operation of getche   and putchar   functions with


a simple program.
2. (b) Explain call by value in functions
3. Explain the conditional pre-processor directives with examples.
4. .Illustrate structures with a program to read and print a book
5. database consisting of title of book, author, no. of pages, price as
fields.
6. Explain the method of initializing a structure variable with a simple
program.
7. (b) Explain the method of accessing of members of a union with a
simple program
8. Explain the conditional pre-processor directives with examples.
9. Explain how to find size of a structure with a simple program
UNIT-V

3marks questions

1. List any three logical operators in MATLAB.


2. Write the usage of SIMULINK
3. Write the usage of linspace operator
4. State the need for MATLAB in solving engineering problems.
5. List the relational operators in MATLAB.
6. Write the usage of who, whose operator.
7. . List any three major differences between C and MATLAB.
8. List any three common input/output functions in MATLAB

8 marks questions:

1. Explain t*he usage of SIMULINK and GUI.


2. Illustrate plot commands : ezplot   , subplot   in MATLAb
3. Illustrate plot commands (i) plot(x,y), (ii) fplot( ) and (iii) title( ) in
MATLAB.
4. Explain the creation of 1D and 2D arrays and m×n matrices in
MATLAB.
5. Explain the common input/output functions in MATLAB with
examples.
6. Explain with an example the matrix operations (i) multiplication
and (ii) transpose and inverse using MATLAB.
7. Explain decision making statements (i) if...end statement and
(ii) if...else...end statement used in MATLAB with a simple
Example
8. Illustrate plot commands : bar( ), pie ( ) in MATLAB

You might also like