SAMPLE QUESTIONS – WEB DEVELOPMENT
Fill in the blanks:
1. A class can have _________ or ___________ access.
2. All classes implicitly inherit from __________ class.
Write Short Answers:
1. What is the difference between boolean and Boolean data types?
2. What is a factory method?
3. Write HTML code to create a Text Box.
4. What is the use of href attribute in <a> tag?
Program / Code Snippets:
1. What is the output of the following code snippets?
double x = 100.5, y = -20, res;
res = x % y;
System.out.println(“res = ” + res);
2. What is the output of the following code snippets?
char ch1 = ‘\u0044′, ch2 = ‘\105′;
System.out.println(“ch1: ” + ch1 + ” ch2: ” + ch2 );