Computer Programming (3310701) MCQs

MCQs of Operators and Expression

Showing 21 to 30 out of 49 Questions
21.

a += 4 means

(a)

a=a+4

(b)

a+4=a

(c)

a=4

(d)

a=4+4

Answer:

Option (a)

22.

The operator &,*,++,-- have

&,*,++,-- ઓપરેટર ________ ધરાવે છે.

(a)

Same precedence level and same associativity

(b)

Same associativity and different precedence level

(c)

Different precedence level and different associativity

(d)

Different precedence level and same associativity

Answer:

Option (a)

23.

What is the value of x in this C code?

void main()
{
       int x = 4*5/2+9;
}

આપેલા C કોડમાં x ની વેલ્યુ શું હશે?

void main()
{
       int x = 4*5/2+9;
}

(a)

6.34

(b)

1.45

(c)

19

(d)

17

Answer:

Option (c)

24.

What will be the output of the following expression?

નીચેના એક્સપ્રેશન નું આઉટપુટ શું હશે?)

5+3*2%10-8*6

(a)

-37

(b)

-42

(c)

-32

(d)

-28

Answer:

Option (a)

25.

_______ operator used to check a condition and select a value depending on the value of the condition.

______ ઓપરેટર કન્ડિશન ચેક કરી અને તે કન્ડિશન ના answer ના આધારે next સ્ટેટમેન્ટ એક્ઝિક્યુટ કરવા માટે ઉપયોગી છે.

(a)

Logical operator

લોજિકલ ઓપરેટર

(b)

Decrement operator

ડીક્રીમેન્ટ ઓપરેટર

(c)

Ternary operator

ટરનરી ઓપરેટર

(d)

Bitwise operator

બીટવાઇઝ ઓપરેટર

Answer:

Option (c)

26.

Which operators perform operations on data in binary level?

કયા ઓપરેટરો બાઈનરી લેવલ માં ડેટા પર ઓપરેશન પરફોર્મ કરે છે?

(a)

Logical operator

લોજિકલ ઓપરેટર

(b)

Bitwise operator

બીટવાઇઝ ઓપરેટર

(c)

Additional operator

એડીશનલ ઓપરેટર

(d)

Decrement operator

ડીક્રીમેન્ટ ઓપરેટર

Answer:

Option (b)

27.

The operator "&" is known as _______ .

ઓપરેટર "&" ________ તરીકે ઓળખાય છે.

(a)

Bitwise AND

(b)

Bitwise OR

(c)

Logical AND

(d)

Logical OR

Answer:

Option (a)

28.

In C, which of the following is not a valid relational operator?

C માં,નીચેનામાંથી કયું વેલીડ રિલેશનલ ઓપરેટર નથી?

(a)

<>

(b)

==

(c)

>=

(d)

<=

Answer:

Option (a)

29.

The _____________ operator checks if the value of left operand is greater than the value of right operand.

_____________ ઓપરેટર ચેક કરે છે કે ડાબા ઓપરેન્ડની વેલ્યુ જમણા ઓપરેન્ડની વેલ્યુ કરતા વધારે છે કે નહીં.

(a)

= =

(b)

<

(c)

>

(d)

=

Answer:

Option (c)

30.

++ and -- are unary operator.

++ અને -- યુનરી ઓપરેટર છે.

(a)

TRUE

(b)

FALSE

Answer:

Option (b)

Showing 21 to 30 out of 49 Questions