Convert the following decimal numbers to IEEE single-precision format. Give the results as eight hexadecimal digits.
a. 10
b. 5/6
c. -10/15
d. 0.75
Which of the following is not keyword in java ?
Select one:
a. import
b. package
c. volatile
d. null
What is the output of this program?
Select one:
a. 2 3 4
b. 3 2 4
c. 3 4 4
d. 3 2 3
What is the output of the following program
class TestApp {
public static void main(String[] args) {
for (int index = 0; 1; index++) {
System.out.println("Welcome");
break;
}
}
}
Select one:
A. Welcome
B. Type mismatch error
C. Run infinite-times
D. Welcome Welcome
Create an Address class, which contains street#, house#, city and code (all of type char*).
Create another class Person that contains an address of type Address. Give appropriate get
and set functions for both classes. Test class person in main.
Create a counter class, overload ++ operator for counter post and pre increment, use the
object of counter class as a loop counter for printing a table in main function.
which of the following is the reference data type ?
Select one:
a. array
b. int
c. short
d. double
What is the output of this program?
Select one:
a. 1
b. Runtime error owing to division by zero in if condition.
c. 2
d. Unpredictable behaviour of program.
What is the result of the following Java coding snippet?
class TestApp {
public static void main() {
int odd = 1;
if (odd) {
System.out.println("odd");
} else {
System.out.println("even");
}
}
}
Select one:
A. odd
B. Type mismatch error
C. Run-time exception
D. even
Write a C++ program that creates a 2D array having 4 rows and 4 columns. Then, ask the user to input values for the 2D array or matrix. After that, the program should calculate transpose of a matrix. Transpose is basically calculated by changing rows of matrix into columns and columns into rows. After calculating, display the final matrix?