0% found this document useful (0 votes)
34 views

C in Use Question Paper - Set1

This document contains questions related to C programming concepts. It has two sections: Section A contains 11 multiple choice questions related to flowcharts, algorithms, data types, operators, and finding outputs of code snippets. Section B contains 6 questions requiring short answers or code writing related to data types, algorithms, operators, input/output of different data types, and bitwise operators.

Uploaded by

chandini3414
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

C in Use Question Paper - Set1

This document contains questions related to C programming concepts. It has two sections: Section A contains 11 multiple choice questions related to flowcharts, algorithms, data types, operators, and finding outputs of code snippets. Section B contains 6 questions requiring short answers or code writing related to data types, algorithms, operators, input/output of different data types, and bitwise operators.

Uploaded by

chandini3414
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Name:

Reg No:

Branch:

Subject: C in Use

SECTION A (Answer any five questions)

[10*1=10]

1) Define flowchart? Which symbols are used to represent input/output and


processing in flowchart.
2) Define algorithm. Write the characteristics of an algorithm.
3) Difference between signed and unsigned integer.
4) Difference between compiler and interpreter.
5) Define keyword? Explain the naming rules of variable.
Find out the output for following questions (6-11)
6) void main( )
{
int a=32790;
printf(%d,a);
}
7) void main( )
{
int a=3;
printf(%d%d%d%d,a++,--a,++a,a++);
}
8) void main( )
{
printf(" %d %d %d", sizeof('a') , sizeof(1.5), sizeof(1.23f));
}
9) void main( )
{
int a=9,b=-7;
printf(%d %d %d %d ,a/b,b/a,a%b,b%a);
}

10)

void main()
{
int a=2,b=3;
(a==b)? printf( both are equal):printf(not equal);
}

11)void main()
{
int a=4,b;
b= a++ + a-- + --a + --a;
(a==b)? printf( both are equal):printf(not equal);
}
SECTION B

12)
13)
14)
15)
16)
17)

(Answer any five questions)

[5*2=10]

Define data type? Explain different types of data types?


Write an algorithm and flowchart to find the simple interest?
Write a program to read two integers and swap it?
Write a program to find the biggest number between two integers?
Define operator? Explain about relational operator?
Find out the output?
void main( )
{
int a=19,b=17;
printf(%d %d %d %d ,a&b, a|b, a^b,a<<2);
}
18) Write a program to read two integers, two floats, two double values
and display the sum of two doubles, product of two floats, and division of
two integers.

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