Skip to content
/12

Exam

Give your exam and add value to join our company.

1 / 12

Find the speed of the boat in still water, if a boat covers a certain distance upstream in 2 hours, while it comes back in 1`1/2` hours. If the speed of the stream be 3 kmph.

2 / 12

public void test(int x) {     int odd = 1;     if(odd) /* Line 4 */    {        System.out.println("odd");     }     else     {        System.out.println("even");     } }

3 / 12

Select the error in the given program :

static Void Main(String[] args)

 {

         constint m =100;

         int n =10;

         constint k = n /5*100* n ;

         Console.WriteLine(* k);

         Console.ReadLine();

  }

4 / 12

Which of these method returns a smallest whole number greater than or equal to variable X?

5 / 12

Devesh can cover a certain distance in 1 hour and 24 minutes by covering two-thirds of the distance at 6 km/hour and the rest at 7 km/hr. Calculate the total distance.

6 / 12

What is the minimum value of char type. Select the one correct answer.

7 / 12

What will be the output of the given code snippet?

class Program

{

staticvoid Main(string[] args)

     {

          double x =3.14;

          int y =(int) Math.Abs(x);

Console.WriteLine(y);

     }

}

8 / 12

What happens when the following program is compiled and executed with the command - java test. Select the one correct answer.

class test {   public static void main(String args[]) {      if(args.length > 0)         System.out.println(args.length);   }}

9 / 12

Choose the output for the following set of code.

staticvoid Main(string[] args)

{

     char c = 'g'

     string s = c.ToString();

     string s1 ="I am a human bein"+ c;

     Console.WriteLine(s1);

     Console.ReadLine();

}

10 / 12

The rate at which a sum becomes four times of itself in 25 years at S.I.,will be:

11 / 12

What happens when the following program is compiled and run. Select the one correct answer.

public class example {   int i[] = {0};   public static void main(String args[]) {      int i[] = {1};      change_i(i);      System.out.println(i[0]);   }   public static void change_i(int i[]) {      int j[] = {2};      i = j;   }}

12 / 12

The initial value of an instance variable of type String that is not explicitly initialized in the program is --. Select the one correct answer

Your score is

0%

Exit