1. Which of the following is a valid integer constant?





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 02 Jun 2017 01.02 am
    - 810 is the only one without decimal point.
Show Similar Question And Answers
QA->Which of the following is not a valid version of MS Office ?....
QA->Which of the following are valid minimum and maximum zoom size in MS Word ?....
QA->Which of the following is not a valid data type in Excel?....
QA->For a body moving with constant speed in a horizontal circle; what remains constant?....
QA->For a body moving with constant speed in a horizontal circle, what remains constant?....
MCQ->Consider the following in C An arithmetic operation between integer and an integer gives integer as the result.An arithmetic operation between a real and a real constant gives real constant as the result.An arithmetic operation between an integer constant and a real constant is not valid. Which of the above are correct?....
MCQ->Consider the following rules about integer constant in C An integer constant must have at least one digit.An integer constant must not have a decimal point.An integer constant may be positive or negative.The default sign is positive.A maximum of one comma or blank is allowed. Which of the above are correct?....
MCQ->Consider the following rules in Fortran A signed or unsigned real variable name or a real constant is a real expression.Two real expressions connected by an arithmetic operator is a real expression.A real variable or constant exponential by an integer constant or integer variable is not valid Which of the above are correct?....
MCQ->What will be the output of the program? public class WrapTest { public static void main(String [] args) { int result = 0; short s = 42; Long x = new Long("42"); Long y = new Long(42); Short z = new Short("42"); Short x2 = new Short(s); Integer y2 = new Integer("42"); Integer z2 = new Integer(42); if (x == y) / Line 13 / result = 1; if (x.equals(y) ) / Line 15 / result = result + 10; if (x.equals(z) ) / Line 17 / result = result + 100; if (x.equals(x2) ) / Line 19 / result = result + 1000; if (x.equals(z2) ) / Line 21 / result = result + 10000; System.out.println("result = " + result); } }....
MCQ->Consider the following C program int ram float alpha, gamma
ram = 6400
alpha = 0.562
gamma = alpha ram + 1 Now consider the following statements about this program ram is an integer variablealpha, gamma are real variables, + are arithmetic operators0.562 may be an integer constant or real constant Which of the above are correct?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution