C Programming Language MCQ Questions Answers Computer Engineering CSE

11) The default parameter passing mechanism is

a) call by value

b) call by reference

c) call by value result

d) none of the above

View Answer
Option – a)

12)The order in which actual arguments are evaluated in a function call

a) is from the left

b) is from the right

c) is compiler-dependent

d) none of the above

View Answer
Option – c)

13)The expression 4+6/3 * 2 – 2+ 7% 3 evaluates to

a) 3

b) 4

c) 6

d) 7

View Answer
Option – d)

14)Pointers are of

a) integer datatype

b) character datatype
c)unsigned integer datatype

d) none of these

View Answer
Option – d)

15) A string that is a formal parameter can be declared

a) an array with empty bracket

b) a pointer to character

c) none of the above

d) both (a) and (b) above

View Answer
Option – d)

16) If 7 bits are used to store a character, the percentage reduction of needed storage will be

a) 22.5

b) 2.5

c) 8

d) 12.5

View Answer
Option – d)

17)The contents of a file will be lost if it is opened in

a) a mode

b) w mode and w + mode

c) r + mode

d) a + mode

View Answer
Option – b)

18)How many bits are absolutely necessary to stone an ASCII character ?

a) 7

b) 8

c) 16

d) 15

View Answer
Option – a)

19)The most signification bit will be lost in which f the following operations?

a) >>

b) complementation

c)<<

d) none of the above

View Answer
Option – a)

20)Replacing > by < in the previous question results in

a) printing of 107

b) a syntax error

c) printing of k

d) none of the above

View Answer
Option – a)

21) As soon as a pointer variable is freed, its value

a) is set to null

b) become unpredictable

c) is set to 1

d) remains the same

View Answer
Option – d)

22)The number of additions performed by the above program fragment is

a) 27000

b) 27000 x 3

c) 9000 + 3 x 27000

d) 9930 + 27000 x 3

View Answer
Option – d)

error: