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

FPL QB

Fpl

Uploaded by

adityagite2006
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)
77 views3 pages

FPL QB

Fpl

Uploaded by

adityagite2006
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

Department of First Year Engineering

FPL (Unit-I,II)
Question Bank

1. What is the significance of C programming language in modern computing? Explain the


history and its importance.
2. Write a short note on C Tokens with examples.
3. Describe the four basic data types in C with examples.
4. What are keywords in C? How do they differ from identifiers?
5. Write a C program to declare and initialize constants and variables of different data types.
The program should demonstrate the use of at least two constants and three variables.
6. Define primary data types in C .What is short int and long int. Explain with example
7. Explain the use of flowchart in program design and draw a flowchart to convert
temperature from Celsius to Fahrenheit.
8. Write and explain a structure of C program.
9. Define variables. Explain with example how to declare variable. Describe the purpose of
const and volatile
10.Draw a flowchart and write an algorithm to find the sum of the first 10 natural numbers.
11.Describe arithmetic operators and explain the behaviour of modulo division operator with
example
12.Define the term "conditional operator." Write a C program that uses the conditional
operator to find the minimum of two numbers.
13.Write a C program that demonstrate the use of Prefix and Postfix Increment Operator.
Also give justification of output.
14.Explain the different types of operators in C. Write a C program to compute the average
of five numbers using arithmetic operators.
15.What are identifiers in C? What ae the rules of naming identifiers?
16.What are the program design tools. Write an algorithm to calculate and display the roots
of quadratic equation.
17.Which of the following declaration statements are invalid and why?
int a, b=4, c=4.3, d='D';
char e=257, e, 23_e;
Department of First Year Engineering

short Default, Default_Value, default, default2;


long int, f=123456789;
Float x=123.456, Y=100 e-6;
unsigned negative = -1;
const int three = 4, Max, e=0;
unsigned float g = 1.234;

18.What is the Output of the following program:

main()
{
int x=5,y=10,z=10;
x = y = = z;
printf(“%d”,x);
}

19.Write a C program that demonstrates the use of both relational and logical operators to
determine if a student passes based on two subjects' scores.
20.Describe the purpose of storage classes in C. Explain the difference between static and
extern storage classes with examples.

21.Identify syntax errors in the following program: Also write the correct Program with
Output.
#include<stdio.h>
#define PI 3.142;
int main()
{
int R;
float perimeter, area;
R=5;
perimeter=2.0*PI*R
area=PI*R*R;
printf(“%f ”, “%d”, &perimeter, &area)
}
Department of First Year Engineering

22.Explain the different types of Arithmetic operators used in C with example.


23.Explain Bitwise Operators in C.
24.Explain the concept of bitwise operators in C. Write a C program to demonstrate the use
of bitwise AND and OR operators.
25.Explain the different types of operators in C. Write a C program to demonstrate mixed
mode arithmetic operations.
26.Define logical operators in C. Determine the value of each of the following logical
expression if a=5, b=10, c=-6

a) a>b&&a<c
b) a<b&&a>c
c) a= =c||b>a
d) b>15&&c<0||a>0
27.What is the Output of the following program:
main()
{
int x=100,y=200;
printf(“%d”,(x>y)?x:y);
}
28.Write a C Program that demonstrates the use of comma and sizeof operator
29.Explain relational operators in C. Write a C program to compare two integers using
relational operators.
30.Write a program in C to calculate Compound Interest. And Write an Algorithm and
Flowchart.
31.Write a program in C to accept the number and compute a square root, square and cube of
the number. And Write an Algorithm and Flowchart.

You might also like