View Count: 0
Duration: 64 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 41 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 58 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 39 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 32 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 17 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 33 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 65 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 50 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 37 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 25
1. Which of these selection statements test only for equality? 
Options:
  1. if
  2. switch
  3. if & switch
  4. None of the mentioned
View Answer/Explanation:
b
Explanation:

Question No: 2 of 25
2. Which of these are selection statements in Java? 
Options:
  1. if()
  2. for()
  3. continue
  4. break
View Answer/Explanation:
a
Explanation:

Question No: 3 of 25
3. Which of the following loops will execute the body of loop even when condition controlling the loop is initially false? 
Options:
  1. do-while
  2. while
  3. for
  4. None of the mentioned
View Answer/Explanation:
a
Explanation:

Question No: 4 of 25
4. Which of these jump statements can skip processing remainder of code in its body for a particular iteration? 
Options:
  1. break
  2. return
  3. exit
  4. continue
View Answer/Explanation:
d
Explanation:

Question No: 5 of 25
5. Which of these statement is correct? 
Options:
  1. switch statement is more efficient than a set of nested ifs.
  2. two case constants in the same switch can have identical values.
  3. switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression.
  4. it is possible to create a nested switch statements.
View Answer/Explanation:
b
Explanation:

Question No: 6 of 25
6. What is the output of this program?

class selection_statements 
{
public static void main(String args[])
{
int var1 = 5; 
int var2 = 6;
if ((var2 = 1) == var1)
 System.out.print(var2);
 else 
 System.out.print(++var2);
 } 
 } 
Options:
  1. 1
  2. 2
  3. 3
  4. 4
View Answer/Explanation:
b
Explanation:

Question No: 7 of 25
7.What is the output of this program?

class comma_operator 
{
public static void main(String args[]) 
{    
int sum = 0;
for (int i = 0, j = 0; i < 5 & j < 5; ++i, j = i + 1)
sum += i;
System.out.println(sum);
} 
} 
Options:
  1. 5
  2. 6
  3. 14
  4. compilation error
View Answer/Explanation:
b
Explanation:

Question No: 8 of 25
8. What is the output of this program?

 class jump_statments 
{
public static void main(String args[]) 
{        
int x = 2;
int y = 0;
for ( ; y < 10; ++y) 
{
if (y % x == 0) 
continue;  
else if (y == 8)
break;
else
System.out.print(y + " ");
}
} 
} 
Options:
  1. 1 3 5 7
  2. 2 4 6 8
  3. 1 3 5 7 9
  4. 1 2 3 4 5 6 7 8 9
View Answer/Explanation:
c
Explanation:

Question No: 9 of 25
9. What is the output of this program?

class Output 
{
public static void main(String args[]) 
{    
int x, y = 1;
x = 10;
if (x != 10 && x / 0 == 0)
System.out.println(y);
else
System.out.println(++y);
} 
} 
Options:
  1. 1
  2. 2
  3. Runtime error owing to division by zero in if condition.
  4. Unpredictable behavior of program.
View Answer/Explanation:
b
Explanation:

Question No: 10 of 25
10. What is the output of this program?

  class Output
  {
  public static void main(String args[]) 
  {    
  int a = 5;
  int b = 10;
  first:
  {
  second: 
  {
 third: 
 { 
if (a ==  b >> 1)
break second;
}
System.out.println(a);
}
System.out.println(b);
}
} 
} 
Options:
  1. 5 10
  2. 10 5
  3. 5
  4. 10
View Answer/Explanation:
d
Explanation:

  1