[go: up one dir, main page]

0% found this document useful (0 votes)
5 views16 pages

Pps QP

The document is a question bank for the B.Tech course 'Programming for Problem Solving' at Meerut Institute of Engineering & Technology, covering various topics such as digital computers, operating systems, programming concepts, and C language. It includes a list of course outcomes (COs), lecture numbers, syllabus topics, and corresponding questions from previous AKTU sessions. The questions are designed to assess students' understanding of programming fundamentals and problem-solving skills.

Uploaded by

Karan Vaswani
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)
5 views16 pages

Pps QP

The document is a question bank for the B.Tech course 'Programming for Problem Solving' at Meerut Institute of Engineering & Technology, covering various topics such as digital computers, operating systems, programming concepts, and C language. It includes a list of course outcomes (COs), lecture numbers, syllabus topics, and corresponding questions from previous AKTU sessions. The questions are designed to assess students' understanding of programming fundamentals and problem-solving skills.

Uploaded by

Karan Vaswani
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/ 16

Meerut Institute of Engineering & Technology, Meerut

CO-Wise AKTU Question Bank

Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester:I/II

CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
2015-
Discuss the major components of a digital computer with
16,2016-
suitable block diagram. Also discuss the function of each
17,2017-
Block diagram of digital computer & its component.
1 1 1. 18,2018-
components, operating system and its type OR
19,2019-
What is digital computer? Draw a block diagram of it and
20,2020-
explain ALU and CU of it. What is the role of ALU?
21,2022-23
Block diagram of digital computer & its 2018-19,22-
1 1 2. Draw the memory hierarchical structure of computer system.
components, operating system and its type 23

Block diagram of digital computer & its


1 1 3. Differentiate between RAM and ROM. 2015-16
components, operating system and its type
What are the various component of Operating System?
Describe the functionalities of Operating system.
2015-16
Block diagram of digital computer & its OR
1 1 4. 2018-19
components, operating system and its type Why operating system is required?
2017-2018
OR
Justify that operating system is a resource manager
Block diagram of digital computer & its
1 1 5. Give difference between android and window OS. 2015-16
components, operating system and its type
Introduction to low level &high level
Difference between- 2015-16,
1 2 languages, role of assembler, compiler, 6.
(i) Low level and high level language 2016-17
Interpreter

1
2015-16,
Introduction to low level &high level Write the short notes on:-(i)Compiler (ii)Interpreter
2016-17,
1 2 languages, role of assembler, compiler, 7. OR
2017-18,
Interpreter Difference between- (i) Compiler – Interpreter
2018-19

Representation of algorithm, flowchart, 2019-


1 3 8. What is algorithm? Write the characteristics of an algorithm?
pseudo code with examples 20,2017-18
2017-
Representation of algorithm, flowchart, Difference between-
1 3 9. 18,2015-
pseudo code with examples (i) pseudo code and flowchart (ii) Algorithm and flowchart
16,2016-17
Explain flow chart and benefits of using the flow chart in 2016-
Representation of algorithm, flowchart,
1 3 10. Programming. Draw a flowchart to find maximum of three 17,2015-
pseudo code with examples
numbers and sum and average of three numbers also. 16,2022-23
Draw an algorithm and flowchart:
Representation of algorithm, flowchart, (i)To find the sum of digit of an integer number entered by the
1 3 11. 2018-19
pseudo code with examples user.
(ii)To reverse an integer number entered by the user
Differentiate between the following:
(i)Linker – Loader 2017-
Concept of programming, compilation & (ii)Syntax error, Logical error and run time error 18,2018-
1 4 execution process, type of errors, concept 12. OR 19,2019-
of editor, linker & loader Write the short notes on:- 20,2015-16
(I) Linker (II) Loader (III) Syntax error (IV) Logical error (V) run 2016-17
time error (VI) Editor
Concept of programming, compilation &
While compiling the code, write the name of two syntax and
1 4 execution process, type of errors, concept 13. 2018-2019
two logical errors.
of editor, linker & loader
Structure of C program, component of C 2016-
1 5 14. Explain the basic structure of C program.
language (C Tokens) 17,2015-16

Structure of C program, component of C 2017-18


1 5 15. What is token in ‘C’ Language?
language (C Tokens)
2
Structure of C program, component of C
1 5 16. How binary file differ from text file? 2015-16
language (C Tokens)

Structure of C program, component of C 2015-16,


1 5 17. Why do curly braces denote in C?
language (C Tokens) 2016-17

Structure of C program, component of C


1 5 18. Why ‘C’ programming is called structured programming? 2015-16
language (C Tokens)

Structure of C program, component of C


1 5 19. What is the difference between .obj and .exe files in C? 2018-2019
language (C Tokens)

Structure of C program, component of C Difference between following directives?


1 5 20. 2015-16
language (C Tokens) #include<stdio.h> and #include”stdio.h”
Define data types in C. Discuss primitive data types in terms of
memory size, format specifier and range. 2015-
Concept of primitive datatypes: keyword,
1 6 21. OR 16,2016-
format string, storage & range
Write the fundamental data type in C Programming and its 17,2020-21
range.
Standard I/O function in C, escape What do you mean by formatted input/output and unformatted 2015-2016
1 7 22.
sequence & Basic C programs input/output in C language? Explain with examples 2017-2018

Standard I/O function in C, escape


1 7 23. Write the use of putchar() and getchar(). 2017-2018
sequence & Basic C programs

Standard I/O function in C, escape


1 7 24. Explain the escape sequences in C language with example. 2017-2018
sequence & Basic C programs

3
Meerut Institute of Engineering & Technology, Meerut

CO-Wise AKTU Question Bank

Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester: Ist

CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
List all the operators used in C. Give examples.
OR 2015-16,
Introduction of operators & its type based
What is an operator? Explain the arithmetic, relational, logical, 2017-18
on operand, type conversion, concept of
2 8 1. and assignment operators in C language. 2018-19
arithmetic& relational operator
OR 2019-20,
What are the different types of relation operator? Discuss each 2020-21,
with example.
Introduction of operators & its type based
2 8 on operand, type conversion, concept of 2 Differentiate post increment and pre increment with example. 2016-17
arithmetic& relational operator
What are bitwise operators? How they are different from logical
Concept of logical, bitwise etc operator, operators. find the value of following Expression using Bitwise 2017-
2 9 3.
Operator precedence and associativity operator- 18,2022-23
(i)10>>2 (ii) 20<<2 (iii) 25& 30 (iv)25|30
Concept of logical, bitwise etc operator,
2 9 4. What is conditional operator? Explain with suitable example. 2018-19
Operator precedence and associativity
Define The term-
Concept of logical, bitwise etc operator, (I)Associativity (II)Precedence 2016-
2 9 5.
Operator precedence and associativity Or 17,2022-23
Differentiate between precedence and associativity.
What is type conversion? Explain with example. 2016-17
Concept of logical, bitwise etc operator,
2 9 6. OR 2017-
Operator precedence and associativity
Differentiate implicit and explicit conversion with example 18,2022-23
Concept of logical, bitwise etc operator,
2 9 7. What is difference between type casting and type conversion? 2019-20
Operator precedence and associativity

Concept of logical, bitwise etc operator, Write a C program to find the largest of three numbers using
2 9 8. 2016-17
Operator precedence and associativity ternary operator

1
Write short note on various decision/selection control
instruction used in c.
Concept of simple if & if else & related 2020-
2 10 9. OR
programs 21,2015-16
Explain the two way selection (if, if-else, nested if-else, cascaded
if else in C language with syntax.
Concept of simple if & if else & related What is the difference between else if ladder&switch
2 10 10. 2017-18
programs statement.

Concept of simple if & if else & related


2 10 11. Write C program to check number is even or odd. 2015-16
programs
Design and develop a C program to read a year as an input and 2015-16,
Concept of simple if & if else & related
2 10 12. find whether it is leap year or not. Also consider end of the 2019-20,
programs
centuries. 2017-18
Concept of simple if & if else & related Write a program to find whether the year is leap year or not,
2 10 13. 2016-17
programs without using logical operator.

Concept of simple if & if else & related Write a C program to find the largest of three numbers using
2 10 14. 2015-16
programs Nested if-else statement.
2016-17,
Concept of simple if & if else & related Write the program to print the division or grade of student for
2 10 15. 2015-
programs given percentage.
16,2022-23
Concept of simple if & if else & related Write a program print the roots of quadratic equation for real
2 10 16. 2019-20
programs roots & otherwise print imaginary roots.

Concept of simple if & if else & related WAP to check whether the given character is upper case, lower 2014-15,
2 10 17.
programs case, numeric or symbol. 2017-18

Switch statements, use of break and


2 13 18. Explain Switch statement and its Rule with syntax. 2017-18
default with switch.
Write a program to find the value of y for a particular value of n.
2014-15,
Programs related to conditional branching The a, x, b, n is input by user
2 14 19. 2018-19,
instructions for practice If n=1 y=ax%b if n=2 y=ax2+b2 if n=3 y=a-bx
2020-2021
if n=4 y=a+x/b
Write a program to draw the calculator using switch statement
Programs related to conditional branching 2016-17,
2 14 20. in c language.
instructions for practice 2017-18

2
Meerut Institute of Engineering & Technology, Meerut

CO-Wise AKTU Question Bank

Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester: I/II

CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
Describes about the types of looping statements in ‘C’ with
necessary syntax. 2014-15
3 15 Use of for statement & related programs 1.
OR 2018-19
Write the syntax format for while, do while and for loops.

3 15 Use of for statement & related programs 2. Write a program to check a number is prime number or not. 2017-18

Write a program in C to generate the Fibonacci series up to the


2019-20,
3 15 Use of for statement & related programs 3. last Fibonacci number less than 100. Also find the sum of all
2014-15
Fibonacci numbers and total count of all Fibonacci numbers

3 15 Use of for statement & related programs 4. Write a program to print all prime numbers from 1 to 300. 2015-16

A number is said to be an Armstrong number if the sum of the


2015-16,
cube of its digit is equal to the number itself. For example, 153
3 16. Use of while statement & related programs 5. 2016-17,
is an Armstrong number as 153= 1^3+5^3+3^3.Write a C
2016-17
program to check whether a given number is Armstrong or not.
2017-18,
Write a program to check number is palindrome or not. The 2019-20,
3 16. Use of while statement & related programs 6.
program should accept any arbitrary number typed by user. 2020-21,
2016-17
Write a program in ‘C’ that will read a positive number from the
2015-16
3 16. Use of while statement & related programs 7. keyboard and print it in reverse order.
2016-17
Ex. 24578 output: 87542

1
Write a program that calculate sum of the digits of an integer.
For example, the sum of the digit of the number 2155 is
3 16. Use of while statement & related programs 8. 2016-17
2+1+5+5 or 13. The program should accept any arbitrary
number typed by user.

Concept of do while loop, break and


3 17. 9. Explain the do-while loop in c with its properties. 2017-18
continue
2015-16,
Differentiate between do-while and while loop. 2019-20,
Concept of do while loop, break and
3 17. 10. Or 2020-21
continue
Differentiate between exit control loop and entry control loop. 2018-19,
2022-23
What is the difference between break and continue in ‘C’?
Or
How to use break statement in c? Explain with some sort of 2014-15,
Nested Loop and multiple loop variables & 11. code. 2019-20,
3 18.
related programs Or 2018-19,
Write the syntax of continue statement. 2020-21
Or
What is the use of break statement in loops?
Nested Loop and multiple loop variables & Write a C program to add first seven terms of the following
3 18. 13 2016-17
related programs series using for loop. 1/1! +2/2! +3/3! +--------
Write a program to print following pattern:
****
Nested Loop and multiple loop variables &
3 18. 14 *** 2020-21
related programs
**
*
Write a program to print with following pattern:
10
Nested Loop and multiple loop variables &
3 18. 15 9 8 2018-19
related programs
7 6 5
4 3 2 1

2
What is array? In which situation array is advantageous over
Array notation and representation, one linked list? 2018-19,
3 19. 16
dimensional arrays & related programs or 2016-17
What is an array? Give an example.
Array notation and representation, one
3 19. 17 What are subscripts? How they are specified? 2017-18
dimensional arrays & related programs

Array notation and representation, one Write a program to find odd and even number from the array
3 19. 18. 2020-21
dimensional arrays & related programs elements and its count.

Array notation and representation, one Write a C program to check whether given square matrix is
3 19. 19. 2015-16
dimensional arrays & related programs symmetric or not.
Write a C program to multiply two matrices. Take the size of
elements of matrices from the keyboard.
Or
Write a program to multiply the 2 matrices of size M*N.
2015-16,
Or
2016-17,
Write a program to multiply two matrices of dimension 3*3 and
Using multi dimensional arrays & related 2017-18,
3 20 20 store the result in another matrix.
programs 2018-19,
Or
2020-21,
Write a C program to multiply two matrices and display the
2022-23
resultant matrix
Or
Write a program to multiply two matrices (read size and
number of elements of matrices from the keyboard..
Write a program in C for matrix addition.
Using multi dimensional arrays & related Or 2016-17,
3 20 21.
programs Write a program to add two matrices of dimension 3*3 and 2017-18
store the result in another matrix.
Using multi dimensional arrays & related
3 20 22. Write a program in C to find the largest number of a 4*4 matrix. 2017-18
programs

Character arrays and strings, string


3 21. 23. What is a String? 2015-16
handling library functions

3
Character arrays and strings, string
3 21. 24. Explain the significance of null character in string. 2018-19
handling library functions
Explain all string handling library functions.
Or
Character arrays and strings, string
3 21. 25. Explain predefined string functions. 2015-16
handling library functions
Or
Explain in brief the purpose of 'strcmp' function.

3 22 Programs related to string for practice 26. Write a program in C to reverse a string by using pointer. 2017-18

Describe structure. Differentiate between structure and array.


Define structure data type called timestructure containing three
members integer hour,integer minute and integer second.Write
a program in C that would assign values to the individual
members and display the time in the following form: 16:40:52
Or
2015-16,
Concept of structure, array of structure & Explain struct with suitable example.
3 23 27 2016-17,
related programs Or
2017-18
Define a structure?
Or
Explain with example, the syntax and usage of the structure in
C.
Or
Define structure with syntax.
Concept of structure, array of structure &
3 23 28. Describe the relation between structures and pointer. 2015-16
related programs
Write a program in C to create a data base of fifty students to
Concept of structure, array of structure & store personal details such as roll no, name and marks .Print all
3 23 29. 2016-17,
related programs the details of students whose name is entered by the user.
2017-18
Write a C program to store the employee information using
Concept of structure, array of structure & structure and search a particular employee using employee 2015-16,
3 23 30.
related programs number. Take the structure EMPL and its member employee No, 2016-17
employee Name, employee edu.

4
Or
Write a 'C' program to store the employee details using
structure.
Write a program that compares two given dates. To store data
Concept of structure, array of structure & use structure say date that contains three members namely
3 23 31. 2017-18
related programs date, month and year. If the dates are equal then display
message as “Equal” otherwise “Unequal”
Create a suitable structure in C language for keeping the records
of the employees of an organization about their code , Name ,
Concept of structure, array of structure &
3 23 32. Designation , salary , Department , City of posting. Also Write a 2019-20
related programs
program in C to enter the records of 100 employees and
displays the name of those who earn more than 20,000
Explain the importance of structure in C programming. Write a
Concept of structure, array of structure & program in C using Structure to enter and print the record of 10
3 23 33 2018-19
related programs books available in your library. Following fields may be included
in the record: book_title ,book_price and number_of _pages.
Concept of structure, array of structure &
3 23 34 Explain array of structures. 2016-17
related programs
2015-16
Difference between structure & union,
3 24. 35 Differentiate between structure and union in 'C'. 2018-
enumerated data types
19,2022-23
Write short notes on Union and Enumerated data type.
Or
Difference between structure & union, 2016-17,
3 24. 36. Explain the following:
enumerated data types 2018-19
i)Enumerated Data Type
ii)Union

5
Meerut Institute of Engineering & Technology, Meerut

CO-Wise AKTU Question Bank

Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester: I/II

CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
What are functions? What is the advantage of using multiple
Introduction to function and types of functions in a program?
4 25 1. 2016-17
functions Or
What is function? Why programmer use functions in code?
Introduction to function and types of
4 25 2. What are the types of function? 2014-15
functions

Introduction to function and types of


4 25 3. What is the need of function? 2015-16
functions
2015-16,
Introduction to function and types of
4 25 4. What is the meaning of prototype of a function? 2019-20,
functions
2017-18
Introduction to function and types of Explain function declaration and definition of a function with
4 25 5. 2017-18
functions example.
2016-17,
Introduction to function and types of
4 25 6. Differentiate between actual and formal arguments. 2017-18,
functions
2014-15
Introduction to function and types of
4 25 7. Distinguish between – int main () and void main ()? 2016-17
functions

Introduction to function and types of Write a function in C language to find the reverse of a given
4 25 8. 2015-16
functions integer number.
What do you mean by parameter passing? Discuss various types 2016-17,
Difference between call by value and call of parameter passing mechanism in C with example? 2015-
4 26 9.
by reference Or 16,2017-
Explain the difference between parameter passing mechanism 18,2022-23
1
call by value and call by reference. Which is more efficient and
why?
Or
Write a function to interchange the two values of two variables
without using third variable.
2014-15,
What is storage class? Describe automatic, register, static and
4 27 Concept of storage class 10. 2017-18,
external with neat syntax.
2015-16
Discuss the following:
2015-16
4 27 Concept of storage class 11. (i) Scope of variable
2018-19
(ii)Lifetime of a variable
Role of recursive functions & related Differentiate between static and register storage class in C
4 28 12. 2016-17
programs language.
2016-17,
Role of recursive functions & related What is recursion? Write a C program to generate the Fibonacci 2017-18,
4 28 13.
programs Series. 2016-17,
2017-18
2014-
Role of recursive functions & related
4 28 14. What are the main principles of recursion? Explain in detail. 15(Even),
programs
2015-16
Role of recursive functions & related
4 28 15. Differentiate between recursion and iteration. 2018-19
programs
2014-15,
2018-19,
Role of recursive functions & related Write a C program to find the factorial of a given number using
4 28 16. 2020-
programs recursion.
2021,2022-
23
Write a C program to search a number in given 10 numbers
4 29 Searching : linear search & binary search 18. 2016-17
using linear search technique?

Write a C program to search a number in given 10 numbers


4 29 Searching : linear search & binary search 19. 2017-18
using binary search technique.

2
Explain linear search and binary search technique for searching
4 29 Searching : linear search & binary search 20. and item in a given array .Also write the complexity for each 2018-19
sorting algorithm.
2018-
4 29 Searching : linear search & binary search 21. Differentiate between linear search and binary search.
19,2022-23
What do you mean by sorting? Write program to sort the given
n positive integers. Also give the flowchart for the same.
Or
2016-
4 30 Basic sorting algorithms : bubble Sort 22. Write a program in C for sorting N positive integers in
17,2017-18
Ascending order.
Or
Define sorting algorithm with example.
What do you mean by sorting? Write a program in C to sort 'n'
positive integers using bubble sort. Also draw the flow chart for
the same.
Or
2017-
Write the importance of sorting in problem solving .Write a
18,2018-
4 30 Basic sorting algorithms : bubble Sort 23. program in C using bubble sort technique to sort 10 numbers
19,2019-
entered by the user.
20,2022-23
Or
Write a C program to sort set of integers in ascending order by
using bubble sort technique.

Explain selection sort technique for sorting problem. Write an


algorithm for selection sort. Sort the following numbers using
Other sorting algorithms : selection & 18-19 ,2020-
4 31 24. selection sort technique 26, 54, 93, 17, 77, 31, 44, 55, 20.
insertion sort 21
Or
Explain Selection sort with example.
Write a C program to sort set of integers in ascending order by
Other sorting algorithms : selection &
4 31 25. using selection sort technique. 2022-23
insertion sort

3
Meerut Institute of Engineering & Technology, Meerut

CO-Wise AKTU Question Bank

Course: B.Tech Subject Name: Programming For problem solving Subject Code: BCS101 Semester:1st

CO No. Lect. No. Syllabus Topic (As Per LP) Ques. No. Question Statement (As Per AKTU) Session
2015-16
Introduction, declaration, applications of
5 33 1. What is pointer and how is it initialized? 2016-17,
pointer
2017-18
What is void pointer? How is it different from other pointers?
Introduction, declaration, applications of
5 33 2. Or 2015-16
pointer
What is special about void pointer?
Introduction, declaration, applications of 2019-
5 33 3. What do you mean by pointer arithmetic?
pointer 20,2022-23
2015-16,
Introduction, declaration, applications of
5 33 4. State the features of pointers. 2016-
pointer
17,2019-20
What is dynamic memory allocation? How does it help in building
complex programs? What is the task of following memory allocation 2015-
function? 16,2016-
a. malloc 17,2017-
Introduction to dynamic memory allocation:-
5 34 5. b. calloc 18,2018-
malloc, calloc, realloc and free
c. free 19,2019-
d. realloc 20,2020-
or 21,2022-23
What is the role of dynamic memory allocation?
Introduction to dynamic memory allocation:-
5 34 6. What is life time of variable which is created dynamically? 2018-19
malloc, calloc, realloc and free
Difference between compile time and run time memory allocation.
Introduction to dynamic memory allocation:- Or 2018-
5 34 7.
malloc, calloc, realloc and free Explain static memory allocation and dynamic memory allocation 19,2022-23
with suitable example.

1
Program related to pointers & dynamic
5 35 8. Write a program in c to sort the numbers using pointers. 2019-20
memory allocation
Linked List: Use of pointers in self-referential
What is linked list? Write the self reference structure of a node in 2018-
5 36 structures. notion of linked list (no 9.
linked list? 19,2022-23
implementation)
Linked List: Use of pointers in self-referential
5 36 structures. notion of linked list (no 10. Write the advantage of use of linked list. 2020-21
implementation)
Introduction to file, file handling library
5 37 11. Explain file handling. 2020-21
functions

Introduction to file, file handling library Write the following function in file operations: 2017-
5 37 12.
functions getw() putw() fscanf() fprintf() 18,2020-21
2015-
What are the various types of files that can be created in C
16,2017-
language? Also give different modes in which these files can be used
5 38 Practice of file related programs 13. 18,2019-
with proper syntax. WAP in c to append some text at the end of an
20,2021-
existed text file.
22,2022-23
2015-
List various file operation in C .WAP in c to count the number of 16,2017-
5 38 Practice of file related programs 14.
characters in a file. 18,2018-
19,2022-23
Write the various input functions used in file handling in c. A file
named data contains a series of integer numbers WAP to read 2015-
5 38 Practice of file related programs 15.
number from file and then write all ‘odd’ number to file ODD.txt & 16,2019-20
all even to file EVEN.txt.
Suppose a file contains student’s records with each record
5 38 Practice of file related programs 16 containing name and age of a student. WAP in C to read these 2015-16
records and display them in sorted order by name.
2015-
16,2016-
5 38 Practice of file related programs 17 Write a c program to copy the text of one file to another.
172017-
18,2020-21

2
Write a program in c to write some text matter into a file
5 38 Practice of file related programs 18. ‘example.txt” and then read this text matter and display on console 2022-23
using file handling method.
2015-
What is preprocessor directive? Explain any three of them.
Standard C preprocessors, types of 16,2019-
5 39 19. Or
preprocessor directives 20,2020-
What is the role of C preprocessor?
21,2022-23
What do you mean by macro? Explain types of macros with
examples. 2016-
Standard C preprocessors, types of
5 39 20 Or 17,2017-
preprocessor directives
How the macros are defined and called in c. explain with suitable 18,2018-19
example.
Standard C preprocessors, types of Write the difference between #includes<stdio.h>&
5 39 21 2015-16
preprocessor directives #include”stdio.h” file inclusion method.
#define PRODUCT(n) n*n
void main( )
{
Standard C preprocessors, types of int j;
5 39 22. 2017-18
preprocessor directives j=64/PRODUCT(4);
printf(“%d”,j);
}
What will be the output of the above program?
Standard C preprocessors, types of Explain the syntax and use of the following directive with example: 2017-
5 39 23.
preprocessor directives #ifdef #undef #pragma #include 18,2018-19
Write macro definition with arguments for calculation of simple
Standard C preprocessors, types of interest and amount. Store these macro definitions in a file called
5 39 24. 2019-20
preprocessor directives ‘interest.h’. Include this file in your program and use macro
definitions for calculation simple interest and amount.

5 40 Command-line arguments & related programs 25. Explain command line argument in c with example. 2018-19

You might also like