Important Questions [15]
- Write the Return Data Type of the Following Function: Startswith( )
- Write the Return Data Type of the Following Function: Random( )
- If the Value of Basic=1500, What Will Be the Value of Tax After the Following Statement is Executed? Tax = Basic > 1200 ? 200 : 100;
- What is the Value of Xl If X=5 ? X1 = + +X – X+ + + –X
- What is the type of casting shown by the following example: char c = (char) 120;
- Evaluate the value of n. if value of p = 5, q = 19 int n = (q – p) > (p – q) ? (q – p) : (p – q)
- Arrange the Following Primitive-data Types in an Ascending Order of Their Size: (I) Char (Ii) Byte (Iii) Double (Iv) Int
- What is the value of y after evaluating the expression given below? y+= ++y + y-- + --y; when int y=8;
- What Are the Values of a and B After the Following Function is Executed, If the Values Passed Are 30 and 50:
- State the data type and value of y after the following is executed: char x = 7; y = Character.isLetter(x);
- Which of the following is an escape sequence character in Java?
- If (a>bandandb>c) then largest number is ______.
- The number of bits occupied by the value 'a' is ______.
- Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non primitive datatypes like Scanner class are a
- Int x = (int) 32.8; is an example of ______ typecasting.
