6. What is the output of following programme

/*
public class Precedence
{
public static void main(String[ ] args)
{
System.out.println(12+3*2-4/2);
}
}*/
*
0/2
13
16

14
All the above
None of the above
Correct answer
None of the above

7. The rules of Java programming language constitutes its
*
2/2
objects
logic
format
syntax


8. What is the output of the following code;

public class empName{
public static void main(String[ ] args){
int dob = 1998;
int Cyear = 2021;
int age = Cyear - dob;
System.out.println(age);
}
}
*
0/2
23

-23
error
2021
Correct answer
error

9. What is the output of the following code;

public class empName{
public static void main(String[ ] args){
String class = "NH1";
int Level = 100;
String Course = "CSC 417";
System.out.println(Course);
}
}
*
0/2
CSC 417

NH1
100
error
Correct answer
error

The statement below is referred to as;
Scanner input = new Scanner(System.in)
*
0/2
object creation
object instantiation

object initialisation
input creation
Correct answer
object creation

10. In Java, a single line comment starts with which characters?

*
0/2
//

/*

#

'''
Correct answer
//