Important Questions [22]
- Write a Difference Between Unary and Binary Operator.
- What Are the Various Types of Errors in Java ?
- What is meant by a package?
- Name the Operators Listed Below Are (I) < (Ii) + + (Iii) andand (Iv) ? :
- Write One Difference Between / and % Operator.
- Write a Java Expression for the Following : Ax5 + Bx3 + C
- State the difference between == operator and equals () method.
- Using Switch Statement, Write a Menu Driven Program for the Following :
- Write Down Java Expression For: "T" = Sqrt("A"^2 + "B"^2 + "C"^2)
- Rewrite the Following Using Ternary Operator: If (X%2 == O) System.Out.Print(“Even”); Else System.Out.Print(“Odd”);
- Write a Java Expression for the Following : Sqrt(3"X"+"X"^2)/"A+B"
- Rewrite the following using ternary operator : if (bill > 10000) discount = bill * 10.0 / 100; else discount = bill * 5.0 / 100;
- Write a Program in Java to Accept a String in Lower Case and Change the First Letter of Every Word to Upper Case. Display the New String. Sample Input: We Are in a Cyber World Sample Output: We a
- Write a Program to Input and Store Roll Numbers, Names and Marks in 3 Subjects of N Number Students in Five Single Dimensional Array and Display the Remark Based on Average Marks as Given Below :
- Name the Primitive Data Type in Java that is : a 64-bit Integer and is Used When You Need a Range of Values Wider than Those Provided by Int.
- Name the Primitive Data Type in Java that is : a Single 16-bit Unicode Character Whose Default Value is ‘\U0000’.
- Operators with higher precedence are evaluated before operators with relatively lower precedence. Arrange the operators given below in order of higher precedence to lower precedence. i. && ii. %
- Write the Java expression for (a + b)x.
- Evaluate the expression when the value of x = 4; x* = - - x + x + + + x
- The code obtained after compilation is known as ______.
- A Identify the type of operator and and:
- Evaluate the expression when x is 4: x + = x + + * + + x %2;
