0% found this document useful (0 votes)
255 views1 page

C Online Test 4

Uploaded by

shlokpubg19
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)
255 views1 page

C Online Test 4

Uploaded by

shlokpubg19
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/ 1

C Online Test

[email protected] Switch account

Draft saved

* Indicates required question

C Online Test

Total Questions : 50
Total Duration : 50 Minutes
Note : Attempt all questions , No Negative
Marking and please submit it within given TIME
SPAN ( 50 MINUTES )

float farr[2]; size of farr?? * 1 point

16

10

find the output of this program * 1 point

-2

-8

error

what is output of this code * 1 point

error

none of these

Which data type cannot be * 1 point

checked in switch-case
statement?

enum

character

integer

Poat

Which one of the following * 1 point

operators is a unary operator in c


language?

>

&&

<<

sizeof()

Find the output of the given C * 1 point

program.

10

14

None of these

find the output * 1 point

error

none of these

Which statement can print \n on * 1 point

the screen?

printf("\\n");

B - printf("n\");

C - printf("n");

D - printf('\n');

Which of the following is the * 1 point

variable that can be used for all


functions?

Static variable

Global variable

Local variable

Dynamic variable

The break statement is used to * 1 point

take control out of switch and


continue statement is used to take
control of the beginning of the
switch?

Yes

No

Find the output of the given C * 1 point

program.

error

20

None of these

Find the output of the given C * 1 point

program.

#include‹stdio.h›
intmain()

intc=5,no=1000;
do
no/=c;
}while(c--);

printf("%d\n",no);
return0;

run time error

50

None of these

when the size of array is optional if * 1 point

initialization is a part of de_nition

It is a de_nition with declaration

It is a formal parameter

All of these

Which of the following variable * 1 point

name is correct in c language?

For

for

Basic salary

hello.

find the output of this code * 1 point

20

30

10

none of these

arr[10]; what is value of arr ? * 1 point

address of arr

value of _rst element

address of _rst element

10

Which operator is used to continue * 1 point

the definition of macro in the next


line?

B - ##

C-$

D-\

Find the output of the given C * 1 point

program.

a) None of these

b) 3 2 3

c) 3 2 2

d) 2 3 2

find the output of this code * 1 point

error

none of these

Find the output of the given C * 1 point

program.

20

1000

error

garbage value

what is the output ?? * 1 point

hello main!! hello main!!

hello main

hello main h

compile time error

Which of the following statement * 1 point

is correct about the array?

In the array, users can only allocate the


memory at the run time.

In the array, users can only allocate the


memory at the compile time.

The array is a primitive and non-linear


data structure that only stores a similar
data type.

All of the these

Find the output of the given C * 1 point

program.

1 to 15

1 to 5 and 6 to 15

error

Within a switch statement? * 1 point

Continue can be used but Break cannot


be used

Continue cannot be used but Break can


be used

Both Continue and Break can be used

Neither Continue nor Break can be used

find the output of this code * 1 point

10

error

Given b = 110 and c = 20 ,what is * 1 point

the value of 'a' after execution of


the expression a = b-=c*=5

450

10

110

-10

find the output of this code * 1 point

10

error

none

find the output of program * 1 point

welcome in KIT!!

none

error

none of these

printf("%f",10); * 1 point

0.000000

eroor

10.0000

10

For printing the value of a and b * 1 point

given below, which printf()


statement will you use

printf("%Lf %f", a, b);

printf("%Lf %Lf", a, b);

printf("%f %Lf", a, b);

printf("%f %lf", a, b);

Special symbol permitted with in * 1 point

the identifier name.

-$

-@

-_

-.

What is the other name for ?: * 1 point

Question Mark Colon Operator .

Comparison Operator

If-Else Operator

Binary Operator

Ternary Operator

Find the output of the given C * 1 point

program.

10

12

Array is a _________ data structure. * 1 point

Non-linear

Primary

Linear

Data type

Who was developed the C * 1 point

Language ?

Yashwant Kanetkar

Bjarne Stroustrup

Dennis Ritchie

Ricky Pointing

* 1 point

10 - value

bye?

0 - value bye?

none of these

what is the output of this code * 1 point

You might also like