Sei sulla pagina 1di 6

JAVA

1. An applet is a special kind of Java program that is designed to be transmitted over the Internet and
automatically executed by a Java-compatible web browser.

2. Bytecode is a highly optimized set of instructions designed to be executed by the Java run-time system,
which is called the Java Virtual Machine (JVM).

3. Java supports multithreaded programming, which allows you to write programs that do many things
simultaneously.

4. The two paradigms that govern how a program is constructed are process-oriented model and object-
oriented programming.

5. Encapsulation is the mechanism that binds together code and the data it manipulates, and keeps both safe
from outside interference and misuse.

6. Inheritance is the process by which one object acquires the properties of another object.

7. Polymorphism (from Greek, meaning “many forms”) is a feature that allows one interface to be used for a
general class of actions.

8. The Java compiler requires that a source file use the .java filename extension.

9. Java supports three styles of comments.

10. The keyword static allows main( ) to be called without having to instantiate a particular instance of the
class.

11. Java allows two or more statements to be grouped into blocks of code, also called code blocks.

12. Identifiers are used to name things, such as classes, variables, and methods.

13. A constant value in Java is created by using a literal representation of it.

14. There are 50 keywords currently defined in the Java language.

15. The keywords const and goto are reserved but not used.

16. Java defines eight primitive types of data: byte, short, int, long, char, float, double, and boolean.

17. In Java char is a 16-bit type.

18. There are only two logical values that a boolean value can have, true and false.

19. Octal values are denoted in Java by a leading zero.

20. Hexadecimal constant values are denoted in Java with a leading zero-x, (0x or 0X).

21. Floating-point literals in Java default to double precision.

22. Java includes a special ternary (three-way) operator that can replace certain types of if-then-else
statements.

B.BHUVANESWARAN / AP (SS) / CSE / REC - 1


23. An array is a group of like-typed variables that are referred to by a common name.

24. The elements in the array allocated by new will automatically be initialized to zero (for numeric
types), false (for boolean), or null (for reference types, which are described in a later chapter).

25. In Java, multidimensional arrays are actually arrays of arrays.

26. The modulus operator, %, returns the remainder of a division operation.

27. Java’s program control statements can be put into the following categories: selection, iteration, and jump.

28. Selection statements allow your program to choose different paths of execution based upon the outcome of
an expression or the state of a variable.

29. Iteration statements enable program execution to repeat one or more statements (that is, iteration statements
form loops).

30. Jump statements allow your program to execute in a nonlinear fashion.

31. The switch statement is Java’s multiway branch statement.

32. Beginning with JDK 7, switch expression can also be of type String.

33. Java’s iteration statements are for, while, and do-while.

34. The do-while loop always executes its body at least once.

35. Beginning with JDK 5, a second form of for was defined that implements a “for-each” style loop.

36. When a break statement is encountered inside a loop, the loop is terminated and program control resumes
at the next statement following the loop.

37. A continue statement causes control to be transferred directly to the conditional expression that controls the
loop.

38. The return statement is used to explicitly return from a method.

39. A class is a template for an object, and an object is an instance of a class.

40. The data, or variables, defined within a class are called instance variables.

41. The methods and variables defined within a class are called members of the class.

42. The new operator dynamically allocates memory for an object.

43. If the method does not return a value, its return type must be void.

44. A constructor initializes an object immediately upon creation.

45. When you do not explicitly define a constructor for a class, then Java creates a default constructor for the
class.

B.BHUVANESWARAN / AP (SS) / CSE / REC - 2


46. The default constructor automatically initializes all instance variables to zero.

47. Java handles deallocation for automatically; the technique that accomplishes this is called garbage
collection.

48. Sometimes you will want to pass information into a program when you run it. This is accomplished by
passing command-line arguments to main( ).

49. When an overloaded method is invoked, Java uses the type and/or number of arguments as its guide to
determine which version of the overloaded method to actually call.

50. A method that calls itself is said to be recursive.

B.BHUVANESWARAN / AP (SS) / CSE / REC - 3


HTML

1. HTML stand for __________ .

2. Who is making the Web standards?

3. ________ is the standard for transferring encrypted data on the web.

4. The acronym TCP/IP stands for ________.

5. An ________ is a numerical value that uniquely identifies the server on the Internet.

6. Browsers often ________ web pages for quick reloading.

7. Create HTML5 documents by typing HTML5 markup text in a text editor (such as Notepad, TextEdit, vi,
emacs) and saving it with the .html or .htm filename extension.

8. The html element encloses the head section (represented by the head element) and the body section
(represented by the body element).

9. HTML code for adding a background color __________ .

10. Many start tags have attributes that provide additional information about an element, which browsers use to
determine how to process the element.

11. Links are created using the a (anchor) element.

12. Anchors can link to e-mail addresses using a mailto: URL.

13. The most popular image formats used by web developers today are PNG (Portable Network Graphics)and
JPEG (Joint Photographic Experts Group).

14. If a browser cannot render an image, the browser displays the alt attribute’s value.

15. Some HTML5 elements (called void elements) contain only attributes and do not mark up text (i.e., text is
not placed between a start and an end tag).

16. The correct element for inserting a line break __________ .

17. The ________ element inserts a horizontal rule.

18. A superscript is marked up using the ________ element, and a subscript is marked up using the ________
element.

19. The least significant heading element is ________ and the most significant heading element is ________.

20. Element ________ marks up an unordered list.

21. Element ________ marks up a paragraph.

22. The ________ element marks up a table row.

23. The caption element specifies a table’s title.

B.BHUVANESWARAN / AP (SS) / CSE / REC - 4


24. A table has three distinct sections—head, body and foot.

25. ________ are usually used as masking characters in a password box.

26. HTML5 comments begin with <!-- and end with ________.

27. In HTML5, attribute values can be enclosed in ________.

28. ________ is the character entity reference for an ampersand.

29. Element ________ can be used to make text bold.

30. HTML5 provides a mechanism, called a form, for collecting data from a user.

31. The method = "get", appends the form data directly to the end of the URL of the script, where it’s visible in
the browser’s Address field.

32. The action attribute in the form element specifies the URL of a script on the web server that will be invoked
to process the form’s data.

33. The input element’s size attribute specifies the number of characters visible in the text field.

34. The input element’s attribute maxlength limits the number of characters input into the text field.

35. The reset input element allows a user to reset all form elements to their default values.

36. The textarea element inserts a multiline text area into the form.

37. The HTML for making a checkbox __________ .

38. The HTML for making a drop-down list __________ .

39. The HTML for inserting an image __________ .

40. The color input type enables the user to enter a color. At the time of this writing, most browsers render
the color input type as a text field in which the user can enter a ________.

41. The ________ attribute allows you to place temporary text in a text field.

42. If you want to bypass validation, you can add the formnovalidate attribute to input type ________.

43. The ________ attribute forces the user to enter a value before submitting the form.

44. The ________ control is typically displayed for the number input type and includes only the valid numbers.

45. The _____ input type enables the user to enter an hour, minute, second and fraction of second.

46. The ________ attribute—used in a single input element on a form—automatically highlights the input
element and, if appropriate, places the cursor in the text field after the browser loads and renders the page.

47. The new HTML 5 input types are ________ on the client side.

B.BHUVANESWARAN / AP (SS) / CSE / REC - 5


48. The two most common HTTP request types are ________ and ________.

49. HTML documents normally contain ________, which, when clicked, load a specified web document.

50. The ________ was the predecessor to the Internet.

B.BHUVANESWARAN / AP (SS) / CSE / REC - 6

Potrebbero piacerti anche