Você está na página 1de 11

File hosted by educationobserver.

com/forum

1.

Which is the C IDE:

b.

Borland C++ compiler

d.

Visual Studio

a.
c.

GNU gcc compiler

Turbo C++ IDE

e.

All of Above

a.

Unix

2.

C us supported by the following operating system:

b.

Linux

d.

All of above

a.

Low level

c.

3.

Windows

C is the ________ language:

b.

High Level

d.

None of these

a.

Portable

c.
4.

Both Low and High Level


Which is not the feature of c language:

b.

Terse

d.

Efficient

c.

Modular

e.

None of these

a.

Operating system

5.

You require to write and run c program:

b.

Text editor

d.

All of above

a.

Ctrl + F9

c.

6.

Compiler

which is the shortcut key to compile program in Turbo C IDE:

b.

Alt + F9

d.

None of these

a.

30

c.

7.

Ctrl + F5

C has _______ keywords:

b.

31

d.

33

c.

8.

C Language MCQ

32

Which is the type of int:

File hosted by educationobserver.com/forum

a.

Int

b.

Unsigned int

d.

Unsigned long

c.

Long

e.

All of above

a.

+345

9.

Which is not the valid integer:

b.

345UL

d.

123.0

a.

0346

c.

123U

10. Which is the invalid octal:


b.

0452

d.

0840

a.

0x345

c.

0255

11. Which is invalid hexadecimal:


b.

0xA132

d.

0x452F

a.

88

c.

0xG120

12. The ASCII value of Y:


b.

89

d.

91

a.

Char

c.

90

13. Which is not the fundamental data types:


b.

Array

d.

Float

a.

Location in memory

c.

Int

14. Variable is a:
b.

Location in CPU Registers

d.

None of these

a.

Extrern

c.

Both

15. Which is not the type of variable


b.
c.

Register
Global

File hosted by educationobserver.com/forum

d.

None of above

a.

Pushp1

16. Which is the invalid identifiers name:


b.

_pushp

d.

pushp_infotech

a.

Real numbers

c.

1Pushp

17. int can store:


b.

Characters

d.

None of these

a.

Static

c.

String

18. Which is not the type of variable initializations:


b.

Dynamic

d.

None of these

a.

Form feed

c.

Both

19. In c language \a used for:


b.

Line Brack

d.

None of these

a.

int

c.

double

c.

Alarm

20. The Arithmetic operator % can be used with:


b.

float

d.

void

a.

char

21. %d is the conversion letter for:


b.

int

d.

double

a.

65

c.

float

22. printf(%c, 65); Out of this line is:

b.

d.

None of these

a.

One operand

c.

Both

23. Binary operator needs:


b.

Two operand

File hosted by educationobserver.com/forum

c.

Three operand

d.

None of these

a.

||

24. Which is the symbol for AND operator:


b.

&&

d.

None of these

a.

0 && 1 = 0

c.

0 && 1 = 2

c.

$$

25. printf(0 && 1 = %d\n, 0 && 1); Out of this line is:

b.
d.

0 && 1 = 1

0 && 1 = 3

26. int x=10;

a.
b.
c.
d.
27.
a.
b.
c.
d.
28.
a.

b.
c.
d.

29.

a.

b.
c.
d.

30.
a.

b.
c.

d.

printf("%d",x++); Output is:


10
11
12
None of these
>> operator is used for:
Right Shift
Left Shift
Both
None of these
char x=10;
printf("%d",~x);
Output is:
10
-10
-11
None of these
printf("%d",sizeof(int)); Output is:
1
2
6
10
C program starts executing from:
main()
header file
both
None of these

File hosted by educationobserver.com/forum

31. Which is the incorrect statement:


a.

Variable name can contain underscore.

b.

Variable name may start from digit.

d.

Keyword can not be a variable name.

a.

Garbage value.

c.

Both

c.

Variable name may not have white space character.

32. Uninitialized variable may have:


b.

Can not be zero

d.

None of these.

a.

for

33. Which is the correct variable name:


b.

goto

d.

if

a.

typedef

c.

character

34. Which is not the c keyword:


b.

extern

d.

local

a.

c.

c.

register

35. Which operator is used to assign value to variables:


b.

d.

a.

Alert

36. \n used for


b.

New line

d.

Backspace

a.

Value of a

c.

Form feed

37. printf(%u,&a); The output of this statement is:


b.

Address of a

d.

None of these.

a.

Array of numbers.

c.

Both

38. String is:


b.
c.

Array of characters.
Both

File hosted by educationobserver.com/forum

d.

None of these.

a.

\n

39. Which is the string termination character:


b.

\b

d.

None of these

c.

\0

40. char *name= India;


strupr(name);

puts(name); Output of this program is:


a.

India

b.

india

d.

iNDIA

a.

strlwr();

c.

INDIA

41. Which is not the string handling function:


b.

strcat();

d.

strrev();

f.

None of these.

c.
e.

strcmp()
strlen();

42. Which statement is wrong:


a.

A function may have arguments.

b.

A function may return value.

d.

Function cannot be reused.

a.

Single value

c.

Many values.

c.

A can be invoked many time in a single program.

43. A function can return only _______


b.

Two Values.

d.

None of these

a.

stdio.h

44. Mathematical function are stored in _________ header file:


b.

conio.h

d.

string.h

c.

math.h

45. A function which invokes itself repeatedly until some condition is satisfied is called a
___________ function.
a.

b.

Recursive
System

File hosted by educationobserver.com/forum

c.

Library

d.

None of these

a.

Decrement

46. ++ is ________ operator:


b.

Increment

d.

Plus-Plus

a.

An array is the collection of variables.

c.

Add

47. Which is the incorrect statement:


b.

All array variables have same type.

d.

None of these.

a.

Statically

c.

Both

c.

Array variables can be used individually.

48. An array can be declared:


b.

Dynamically

d.

None of these

a.

Single Dimensional

49. Array can be:


b.

Multi Dimensional

d.

None of these

a.

c.

c.

Both

50. Array index is always starts from:


b.

d.

a.

Linear

c.

Hierarchical

51. An array is ____________ data-structure:


b.

Non-linear

d.

None of these

a.

An array of characters is called string.

52. Which is the false statement:


b.

Array can be passed to function.

d.

None of these

a.

Bubble Sort

c.

Array is always reference type.

53. Array can be sorted by using:

File hosted by educationobserver.com/forum

b.

Merge Sort

d.

All of above

a.

Prototype

c.

Quick Sort

54. Which term is not related to function:


b.

Definition

d.

Receive

a.

Formal

c.

Call

55. Which is the type of function arguments:


b.

Actual

d.

None of these

a.

gets();

c.

Both

56. Which not the input function:


b.

getch();

d.

scanf();

f.

None of these.

c.
e.

getchar();
getche();

57. Which is not the output function:


a.

printf();

b.

puts();

d.

putch();

c.

puchar();

e.

None of these.

a.

int x=add(4.2,5);

58. int add(int,int); in the given function prototype select the correct statement:
b.

int x=add(4,25);

d.

int x=add();

a.

Constant value

c.

int x=add(425);

59. A pointer variable can store ________


b.

Value of anther variable.

d.

None of these.

a.

int variable

c.

Address of another variable

60. int *ptr; here ptr can store the address of:
b.

float variable

File hosted by educationobserver.com/forum

c.

d.

double variable

All of above

61. int x=10;

int *y=&x; the variable y contains:


a.

Value of x;

b.

Address of x;

d.

None of these

a.

Pointer

c.

Both

62. int **ptr; here ptr is:


b.

Pointer to pointer

d.

None of these

a.

Value of the variable

c.

Both

63. In the call by reference we pass:


b.

Address of variable

d.

None of these

c.

Both value and address

64. int a[3]={4,5,6};


printf(%u,a); What is the output:
a.

Value of first element.

b.

Address of first element

d.

None of these

a.

malloc();

c.

Both

65. Which function is related to dynamic memory allocation:


b.

calloc()

d.

All of above.

a.

Copy two strings

c.

realloc()

66. strcmp() function is used for:


b.

Compare two strings.

d.

None of these

a.

getch();

c.

Concatenation of two strings

67. Which is the formatted input function:


b.

scanf();

d.

getche();

c.

gets();

File hosted by educationobserver.com/forum

68. Which is the incorrect function prototype:


a.

int add(int,int);

b.

int add(float, int);

d.

float add(float,int);

a.

char *gets(char *string);

c.

float add(int,int);

69. Which is the incorrect function prototype based on c library:


b.

int puts(const char*s);

d.

int cputs(const char*str);

c.

char *cgets(char *str);

e.

None of these

a.

Text

70. Which is the type of files:


b.

Binary

d.

None of these

a.

fopen();

c.

Both

71. Which function is not related to file handling:


b.

fclose();

d.

printf();

a.

c.

fprintf();

72. Which is the file opening mode:


b.

d.

wb

f.

All of above

c.
e.

rb
a

73. A structured programming have:


a.

Sequence

b.

Selection

d.

All of Above

a.

while

c.

Switch-case

c.

Iteration

74. Which is not the selective control flow statement:


b.
d.

if

if-else

75. Which is the correct example of label:

File hosted by educationobserver.com/forum

a.

Label;

b.

Label:

d.

#Label

a.

Herbert Schieldt

c.

Label,

76. Who is the manufacturer of C language:


b.

Banjarne Stroups

d.

None of these

a.

Object Oriented

c.

Dennis Ritchie

77. C is the __________ language:


b.

Structured

d.

None of these.

a.

Takes efficient time

c.

Unified Modeling

78. An efficient algorithm ______


b.

Takes efficient memory

d.

None of these

a.

Black Box

c.

Both

79. Which technique is related to internal code:


b.

White Box

d.

Beta

a.

Path Testing

c.

Alfa

80. Which is the type of white box testing:


b.

Loop Testing

d.

All of these

c.

Domain Testing.

Você também pode gostar