JAVA 2016 B.A/B.Com/B.SC

1. What will be printed ?

public class c {

public static void main(string []args)

{

int i=1;

if(i)

System.out.println(i);

}}

 
 
 
 

2. Java Supports is /are :

 
 
 
 

3. No. of bytes needed to store a variable of data type double is :

 
 
 
 

4. In Java Program , main method is :

 
 
 
 

5. Object Oriented Programming Is  related to :

 
 
 
 

6. Active X documents technology is also called :

 
 
 
 

7. Elements of an array have same :

 
 
 
 

8. A java subclass can be defined using this keyword:

 
 
 
 

9. Server Side VB script is used for :

 
 
 
 

10. IIS(Internet Information Server  ) is basically a :

 
 
 
 

11. Which is /are java Token ?

 
 
 
 

12. What is the output of these lines?

m=m+n;

n=m-n;

m=m+n;

 

 
 
 
 

13. A Push Button this kind of apperance :

 
 
 
 

14. What is output of this program ?

String abc [];

abc =new String[3];

System.out.println(abc[1]);

 
 
 
 

15. This is not a primitive data type :

 
 
 
 

16. Is it true That a class is a  subclass of itself ?

 
 
 
 

17. The name of package having AWT classess and interfaces is :

 
 
 
 

18. Does a class inherit the constructors of its superclass ?

 
 
 
 

19. A private variable can be accessed by this only :

 
 
 
 

20. This Class is at Top Of AWT event Hierarchy

 
 
 
 

21. Active x scripting engine is basically a :

 
 
 
 

22. Which statement is invalid ?

String abc1=”xyz”;

String abc2=new string(“xyz”);

String abc3=new string();

 
 
 
 

23. In Java , null is a /an :

 
 
 
 

24. Every java statement  must have a :

 
 
 
 

25. This access modifier is used for encapsulation :

 
 
 
 

26. Which operator (s) acts/act on integer operands only :

 
 
 
 

27. String are always used using :

 
 
 
 

28. Active Server pages is a technology for :

 
 
 
 

29. This is not an Active X control

 
 
 
 

30. The Valid  Identifier is :

 
 
 
 

31. The Component(s) of AWT is /are :

 
 
 
 

32. This class extended by all other classes:

 
 
 
 

33. Java uses these stages for program execution :

 
 
 
 

34. Web Technology has no meaning without this :

 
 
 
 

35. This is not an Active X technology :

 
 
 
 

36. The Return type of constructor is :

 
 
 
 

37. Which statement does nothing ?

 
 
 
 

38. Java Identifier name must not have :

 
 
 
 

39. Active X controls can be created using :

 
 
 
 

40. Choose the correct statement related to this program :

public class a {

public static void main ( String []args)

{

int i;

System.out.println(i);

}}

 

 

 
 
 
 

41. “abc” is :

 
 
 
 

42. For panel, an applet is a :

 
 
 
 

43. What will this code print ?

public class print {

public static void main(String []args)

{

int i=0111;

System.out.println(i);

}}

 
 
 
 

44. The Correct Statement is :

 
 
 
 

45. An Active Document is one which can be opened in :

 
 
 
 

46. The range of value for data type  ‘byte’ is :

 
 
 
 

47. This kind of variable can not be modified :

 
 
 
 

48. full form of COM is :

 
 
 
 

49. Event Model of Programming contains :

 
 
 
 

50. What is the output of this code ?

public class abc{

public static void main(String []args)

{

int x=57,y=5,z=2;

System.out.println(x/y/z);

}

}

 
 
 
 

51. In COM, the role of Marshaling is

 
 
 
 

52. Active X controls are extension of :

 
 
 
 

53. Java language is :

 
 
 
 

54. Which is /are not java Keyword /Keywords?

 
 
 
 

55. Which is not wrong statement in java ?

 
 
 
 

56. Every variable must be declared with :

 
 
 
 

57. Which is a wrong statement ?

 
 
 
 

58. The full form of URL is :

 
 
 
 

59. A program may  have the number of class definitions equal to :

 
 
 
 

60. This scripting language can not be used for scripting activeX :

 
 
 
 

61. What is Output of these lines :

if(a>b)

system.out.println(“yes”);

system.out.println(“Sure”);

else

system.out.println(“No”);

 
 
 
 

62. Web Technology do not include this:

 
 
 
 

63. These are independents of any particular object of a class :

 
 
 
 

64. String is :

 
 
 
 

65. String class is mostly used to display:

 
 
 
 

66. Which Syntax is correct :

 
 
 
 

67. System.out.print implies that :

 
 
 
 

68. Primitive data type are also called:

 
 
 
 

69. The value of variable in a java program , can :

 
 
 
 

70. The Keyword refer to current object is :

 
 
 
 

71. If there is any error in a program, while java c is being used , the error may be of type :

 
 
 
 

72. ‘a’ is :

 
 
 
 

73. AWT means

 
 
 
 

74. Active X server framework uses ISAPI filter for :

 
 
 
 

75. A Static method can access:

 
 
 
 

76. Java language is :

 
 
 
 

77. Which is a wrong statement ?

 
 
 
 

78. This is valid method declaration :

 
 
 
 

79. Which statement is wrong ?

 
 
 
 

80. Java Compiler generates:

 
 
 
 

81. An Object having a sequence of character is a :

 
 
 
 

82. What will  these statement print ?

int i =10;

system.out.print(i++ + ++i);

 
 
 
 

83. Subclass is also called as :

 
 
 
 

84. Package is an :

 
 
 
 

85. The Subclass of window are :

 
 
 
 

86. Runtime is also called :

 
 
 
 

87. The statement

System.out.println((double)15/4);

prints:

 
 
 
 

88. Which method neither takes a parameter nor returns any value ?

 
 
 
 

89. variable must be declared :

 
 
 
 

90. What is output for this code ?

public class test{

public static void main(String []args)

{

int i=10;

{

int i=20;

System.out.println(“i”);

}}}

 
 
 
 

91. If i=1 and i<=10, what shuld be while loop to print ‘a’ 10 times ?

 
 
 
 

92. Which  statement is incorrect about abstract classes ?

 
 
 
 

93. An Identifier  can not start with :

 
 
 
 

Question 1 of 93

Leave a Reply

Your email address will not be published. Required fields are marked *