You are on page 1of 24

1/11/23, 2:55 PM PL-2022-Lab-20

PL-2022-Lab-20
vamsi.r.2020.ece@ritchennai.edu.in Switch account

Draft saved

Your email will be recorded when you submit this form

* Required

What is the output of the following program? *

2, 3

3, 2

5, 2

Compilation error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 1/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the C program? *

25 16

16 16

16 25

25 25

What will be the output of the following C code if the value of ‘p’ is 10 and that of *
‘q’ is 15?

10

15

bye

error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 2/24
1/11/23, 2:55 PM PL-2022-Lab-20

The purpose of the preprocessor directive #error is that _____. *

It rectifies any error present in the code

It rectifies only the first error which occurs in the code

It causes the preprocessor to report a fatal error

It causes the preprocessor to ignore an error

What will be the output of the C program? *

Compilation error

-5

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 3/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the following C code? *

error

REC

RIT

RECRIT

What will be the output of the following C Code? *

NULL

TRUE

FALSE

None of the mentioned

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 4/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the C program? *

program never ends

Compilation error

preprocessor-aptitude

none of the mentioned

What will be the output of the following C code? *

45

error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 5/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the C program? *

Runtime error

Compilation error

%s C preprocessor %s C preprocessor

%s C preprocessor C pre-processor

What is the error in the following program? *

Variable 'a' should be replaced by 'si'

Nothing will print

Error in declaration of si

No error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 6/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the following C code? *

Euro

Rupee

Dollar

Error

What will be the output of the C program? *

Garbage value

Runtime error

Compilation error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 7/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the C program? *

Compilation error

Runtime error

50

none of the mentioned

What will be the output of the following C code? *

10

20

30

error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 8/24
1/11/23, 2:55 PM PL-2022-Lab-20

What is the output of the following C code? *

Divided by zero exception

Compile time error

-8

-4

What will be the output of the following C code? *

10

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 9/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the following C code? *

hello

hellohi

error

hi

The preprocessor directive which checks whether a constant expression results *


in a zero or non-zero value _____.

#if

#ifdef

#undef

#ifndef

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 10/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the C program? *

preprocessor 12

preprocessor 13

reprocessor 13

reprocessor 12

What will be the output of the C program? *

Compilation error

20

10

Runtime error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 11/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the C program? *

x is not declared

No output

Garbage value

What will be the output of the C program? *

Compilation error

-5

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 12/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the following C code? *

100

bad

10

error

What will be the output of the C program? *

27

13

None of the mentioned

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 13/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the C program? *

16

Compilation error

64

What will be the output of the following C code? *

10

20

Error

1020

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 14/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the following C code? *

error

100

99

10099

What will be the output of the C program? *

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 15/24
1/11/23, 2:55 PM PL-2022-Lab-20

What is the output of this C code? *

k1

k1

Compile time error

m ## n

Which of the following is not a preprocessor directive? *

#error

#pragma

#if

#ifelse

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 16/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the following C code? *

Error

10

100

200

What will be the output of the following C code? *

100

hello

"hello"

error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 17/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the C program? *

Compilation error

Garbage value

Runtime error

What will be the output? *

hello

world

compiler error

run time error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 18/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be output of the following C code? *

150

60

Compile time error

None of the mentioned

What will be the output of the C program? *

Compilation error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 19/24
1/11/23, 2:55 PM PL-2022-Lab-20

Assume sizeof an integer and a pointer is 4 bytes. Output of the following *


program?

96

24

What will be the output of the following C code? *

25

error

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 20/24
1/11/23, 2:55 PM PL-2022-Lab-20

What is the output of the following C code? *

k1

k1

xy

Compile time error

The preprocessor directive which is used to remove the definition of an identifier *


which was previously defined with #define?

#ifdef

#undef

#ifndef

#def

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 21/24
1/11/23, 2:55 PM PL-2022-Lab-20

What will be the output of the following C code? *

error

yes

no

yesno

What will be the output of the following C code? *

10

hello

error

1010

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 22/24
1/11/23, 2:55 PM PL-2022-Lab-20

_____ is the preprocessor directive which is used to end the scope of #ifdef. *

#elif

#ifndef

#endif

#if

What will be output of the following C code? *

10

Compile time error

Submit Clear form

This form was created inside of Rajalakshmi Engineering College . Report Abuse

 Forms

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 23/24
1/11/23, 2:55 PM PL-2022-Lab-20

https://docs.google.com/forms/d/e/1FAIpQLSdlc2VGIz1KjZLNCL94VlCEy-iFh4iwQKDrDXL1fcV_0Zbeig/viewform 24/24

You might also like