Вы находитесь на странице: 1из 24

Model Question Paper Subject Code: MI0041 Subject Name: Java and Web Design Credits: 4

Part A (One mark questions)

Marks: 140

1. The _______ is an element of the Web page that provides the information about the type of language used to write the content on the Web page. A. Doc type B. Head C. Body D. HTML element

2. The _______ is a component of the Web browser that displays the content you had requested, after obtaining it from the respective Web server. A. Rendering engine B. Browser engine C. Display backend D. JavaScript interpreter

3. _______ is a feature of Web browser present at the bottom of the browser window to indicate the URL of the Web page currently being loaded into the browser window. A. Security indicator

B. Menu bar C. Status bar D. Address field

4. The _______ attribute specifies the address or URL of a Website to which the text or image is linked. A. <a> B. src C. <img> D. href

5. The _______ is a tag in HTML used to make the text appear in italic on the Web page. A. <em> B. <u> C. <p> D. <B>

6. The _______ is a Web development tool that is developed by Microsoft. A. Notepad B. Dreamweaver C. FrontPage D. HTML+draft

7. The _______ tag is used to create column heading in a table. A. <tr> B. <th> C. <td> D. <table>

8. The _______ tag is used to define a list. A. <ul> B. <ol> C. <caption> D. <li>

9. The _______ is one of the input element used in a Web page form to take a single line of text as input that can be viewed. A. Password field B. Text field C. Checkbox D. Radio button

10. In the basic syntax of CSS, _______ represents the HTML tag for which a style need to be applied. A. Property B. Value C. Selector D. #FF0000

11. The _______ is a type of positioning where no other elements can overlap on the space that is defined. A. Relative positioning B. Absolute positioning C. Position D. Top

12. The _______ is used to group HTML elements. A. Id selector B. Position attribute C. <div> tag D. Margin attribute

13. The _______ is an attribute used to align text from the margin of the Web page. A. Text align B. Text decoration C. Text transform D. Text indent

14. Expand HTML. A. High Text Markup Language B. Hyper Text Markup Language C. Hyper Text Machine Language D. Hyper Text Machine Link

15. The ______________ event handler is triggered, when the area or object receives focus. A.onClick B. OnLoad C. onFocus D. onSelect

16. Argument is passed to the __________, to give necessary information to process the information. A. <script> B. Apache C. Function D. </script> 17. The JavaScript code within the ______________ will contain the action that will be taken place when a particular condition is satisfied by the function. A. Parenthesis B. Square Bracket C. Inverted commas D. Flower braces 18. The __________ refers to as an action that is performed by the user to initiate an action. A. Event B. JavaScript C. MATLAB D. Apache

19. The vbscript offers functionality that is similar to __________ A. MySQL B. POP3 C. JavaScript

D. CGI

20. The______________is used to throw an exception explicitly. a. Try statement b. Multiple throws c. Throw statement d. Catch statement

21. Expand ODC. a. Oracle Database Connection b. Open Database Connection c. Open Database Communication d. Open Database Computing

22. Perl was developed on the __________ platform. a. IMAP b. Solaris c. UNIX d. Windows

23. Expand PERL. a. Preprocessor Extraction Report Language b. Processing Extraction Report Language c. Processor Extraction Report Language d. Practical Extraction Report Language

24. Apache is an example of ____________. a. Web Server b. Operating system c. Database d. Web page

25. Identify the person who has coined the term LAMP. a. Michael Kunze b. Michael Widenius c. Tobias Ratschiller's d. Peter Kuppelwieser 26. Identify the operating system used in SAMP. a. Python b. Windows c. Linux d. Solaris 27. Identify the search engine which crawls through the Web, matches the files it has found with the search queries, and returns the results from the database. a. Archie b. Gopher c. Wandex d. WebCrawler 28. Listing of output in a particular order is known as _________. a. sponsored link b. Search Engine Optimisation c. page ranking d. Universal Search 29. The spiders are simple programs that scan the Web pages to create a _________. a. HTML b. list c. URL d. algorithm

30. Complex queries are built using _________ that help us to refine the search. a. Human powered directories b. Hybrid or mixed search engines c. Boolean operators d. Keywords

31. The _______helps us to insert HTML elements and structures using toolbars, templates and keyboard shortcuts. a. Text editors b. WYSIWYG HTML Editors c. Amaya d. Adobe photoshop

32. Which of the following is a multimedia graphics program that is used to create interactive Web pages, videos and animations? a. WYSIWYG HTML Editors b. Firebug browser c. Adobe Flash d. Adobe 33. Expand WebDAV. a. Web-based Digital Authoring and Versioning. b. Web-based Distributed Authoring and Versioning. c. Windows Distributed Authoring and Versioning. d. Web-based Distributed Authentication and Verification. 34. The animations in ___________ are created using standard animation techniques that creates the illusion of _____________. a. Flash, stability b. Photoshop, stability c. Photoshop, movement d. Flash, movement

35. The______________ consists of a collection of comments, which include the program name, the author and some other details.

a. interface statement b. import statement c. package statement d. section for documentation 36. The __________ statement is useful when we want to execute just some of the statements in a loop. a. break b. continue c. return d. switch 37. Identify the Java data type that is used for testing a specific condition during the execution of the program. a. Boolean b. Character c. Integer d. Floating-point 38. Identify the inner class which is defined inside a method, but without a name? a. Static inner class b. Member class c. Anonymous class d. Local class 39. If we use ___________, we can easily manage the information about the objects. a. Inheritance b. Interface c. Local class d. Parameters 40. In Java, ______________ refers to the capacity of explaining a situation where one name may become the reference to several methods but with different parameters in each method. a. Class b. Data hiding c. Message communication d. Polymorphism

Part B (Two mark questions) 41. The _______ and _______ are examples of Web browser. A. WYSIWYG, Internet Explorer B. Dogpile, Firefox C. Internet Explorer, Firefox D. Firefox, WYSIWYG

42. Identify True & False statement/s from the following 1. A Web page is a single HTTP text file consisting of graphics and various additional features to make the Web page user friendly. 2. Web pages are combined and linked together logically to form Websites. A. 1F, 2T B. 1T, 2F C. 1T, 2T D. 1F, 2F

43. State which of the following statements is True or False. 1. HTML is a programming language for Internet. 2. HTML is one such language which is used to insert and format text, and images on the Web page. A. 1T, 2F B. 1F, 2T C. 1T, 2T

D. 1F, 2F

44. Which of the following are the basic aspects that have to be kept in mind while designing a Web page? 1. Image & Graphics 2. Web development tool 3. Text width 4. Notepad A) 1 & 2 B) 2 & 3 C) 3 & 4 D) 1 & 3

45. The size of the frames can be defined by using the attribute _______ and _______ A. "rows", "height" B. "rows", "cols" C. "width", "height" D. "cols", "width"

46. Which of the following specifies the correct way of aligning the text inside a cell? 1. valign="left" 2. align="top" 3. valign="bottom" 4. align="right"

A. 3 and 4 B. 1 and 2 C. 1 and 3 D. 2 and 3

47. State which of the following statements is True or False. 1. Using the class selector we can specify a particular style for any HTML element. 2. We can choose any name of our choice for a class. A. 1T, 2F B. 1T, 2T C. 1F, 2F D. 1F, 2T

48. State whether the following statements are True or False. 1. JavaScript codes are read by different browsers differently. 2. It is an object based language. a. 1T, 2T b. 1F, 2F c.1T, 2F d. 1F, 2T

49. Define function. a. It refers to commands that are executed to handle an event that is triggered by the user action. b. It refers to an action that is performed by the user to initiate an action. c. It is a programming language used to create interactive and dynamic web page. d. It refers to a block of code that is reusable and that gets executed when they are called.

50. The syntax of JavaScript code is similar to that of ______________ and ______________ a. Java programming language, Pascal b. Pascal, c programming language c. Java programming language, c programming language d. Pascal, MATLAB

51. State whether the following statements are True or False. 1. Python program works well with various platforms such as Linux, Windows, Solaris, and so on. 2. Python program can be combined with other programming languages such as C or C++ to provide scripting capabilities to the program a. 1T, 2T b. 1F, 2F c.1T, 2F d. 1F, 2T

52. What is the Python Programming Language? a. It is a scripting language that is best suited for web development. b. It is a high-level, dynamic, interpreted, and general purpose programming language. c. It is a programming language that is not compiled and saved, but instead interpreted. d. It is an object oriented, interpreted, and powerful programming language and is highly popular among Linux users.

53. Python provides __________ and __________ that facilitates easy maintainability of the code. a. Apache, structure b. syntax, Structure c. Unix, Windows d. CGI, Structure

54. State whether the following statements are True or False. 1. Indexing helps us to quickly find information on the Web. 2. Every search engine follows different formulas to allot weight to words in its index. a. 1T, 2T b. 1F, 2F c.1T, 2F d. 1F, 2T

55. Spiders are also known as _________, _________ or automatic indexers. a. bots, SEO b. web robots, OR c. bots, algorithm d. bots, web robots

56. State whether the following statements are True or False. 1. A search engine can be defined as a program or an information retrieval system that helps us to find information that we desire, on the WWW. 2. A keyword is any word such as a subject heading or descriptor which is specific to the search topic. a. 1T, 2T b. 1F, 2F c.1T, 2F d. 1F, 2T

57. Spiders are also known as _________, _________ or automatic indexers. a. bots, SEO b. web robots, OR c. bots, algorithm d. bots, web robots

58. State whether the following statements are True or False. 1. Looping statements will not enable you to execute group of statements frequently. 2. In do-while loop, you have to initialise the control variable before the loop. Then, the statements are executed. a. 1T, 2T b. 1F, 2F c.1T, 2F d. 1F, 2T

59. Java makes distributed computing easy with the _____________capability that is naturally merged into it and it also allows you to create modular programs and ______________ which can be reused. a. Networking, image b. Multithreaded, image c. Multithreaded, code d. Networking, code

60. In Java, ____________ does not have any constructor, but a ____________ can have a constructor. a. Inheritance, class b. Class, interface c. Object, class d. Interface, class Part C (Four mark questions)

61. Consider you are working as a Web designer in ABC Software Inc. Your project manager asks you to modify the look and feel of various elements such as colour scheme, navigation, layout and typographic elements present in the Web pages that you have created. Which of the following would you use to accomplish this task ? A. XHTML

B. CSS C. Java D. DTD

62. Consider a scenario where you are working as a Web designer in ABC Soft Private Limited. Your team lead wants you to create a hyperlink using which the user could connect to www.google.com. Suppose there is a phrase "Connect me to Google" you need to create hyperlink to the word Google. You also need to create a nested HTML code such that in the phrase, "Connect me to Google", "Google" is in bold letters. Which of the following piece of HTML code would you select to complete your task? A. <a src="http://www.google.com"> Connect me to <b> Google </b></a> B. <a href="http://www.google.com"> Connect me to <b> Google </b></a> C. <b><a href="http://www.google.com"> Connect me to Google</a></b> D. <a href="www.google.com"> Connect me to <b>Google </b></a>

63. Consider a scenario where you are working as a Web developer in SDFG Software Private Limited. Your team lead has assigned you the task of creating a form where in you have to create an input element that would allow users to select one or more than one item from the list of options as input. The list comprises of items such as Java, JSP, and HTML. Which input element would you use to accomplish this task, and also identify the appropriate code that need to be used to complete this task? A. Radio buttons <form> <p>Select the Books</p> <input type="radio" name="books" value="Java" /> Java <input type="radio" name="books" value="JSP" /> JSP <input type="radio" name="books" value="HTML" /> HTML

</form> B. Checkbox <form> <p>Select the Books</p> <input type="checkbox" name="books" value="Java" /> Java <input type="checkbox" name="books" value="JSP" /> JSP <input type="checkbox" name="books" value="HTML" /> HTML </form> C. Checkbox <form> <p>Select the Books</p> <input type="check" name="books" value="Java" /> Java <input type="check" name="books" value="JSP" /> JSP <input type="check" name="books" value="HTML" /> HTML </form> D. Radio buttons <form> <p>Select the Books</p> <input type="checkbox" name="books" value="Java" /> Java <input type="checkbox" name="books" value="JSP" /> JSP <input type="checkbox" name="books" value="HTML" /> HTML </form>

64. Match the following First set A. Using relative positioning B. Using "left" attribute C. fixmargin D. Margins Second set 1. Distance between the first character of the content of the paragraph element and the left end of the Web page can be defined. 2. Portion of the page that acts as border for the Web page. 3. Elements can be placed next to each other. 4. Name of the class selector used to define the class containing the page margins. A. A-4, B-3, C-2, D-1 B. A-3, B-4, C-2, D-1 C. A-3, B-1, C-4, D-2 D. A-2, B-1, C-4, D-3

65.Match the following: First set: A. Redesigning page layout B. id selector C. CSS layout D. Tables Second set: 1. Allows to define style once and use wherever required in HTML document. 2. Makes the code complex. 3. Easy and flexible with CSS. 4. Uses style sheets to define placement of content on Web page A. A-3, B-1, C-4, D-2 B. A-3, B-4, C-2, D-1 C. A-4, B-3, C-2, D-1

D. A-2, B-1, C-4, D-3

66. Match the following sets: Set A: A. onClick B. onMouseOver C. onResize D. onSelect Set B: 1. This invokes the Javascript when you move the mouse pointer over an image or some link. 2.This invokes the Javascript when you click the mouse button. 3.This invokes the Javascript when you select a form field. 4.This invokes the Javascript when you resize the browser window. a. A-2, B-4, C-1, D-3 b. A-4,B-3, C-1, D-2 c. A-2 B-1, C-4, D-3 d. A-3, B-1, C-2, D-4

67. State whether the following statements are True or False with respect to Perl Programming Language. 1. It offers support for various problems relating to programming with the help of its standard libraries. 2. It is an open source language. 3. It provides a flexible object oriented programming syntax that is powerful and simple. 4. It is known as a cross-platform language. a. 1F, 2T, 3F, 4T b. 1T, 2T, 3T, 4T c. 1T, 2T, 3T, 4F d. 1T, 2F, 3T, 4T

68. State whether the following statements are True or False. 1. As Apache was built from a set of existing code and different patches it was earlier called as patchy server. Thus, it got its name Apache server. 2. MySQL is usually used with Perl scripting language that helps in the development of dynamic and powerful server side applications. 3. Many organisations today are using MySQL in order to save time and money in developing and managing their websites, packaged software, and business systems. 4. Python is an open source, interpreted scripting language used in the development of Web applications. a. 1T, 2F, 3T, 4T b. 1F, 2T, 3F, 4T b. 1T, 2T, 3T, 4T c. 1T, 2T, 3T, 4F

69. Match the following: First set: A. OR B. NOT C. AND D. Spider Second set: 1. The spiders are simple programs that scan the Web pages to create a list of words that are found on the Websites. 2. It is used when all the terms that are combined using this operator should appear in the resultant Web page. 3. It is used when the term that follows this operator should not appear in the resultant Web. 4. It is used when at least one of the terms that are combined by using this operator should appear in the resultant Web pages. a. A-4, B-3, C-2, D-1 b. A-3, B-4, C-2, D-1

c. A-1, B-2, C-4, D-3 d. A-4, B-2, C-1, D-3

70. State whether the following statements are True or False. 1. Search engines can identify images, videos or flash files. 2. Google cannot scan a flash file. 3. You can have a top ranking for your Websites by paying for the placement of your Website in the result page of the search engines. 4. Some Web developers try to cheat the search engine algorithms in order to increase their Web page ranking. a. 1F, 2F, 3T, 4T b. 1F, 2T, 3F, 4T b. 1T, 2T, 3T, 4T c. 1T, 2T, 3T, 4F

71. Consider that you are working as a web developer in MP Technologies. Your company has celebrated its 10th year anniversary last month. Your manager wants to upload some of the photos that were taken during its First year anniversary. You found that some of the photos that were taken were torn out and not in a good condition. Now you have to give a good look to the photos so that both first and 10th anniversary photos look similar. Which of the following tools you would use to achieve the scenario? a. Adobe Photoshop b. Adobe flash c. Text editor d. Firebug browser

72. State whether the following statements are True or False. 1. As compared to other languages, Java offers powerful systems for exception handling and type checking. 2. Complier converts the byte code into source program.

3. Java is a fully object-oriented language, as no coding is done outside the class definitions, and Java does not have standalone methods, constants, and variables. 4. When you execute a java program, you can connect to the Internet, and obtain the necessary files dynamically from either a local drive or from a computer that is away from you. a. 1F, 2F, 3T, 4T b. 1F, 2T, 3F, 4T c. 1T, 2F, 3T, 4T d. 1T, 2T, 3T, 4F

73. Match the following: First set: A. Method overloading B. Method overriding C. Local class D. Anonymous class Second set: 1. It will not have any constructors as constructors name must be similar to the class name, and this class has no name. 2. It is completely invisible from the external world. 3. It append more functionality to method that is called in super class by the keyword super. 4. It gives permission to you for achieving the compile time polymorphism. a. A-3, B-1, C-4, D-2 b. A-3, B-4, C-2, D-1 c. A-4, B-3, C-2, D-1 d. A-2, B-1, C-4, D-3

74. Match the following: First set: A. Java run-time system B. Code generated C. Exception D. Error

Second set: 1. This class defines exceptions that are not expected to be caught under normal circumstances by your program. 2. This class specifies the exceptional conditions that your programs should catch. 3. These are used to report some error condition to the caller of a method. 4.These relate to the fundamental errors that violate the rules of the Java programming language. a. A-3, B-1, C-4, D-2 b. A-3, B-4, C-2, D-1 c. A-4, B-3, C-2, D-1 d. A-2, B-1, C-4, D-3

75. Match the following. First set: A. Directive B. Declaration C. javax.servlet D. javax.servlet.http Second set: 1. This is the extension for the servlet framework. 2. This is the basic servlet framework. 3. This tag is used to define the functions and variables. 4. This tag is used to import java packages. a. A-3, B-1, C-4, D-2 b. A-3, B-4, C-2, D-1 c. A-4, B-3, C-2, D-1 d. A-2, B-1, C-4, D-3

Answer Keys
Part - A Q. No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Ans. Key A A C D A C B D B C B C D B C C D A C C Q. No. 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Ans. Key B C D A A D A C B C A C B D D B A C A D Q. No. 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Part - B Ans. Key C A B D B A B A D B B D B A D A D D D D Q. No. 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 Part - C Ans. Key B B B C A C B A A A A C C C C

Вам также может понравиться