Which operators of the following have same precedence? P. "!=", Q. "+=", R. "<<="
1.P and Q
2.Q and R
3.P and R
4.P, Q and R
Answer:2
Posted Date:-2021-02-20 21:39:28
1.auto
2.static
3.extern
4.register
Answer 31.Right to Left
2. Left to Right
3.Random fashion
4.Both Right to Left and Left to Right
Answer 41. heap
2.Data segment
3.Code segment
4.stack
Answer 41.Zero
2. Junk value
3.Nothing
4.Both Zero & Junk value
Answer 21.Declared within the scope of a block, usually a function
2. Declared outside all functions
3.Declared with the auto keyword
4.Declared within the keyword extern
Answer 11.void
2. int
3.double
4.short int
Answer 21.Yes, and we can use the function value conveniently
2.Yes, but we call the function again to get the value, not as convenient as in using variable
3.No, C does not support it
4.This case is compiler dependent
Answer 31.Output will be 3, 2
2.Output will be 3, 1
3.Output will be 6, 1
4.Output is compiler dependent
Answer 11.TRUE
2. false
3.depends on the compiler
4.depends on the standard
Answer 11.TRUE
2.FALSE
3.Depends on the compiler
4.Depends on the standard
Answer 11.Internal
2. External
3.Both Internal and External
4.External and Internal are not valid terms for functions
Answer 21.Internal
2.External
3.Both Internal and External
4.None of the mentioned
Answer 21.Compiler
2.Associativiy of () operator
3.Precedence of () and + operator
4. Left to write of the expression
Answer 11.Compiler
2.Associativiy of () operator
3.Precedence of () and + operator
4.Left to write of the expression
Answer 11.2
2. True
3.1
4.0
Answer 11.a *= b + 1;
2.(c = a * b)!=(a = c + a);
3.a = (b + 1)* a;
4.All of the mentioned
Answer 41.stack
2.registers
3.heap
4.main memory
Answer 21.break
2.exit(0)
3.abort()
4. terminate
Answer 11.do-while
2.if-else
3.for
4. while
Answer 21.return
2.static
3.new
4.volatile
Answer 11.int
2.float
3.double
4.depends on the data type of the parameter
Answer 31.Exist only within that scope in which it is declared
2.Cease to exist after the block is exited
3.Exist only within that scope in which it is declared & exist after the block is exited
4.All of the mentioned
Answer 31.c = 1;
2.c = 2;
3.c = 3;
4.c = 4;
Answer 41.It is stored in CPU
2.It is stored in cache memory
3.It is stored in main memory
4.It is stored in secondary memory
Answer 11.Within conditional statements, if, else
2.Within while, do-while
3. Within a macro definition
4. None of the mentioned
Answer 41.static register a;
2. register static a;
3.Both static register a; and register static a;
4.We cannot use static and register together
Answer 41.int
2.long
3. float
4.all of the mentioned
Answer 41.for (i = n; i>0; i–)
2.for (i = n; i >= 0; i–)
3. for (i = n-1; i>0; i–)
4.for (i = n-1; i>-1; i–)
Answer 41.func1();
2. func2();
3. func3();
4.Cannot be predicted
Answer 11.break
2. return
3.exit
4.both break and return
Answer 21.break
2.continue
3.return
4.none of the mentioned
Answer 21.static a = 10; //static as
2.static int func (int); //parameter as static
3.static static int a; //a static variable prefixed with static
4.all of the mentioned
Answer 31.sizeof
2. –
3.++
4.all of the mentioned
Answer 41.Variables
2.Functions
3.Structures
4.None of the mentioned
Answer 41.variable
2.function
3.typedef
4.macros
Answer 41.int 1bhk(int);
2. int 1bhk(int a);
3.int 2bhk(int*, int []);
4. all of the mentioned
Answer 41. return-type function-name(argument type);
2.return-type function-name(argument type){}
3.return-type (argument type)function-name;
4.all of the mentioned
Answer 11.&&
2.>>=
3.?:
4.->
Answer 31.a %= 10;
2.a /= 10;
3.a |= 10;
4.None of the mentioned
Answer 41.if (if (a == 1)){}
2. if (func1 (a)){}
3.if (a){}
4.if ((char) a){}
Answer 11.Different precedence, same associativity
2.Different precedence, different associativity
3.Same precedence, different associativity
4.All of the mentioned
Answer 31.Same associativity, different precedence
2.Same associativity, same precedence
3.Different associativity, different precedence
4.All of the mentioned
Answer 41. % / * =
2. / * % =
3. = % * /
4. * % / =
Answer 11.5 = a = b = c = d;
2.a = b = c = d = 5;
3.a = b = 5 = c = d;
4.None of the mentioned
Answer 21.Reading the value into a register variable
2.Copy the value from a memory variable
3.Global declaration of register variable
4.All of the mentioned
Answer 41.()
2.sizeof
3.*
4.+
Answer 11.<=
2. <<
3.==
4.+=
Answer 41.e = (a * (b +(c /(d * f))));
2. e = ((a * b) + (c / (d * f)));
3.e = ((a * b) + ((c / d)* f));
4.Both e = ((a * b) + (c / (d * f))); and e = ((a * b) + ((c / d)* f));
Answer 41.register
2.static
3.auto
4.all of the mentioned
Answer 41.P and Q
2.Q and R
3.P and R
4.P, Q and R
Answer 2