PROGRAMMING IN JAVA WEEK 1 QUIZ ASSIGNMENT NPTEL JAN 2022 .

 


       








 1) Which of the following is not a language processor?

 solution) d) Fortran


2) Which of the following is not a valid comment?

solution) c) /*comment


3) Consider the following program.



  




What will be the output of the program if it is executed?

solution) a) 5


4)Which of the following can be used as a variable name in java?

solution) d) calloc


5) Consider the following program.









What will be the output of the program if it is executed?

solution) a) 4


6) 


solution) c) ""+nptel[1]+nptel[nptel.length -1]


7) What is the output of this program?

solution) c) 42


8) Which of the following is used to find and fix bugs in the java programs?
solution) d) JDB


9) Which of the following is/are primitive data type(s) in java?
solution) a) int and d) double


10) When you compile a program written in the java programming language, the compiler converts the human-readable source file into platform-independent code that a java virtual machine can understand.What is this platform-independent code called?
solution) b) bytecode







Post a Comment

0 Comments