JAVA
1. Which of the following keyword is not an access specifier?
Void
2. Which of the following key word is not accessible to a subclass?
private
Which of the following methods extracts specified number of characters from a string?
substr
3. Which of the following methods does not accepts any arguments.
to lower case
4. Which of the following is not a valid method of a string class?
round
5. Which of the following class contains method for basic numerical operations?
math
6. Which of the following is not a primitive data type in Java
void
7. A class that inherits another class is called.
base class
8. A class that inherited from another class is called
derived class
9. keyword is used for inheritance.
extends
10. members of the class can inherit to its child class.
protected
11. Normally all instance variables are given the qualifier .
Public
12. The oop concept that allows you to derive new classes from existing classes is called .
inheritance
13. A string is written within .String declaration is terminated with.
double quotes
14. String can be concatenated by using operator.
semicolon
15. Which of the following method is used to join two strings?
+
16. What is the range of ASCII code from a to z.
concat
17. Which of the following method can measure the length of a string?
97 to 122
18. Which of the following function can join two strings?
length
19. What is the use of charAt()?
concat
20. The start index in the charAt ( ) function is
a) To return the character at the specified index
21. The default package which is included in java program is______
java lang
22. Instance of a class is called as .
Object
23. Collection of objects are known as .
Class
24. Wrapping of data and member function into single unit is known as _______
Encapsulation
25. OOPs follows approach.
bottom up
26. Java is a type of language.
oop
27. Creation of new from existing class is known as
.
Inheritancce
28. is not an access specifier.
final
29. Which access specifier is used to make a class member access anywhere?
Public
30. If no access specifier is given, then element comes under which specifier.
default
31. Code reusability is possible due to .
inheritance
32. Java doesn’t support inheritance.
multiple
33. is used as a java interpreter.
Java
34. Java uses to represent a character.
Unicode
35. The java byte code has the extension
.
class
36. The set of instruction in a programming language is called .
programs
37. Java is originally known as .
oak
38. Java programming was designed by .
a) Sun Microsystem
39. Who initiated the java language?
a) Jame Gosling
40. Java source code is compiled into .
byte code
41. Which of the tool is used to compile java code?
javac
42. is a program development environment for writing java applets and applications.
IDE
43. Java complier is named as .
javac
44. provides a way to interact with the different components at java through visual graphical
elements (picture, icons, , etc).
netbeans
45. Which window is used to design a form_______
palette
46. Which window contains the swing controls components?
palette
47. What is the most suitable control to accept multiline text?
JTextArea
48. What will be the output of the followingcommand learning.concat(“java”)
learningjava
49. Name any two commonly used methods of JTextField .
a) getText() b) setText()
50. What does the getPassword() on a password field returns?
string
51. The loop that never ends is called as .
Infinite loop
52. Is java case sensitive?
yes
53. JVM is a/an .
interpreter
54.Is java a platform indepedent language
yes
55.Which is the following is smallest interger data type?
byte
56.Which at the following is not a primitive data type.
enum
57.What is size of int data type in java
4 byte
58.Which of these are selection statement in java.
if
59.Java is a high level language.
True
60.GUI means
a) Graphical user interface
61.The default name of a swing button is
Jbutton1
62._______control provides basic text editing facility.
JTextField
63. ______window is used to design a form
Design
64.Java is a/an
b) Object oriented programming language
65. control is used to accept multiline text.
Text area
66.__________ part contains all the components offered by the swing API?
palette
67. properly would you set the setting the password character as $?
68. Encaapsulation is a process of .
c) Binding data and function in a single unit
HTML
1) Which language is used for developing webpage ?
HTML
2) HTML is a language.
Markup
3) Hypertext means .
a) link various webpages
4) In HTML markup means .
b) Highlight the text
5) Which symbol is used to represent a tag ?
<>
6) The web page which has changing content is called web page.
Dynamic
7) The web page which has fixed content is called as .
Static
8) HTML tags consist of
Symbols & keyword
9) Which of the following is the text editor used for HTML code.
c) Note pad
10) Head section of HTML code contains
Title
11) Which of the following is a un-paired tag ?
<BR>
12) Which tag is used to make text bold ?
<B>
13) Which heading tag represents the Heading with maximum size ?
< h1>
14) Which tag is used break the line ?
<Br>
15) Which tag is used as section separation ?
<hr>
16) To show a paragraph at middle position of the webpage, which property is used
Align
17) Which property of <Body> tag use to display image at the background of webpage ?
Background
18) For paragraph, which tag is used
< p>
19) ‘Align’ property of paragraph, has following values
a)Left b) Right c) Center
20) Comment is used for .
Documentation
21) For text format of the webpage which tag is used
<font>
22) Which attribute is used for < Body> tag for showing image at background ?
background
23) Which tag is used to represent row in a table ?
<tr>
24) For showing heading for each column in a table, which tag is used
<th>
25) To merge two columns which attribute is used
colspan
26) Which tag is used for ordered list
<ol>
27) Which tag is used to represent unordered list?
<UL>
28) Which tag is used for a dropdown list
<select>
29) Which tag is used to represent items in the list
< UL >
30) Which tag is used to input address of user :
Check box