MCQ 1511 MarkUsing which operator, the result of expression will be either true or false?✓ ComparisonB ArithmeticC IncrementD Non-conditionalAnswerCorrect option: A. ComparisonComparisonView full question & answer→
MCQ 1521 MarkWhat is the result of expression after applying comparison operator?✓ BooleanB CharC intD DoubleAnswerCorrect option: A. BooleanBooleanView full question & answer→
MCQ 1531 MarkFor which of the following type, its Unicode numeric values are used in comparison?A intB ByteC Double✓ CharAnswerCorrect option: D. CharCharView full question & answer→
MCQ 1541 MarkWhich type of values can comparison operators use to compare?A NumericalB Char type✓ Both a and bD None of theseAnswerCorrect option: C. Both a and bBoth a and bView full question & answer→
MCQ 1551 MarkWhich operator is used for ‘not equal’ in Java?A < >✓ !=C !D .AnswerCorrect option: B. !=!=View full question & answer→
MCQ 1561 MarkWhich Java statement is used to display variable A and variable B as not equal?A A==BB A<>BC A B✓ A!= BAnswerCorrect option: D. A!= BA!= BView full question & answer→
MCQ 1571 MarkWhich Java statement is used to display variable A and variable B as equal?✓ A == BB A;=BC A = BD A. BAnswerCorrect option: A. A == BA == BView full question & answer→
MCQ 1581 MarkWhich of the following are comparison operators (relational operators) in Java?A <, >B <, >C =, !✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 1591 MarkWhich operator is also known as comparison operator?✓ RelationalB LogicalC ArithmeticD UnaryAnswerCorrect option: A. RelationalRelationalView full question & answer→
MCQ 1601 MarkWhich of the following are standalone statements?A x++;B ++x;C — —x; and x— —;✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 1611 MarkIn how many terms of statement the increment and decrement operator is used, but the use of pre or post does not make any difference?✓ Single termB More than oneC Three termsD Two termsAnswerCorrect option: A. Single termSingle termView full question & answer→
MCQ 1621 MarkWhat will be the values of x and y after executing y = 4 + — — x; if value of x is 3?A 6, 2B 3, 6✓ 2, 6D 4, 4AnswerCorrect option: C. 2, 62, 6View full question & answer→
MCQ 1631 MarkWhat will be the values of x and y after executing y = 4 + x — —; if value of x is 3?✓ 2, 7B 6, 2C 4, 7D 4, 8AnswerCorrect option: A. 2, 72, 7View full question & answer→
MCQ 1641 MarkWhat will be the values of x and y after executing y = 4 + ++x; if value of x is 3?✓ 4, 8B 4, 7C 3, 7D 3, 4AnswerCorrect option: A. 4, 8 4, 8View full question & answer→
MCQ 1651 MarkWhat will be the values of x and y after executing y = 4 + x++; if value of x is 3?✓ 4, 7B 3, 7C 3, 4D 4, 8AnswerCorrect option: A. 4, 74, 7View full question & answer→
MCQ 1661 MarkWhat is it called when ++ or — — operator is used before variable name?✓ Pre-increment or Pre-decrementB Binary decrementC Post-increment or Post-decrementD None of theseAnswerCorrect option: A. Pre-increment or Pre-decrementPre-increment or Pre-decrementView full question & answer→
MCQ 1671 MarkIn which of the following situations, the old value of variable is used while evaluating the expression and thereafter the value of variable is incremented or decremented?✓ Post-increment or Post-decrementB Binary decrementC Pre-increment or Pre-decrementD None of theseAnswerCorrect option: A. Post-increment or Post-decrementPost-increment or Post-decrementView full question & answer→
MCQ 1681 MarkWhat is it called when _ _ operator is used after variable name?✓ Post-decrementB Post-incrementC Pre-decrementD Pre-incrementAnswerCorrect option: A. Post-decrementPost-decrementView full question & answer→
MCQ 1691 MarkWhat is it called when ++ operator is used after variable name?✓ Post-incrementB Pre-incrementC Pre-decrementD Post-decrementAnswerCorrect option: A. Post-incrementPost-incrementView full question & answer→
MCQ 1701 MarkOn which of the following type of variables, the increment and decrement operators can be used?A IntegerB Char✓ Both a and bD BooleanAnswerCorrect option: C. Both a and bBoth a and bView full question & answer→
MCQ 1711 MarkWhich of the following operator subtracts 1 from the variable?✓ _ _B — — —C —D ++AnswerCorrect option: A. _ __ _View full question & answer→
MCQ 1721 MarkWhich of the following operator adds 1 to a variable?✓ +++B ++C - -D +AnswerCorrect option: A. ++++++View full question & answer→
MCQ 1731 MarkWhich operator is known as Unary operator — —?✓ Decrement operatorB Increment operatorC Logical operatorD None of theseAnswerCorrect option: A. Decrement operatorDecrement operatorView full question & answer→
MCQ 1741 MarkInto which data type operand the values are promoted while evaluating an expression?✓ HigherB Always in positive numberC LowerD Always in negative numberAnswerCorrect option: A. HigherHigherView full question & answer→
MCQ 1751 MarkInto which data type will the result of System.out.println (“a/x=” +(a/x)) be; when a = 12.5 and x 4?✓ FloatB CharC IntD Not PossibleAnswerCorrect option: A. FloatFloatView full question & answer→
MCQ 1761 MarkWhat will be the result of System.out.println (“x +y=” +x +y); whenx6andy=4?✓ x + y=10B x + y=64C x + y=xyD x +y=x + yAnswerCorrect option: A. x + y=10x + y=10View full question & answer→
MCQ 1771 MarkWhat will be the result of System.out.println (“x + y =” + x + y); whenx6andy4?✓ x + y=64B x + y =10C x + y=xyD x + y=x + yAnswerCorrect option: A. x + y=64x + y=64View full question & answer→
MCQ 1781 MarkWhat is the result of a % b when a =12.5 and b=7.21?✓5.3B1C5D 5.3 And 1AnswerCorrect option: A. 5.35.3View full question & answer→
MCQ 1791 MarkWhat the result of a /b when a=12.5 and b=6?✓2B5C2.5D0.5AnswerCorrect option: A. 22View full question & answer→
MCQ 1801 MarkWhat the result of a %b when a=12.5 and b=6?✓0.5B2C5D2.5AnswerCorrect option: A. 0.50.5View full question & answer→
MCQ 1811 MarkWhat is the result of x / y when x=6 and y=4?A2B2✓1D-1AnswerCorrect option: C. 11View full question & answer→
MCQ 1821 MarkWhat is the result of x % y when x = —6 and y=4?A2✓-2C1D-1AnswerCorrect option: B. -2-2View full question & answer→
MCQ 1831 MarkWhat is the result of x % y when z = 6 and y = —4?✓2B-2C1D-1AnswerCorrect option: A. 22View full question & answer→
MCQ 1841 MarkWhich operator is used to concatenate argument and string in System.out.println0?✓ +B :C .D ++AnswerCorrect option: A. ++View full question & answer→
MCQ 1851 MarkWhich of the following method merely prints a message to the standard output device?ASystem.out.println2✓System.out.println0Cmain0DSystem.println0AnswerCorrect option: B. System.out.println0System.out.println0View full question & answer→
MCQ 1861 MarkWhich of the following are implicit type conversions?A Lower range data type value is converted into higher range data type.B When operator + is applied with one of the operand of type string, other operand is converted into type string.✓ Both a and bD None of theseAnswerCorrect option: C. Both a and bBoth a and bView full question & answer→
MCQ 1871 MarkInto which type is other operand automatically converted when operator + is applied with one of the operand of type String?✓ StringB LongC CharD intAnswerCorrect option: A. StringStringView full question & answer→
MCQ 1881 MarkWhich operator is used to concatenate a string?✓ +B .C $D ++AnswerCorrect option: A. ++View full question & answer→
MCQ 1891 MarkWhich of the following will be a remainder in 25.8 % 7?✓4.8B4C3D3.68AnswerCorrect option: A. 4.84.8View full question & answer→
MCQ 1901 MarkWhat is the integer quotient in response to 25.8 % 7?A3.68✓3C4D3.8AnswerCorrect option: B. 33View full question & answer→
MCQ 1911 MarkIn Java, what is the result when % operator is used with floating point data types?✓ Remainder after integer quotientB Integer quotientC Real quotientD None of theseAnswerCorrect option: A. Remainder after integer quotientRemainder after integer quotientView full question & answer→
MCQ 1921 MarkWith modulus operator %, what is the result j its first operand is negative? —✓ NegativeB ZeroC a or bD PositiveAnswerCorrect option: A. NegativeNegativeView full question & answer→
MCQ 1931 MarkWhat is known as conversion in which lower range data type is converted to higher range data type?✓ PromotionB DecrementC IncrementD DemotionAnswerCorrect option: A. PromotionPromotionView full question & answer→
MCQ 1951 MarkWhich number is a quotient after operation in a Modulus (%) operator?✓ IntegerB RealC Negative integerD None of theseAnswerCorrect option: A. IntegerIntegerView full question & answer→
MCQ 1961 MarkWhat does Modulus (%) operator state?✓ RemainderB QuotientC DivisorD DivisibleAnswerCorrect option: A. RemainderRemainderView full question & answer→
MCQ 1971 MarkWith char type of data, which number is considered as its value when it is used with an arithmetic operator?✓ UnicodeB ANSIC ASCIID EBCDICAnswerCorrect option: A. UnicodeUnicodeView full question & answer→
MCQ 1981 MarkWhich type of number is to be considered for the value of ‘char’ type as an arithmetic operator?A Integer numberB Real numberC Positive Integer number✓ Negative Integer numberAnswerCorrect option: D. Negative Integer numberNegative Integer numberView full question & answer→
MCQ 1991 MarkWith which values are Arithmetic operators used?A Byte, shortB int’ longC Float, double, char✓ All of theseAnswerCorrect option: D. All of theseAll of theseView full question & answer→
MCQ 2001 MarkWhich of the following operators are also used as Unary operator?✓$+$ and $—$B$*$ AndC$\%$DAll of theseAnswerCorrect option: A. $+$ and $—$$+$ and $—$View full question & answer→