Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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?

  1.     class Output {
  2.         public static void main(String args[])
  3.         {   
  4.              int a = 1;
  5.              int b = 2;
  6.              int c;
  7.              int d;
  8.              c = ++b;
  9.              d = a++;
  10.        c++;
  11.        b++;
  12.        ++a;
  13.        System.out.println(a + " " + b + " " + c);
  14.      }  

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?

  1.     class Output {
  2.         public static void main(String args[])
  3.         {   
  4.              int x, y = 1;
  5.              x = 10;
  6.              if (x != 10 && x / 0 == 0)
  7.                  System.out.println(y);
  8.              else
  9.                  System.out.println(++y);
  10.       }
  11.     }

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?



LATEST TUTORIALS
APPROVED BY CLIENTS