Uploaded by Palanikumar S

191CS622-INTERNET PROGRAMMING UNIT 1

advertisement
Internet Programming
PART A
Sl.No
1
2
3
4
5
6
7
8
9
10
11
Questions
Who was the first person to define HTML?
a) Ted Nelson
b) Tim Berners-Lee
c) Linus Torvalds d)
Robert E. Kahn
What does HTML stand for?
a) Hyper Text Markup Language
b) High Text Markup Language
c) Hyper Time Markup Language
d) Higher Text Markup Language above
The _______ is an international body that maintains web-related
rules and frameworks.
a) WWW
b) W3C
c) W3G
d) W3
The first network that planted the seeds of internet was _______
a) ARPANET b) NFSnet
c) SURAnet d) NYSERnet
Which one is used to convert www.example.org to 192.0.34.166?
a) TELNET b) DNA
c) DNS
d) UDP
Which one of the following utility allows you to query the DNS
database from any computer on the network and find the host name
of a device by specifying its IP address, or vice versa?
a) ipconfig b) tracert
c) nslookup d) wireshark
Which one of the following is the most common internet protocol?
a) HTML
b) NetBEUI c) TCP/IP
d) IPX/SPX
_________ is used for transferring files between machines.
a) SMTP
b) HTTP
c) FTP
d) HTML
Assertion(A) :The name TELNET is derived from the words
“Telecommunication Network”.
Reason(R) : The TELNET program is designed to emulate a single
terminal attached to the other computer.
a) Both A and R are true and R is the correct explanation of A
b) Both A and R are true but R is not the correct explanation of A
c) A is true and R is false
d) A is false and R is true
Find out the odd one.
a) RPC
b) IRC
c) RSP d) LCP
Choose the best option.
i) HTTP
i) DNS
ii)IP
ii) File transfer
CO
Level
CO1.1
K
Level
K1
CO1.1
K1
CO1.1
K1
CO1.1
K1
CO1.1
K2
CO1.1
K2
CO1.1
K1
CO1.2
K1
CO1.2
K2
CO1.2
K2
CO1.2
K2
iii)UDP
iv)FTP
12
13
14
15
16
iii) World Wide Web
iv) Internet
a)i --->iii, ii--->iv, iii--->i, iv--->ii
b) i --->ii, ii--->iv, iii--->i, iv--->iii
c) i --->iv, ii--->iii, iii--->i, iv--->ii
d) i --->iii, ii--->ii, iii--->i, iv--->iv
Which of these following methods is incorrectly matched with its
action according to HTTP version 1.1?
a) GET requests a document from the server
b) CONNECT Reserved
c) PUT sends a document from server to client
d) TRACE enquires about available options
Which of the following statement(s) is/are correct regarding HTTP
request method
1) GET method requests information about a document from a
resource
2) POST method sends some information to the server from the client
3)PUT method also used to request some information regarding the
document
4) Head method does not have a response body.
a) 1,2,3
b)1,2,4
c) 1,3,4
d) 2,3,4
A graphical HTML browser resident at a network client machine Q
accesses a static HTML webpage from a HTTP server S. The static
HTML page has exactly one static embedded image which is also at
S. Assuming no caching, which one the following is correct about the
HTML webpage loading?
a) Q needs to send at least 2 HTTP requests to S, each necessarily
in a separate TCP connection to server S.
b) Q needs to send at least 2 HTTP requests to S, but a single
TCP connection to server S is sufficient.
c) A single HTTP request from Q to S is sufficient, and this is
possible without any TCP connection between Q and S.
d) A single HTTP request from Q to S is sufficient , and a single
TCP connection between Q and S is necessary for this.
The reason phrase of HTTP/1.1 status code 403 is
a) Unauthorized b) Forbidden c) Not found d) Temporary redirect
Identify the correct order in which the following actions take place in
an interaction between a web browser and a web server.
1. The web browser requests a webpage using HTTP.
2. The web browser establishes a TCP connection with the web
server.
3. The web server sends the requested webpage using HTTP.
4. The web browser resolves the domain name using DNS.
a) 4,2,1,3
b) 1,2,3,4
c) 4,1,2,3
d) 2,4,1,3
CO1.2
K2
CO1.2
K2
CO1.2
K2
CO1.2
K1
CO1.2
K2
17
18
Identify the odd one.
a) Google chrome b) Firefox
Explorer
Choose the correct options.
i)Firefox
ii)Safari
iii)Internet Explorer
iv)Mosiac
19
20
21
22
23
24
25
K2
CO1.3
K2
CO1.3
K2
CO1.3
K1
CO1.3
K1
CO1.3
K1
CO1.3
K2
CO1.3
K1
CO1.4
K3
i)Microsoft
ii)NCSA
iii)Mozilla Foundation
iv)Apple
a)i --->iii, ii--->iv, iii--->i, iv--->ii
b) i --->ii, ii--->iv, iii--->i, iv--->iii
c) i --->iv, ii--->iii, iii--->i, iv--->ii
d) i --->iii, ii--->ii, iii--->i, iv--->iv
Identify the correct order in which the following actions take place in
an interaction between a web browser and a web server.
1. Resolving host www.example.org ....
2. Connecting to www.example.org ...
3. Waiting for www.example.org ...
4. Connected to www.example.org...
5. Transferring data from www.example.org ...
a) 2,1,3,4,5 b) 2,3,1,4,5 c) 1,2,3,4,5 d) 1,2,4,3,5
Which one is not the functionality of browser?
a) Automatic URL completion b) Script execution c) Event handling
d) None of the above
Which one the following is not an open source web server?
a) Apache Tomcat b) Nginx c) Microsoft IIS
d) Lighttpd
URL is
a) source code b) web address c) an attribute d) User’s address
What is the correct syntax of web address?
a) path://prefix.port:domain/filename/scheme
b) scheme://prefix.domain:port/path/filename
c) prefix://scheme.port:domain/filename/path
d) port://domain.filenmae:path/scheme/prefix
Which scheme is used for secure Hyper Text Transfer Protocol?
a) FTP
b) HTTP
c) HTTPS
d) UDP
Fill in the blanks with the help of options given below in order to get
the following table when the below code is executed.
<!DOCTYPE html>
<html>
<body>
<table border="2">
<tr>
<th>Name</th>
CO1.3
c) Windows XP d) Internet
<th ____________>Phone no</th>
</tr>
<tr>
<td>John</td>
<td>9898989898</td>
<td>9876543210</td>
</tr>
</body>
</html>
Name Phone no
John 9898989898
26
27
28
29
30
9876543210
a) colspan= "1"
b) colspan= "2"
c) rowspan= "2"
d) rowspan= "2"
The correct sequence of HTML tags for a webpage is
a)Head, Title, HTML, body
b)HTML, Body, Title, Head
c)HTML, Title, Head, Body
d)HTML, Head, Title, Body
Which is the correct syntax to create a list with circle?
a) <ul “round”>
b) <ul type=”circle”>
c) <ul type=”round”>
d) <ul =”round”>
Which of the following HTML tag is used to create an unordered
list?
a) <ol>
b) <ul>
c) <li>
d) <ll>
What are the options do you have for bulleted lists?
a) triangle, disc, circle and none
b) triangle, square, circle and none
c) disc, circle, square and none
d) square, disc, polygon and none
Which of the following HTML code will make an image clickable?
a) <a href="https://www.google.com/"> Google Home Page</a>
b) <img src="https://www. google.com/ google-logo">
<a href="https://www. google.com/"> Google Home Page</a>
</img>
c)<a href="https://www. google.com/"> Google Home Page</a>
<img src="https://www. google.com/ google-logo" />
d)<a href="https://www. google.com/"><img src="https://www.
google.com/ google-logo" /></a>
CO1.4
K2
CO1.4
K1
CO1.4
K1
CO1.4
K1
CO1.4
K2
31
32
33
34
35
36
37
38
39
You have been given the map of Tamilnadu with all districts as an
image. If you click on the area of the district, then the details of the
corresponding district should be shown. Which is/are the appropriate
tag(s) to do this?
a)<img>
b)<map></map>
c)<area>
d) All of the above
Which of the following is a new input attribute introduced by
HTML5?
a) text
b) checkbox controls
c) submit buttons
d) date
Choose the incorrect option.
a) Radio button allows choosing only one option from the given
options.
b) Default option can be chosen using attribute "selected" in
radio button
c) Default option can be chosen using attribute "checked" in radio
button
d) Checkbox allows to choose one or more options from the given
options.
Which of the following is not a semantic element?
a) <form>
b) <article>
c) <table>
d) <span>
Footer element cannot contain ____________ information.
a) contact information
b) copyright information
c) the author of the document
d) blog post
Drag and Drop (DnD) is powerful user interface concept which
makes it easy to copy, reorder and deletion of items with the help of
____________
a) Keyboard
b) Mouse
c) Both A & B
d) None of the above
Which of the following property is common in all drag events?
a) drag effects
b) drag data
c) dataTransfer
d) dragenter
Audio tag support
a) MP3
b)WAV
c)OGG
d) All of the above
Find the odd one.
CO1.4
K2
CO1.5
K1
CO1.5
K2
CO1.5
K1
CO1.5
K1
CO1.6
K1
CO1.6
K2
CO1.6
K1
CO1.6
K1
40
41
42
43
44
45
46
a)Load
b)Play
c)Pause
d) Start
Which of the following is the correct syntax for referring the external
style sheet?
a)<style src = example.css>
b)<style src = "example.css" >
c)<stylesheet> example.css </stylesheet>
d)<link rel="stylesheet" type="text/css" href="example.css">
What will be the output of following CSS code snippet?
h1 {color: red text-decoration: underline; font-style: italic;}
a) color: red, text-decoration: underline works
b) only font-style: italic works
c) color: red, text-decoration: underline and font-style: italic all
works
d) text-decoration: underline and font-style: italic works
Which of the following rule allows users to import style rules from
other style sheets?
a) @media
b) @important
c) @import
d) @style
Which of the following cascading order has the highest precedence?
a) User agent declarations
b) User normal declarations
c) Author normal declarations
d) Author important declarations
Which is correct CSS statement to define blue background color with
opacity?
a)background-color: rgba(0, 0, 255, 0.3)
b)background-color: rgba(0, 0, 255, 255)
c)background-color: rgba(0, 255, 255, 0.3)
d)background-color: rgba(0, 0, 1, 0.3)
Which CSS property allows you to specify an image to be used
instead of the normal border around an element?
a)border-image
b)border-picture
c)border-background
d)border-bgimage
<style>
h1 {
color: blue;
text-shadow: 2px 2px 4px green;
}
</style>
What is the result of this code?
a) Text in green colour and shadow in blue colour
b) Text in blue colour and shadow in green colour
c) Text in green colour and shadow in green colour
CO1.7
K1
CO1.7
K3
CO1.7
K1
CO1.7
K2
CO1.8
K2
CO1.8
K1
CO1.8
K2
47
48
49
50
51
d) Text in blue colour and shadow in blue colour
Which of the following property sets the shadow for a box element?
a) Shadow
b) Set-shadow
c) Canvas-shadow
d) Box-shadow
The animation-duration property defines how long an animation
should take to complete.
a) Animation-name
b) Animation-duration
c) Animation-delay
d) None of the above
Which property specifies a delay for the start of an animation?
a) Animation-name
b) Animation-duration
c) Animation-delay
d) None of the above
HTML5 element <canvas> can be used to ____________
a) Draw graphics
b) Photo compositions
c) Animations
d) All of the above
<canvas id="myCanvas" width="200" height="100" style="border:1p
x solid #000000;">
</canvas>
The above code will create a ____________
a) Circular canvas
b) Rectangular canvas
c) Square canvas
d) None of the above
CO1.8
K2
CO1.9
K1
CO1.9
K1
CO1.9
K1
CO1.9
K1
CO1.1
K2
CO1.1
CO1.2
K3
K2
CO1.3
K4
PART B
1
2
3
4
A client wants to transfer large file/folder between two computers.
Which is the suitable protocol that can be used? List out the benefits
of the protocol.
File Transfer Protocol(FTP)
Write an URL of your choice and illustrate different part of the URL.
Compare the structure of HTTP request message and HTTP Response
message
A client accesses a webpage and gets a status code 403. Same client
accesses a different webpage and get status code 500. What is the
meaning of this status code? Analyze.
5
Write a HTML code to display the following in a web page.
CO1.4
K3
6
What HTML tags and text would you use to produce the following
web content
A small heading with the words We are Proud to Present .
A horizontal rule across the page .
A large heading with the one word Orbit .
A medium-sized heading with the words The Geometric Juggler .
Another horizontal rule
Create an HTML document containing three ordered lists: ice cream,
soft serve and frozen yogurt. Each ordered list should contain a
nested, unordered list of your favorite flavors. Provide a minimum of
three flavors in each unordered list.
Create an HTML document that uses an image as an e-mail link. Use
the attribute alt to provide a description of the image and link.
A webpage contains navigation links other web pages. Identify a
suitable HTML semantic element for this purpose and create a
HTML document with that semantic element.
Design a HTML page for Login. Identify the suitable HTML control
elements for this purpose and create a HTML document.
A website developer wants to develop a website with uniformity in
all pages and update the website with minimal effort. What type of
CSS style sheet will you prefer for him? Demonstrate with a simple
HTML document.
Create a HTML document with CSS inheritance concept and explain
how browser displays the contents.
Create a HTML document with a simple animation using CSS.
CO1.4
K3
CO1.4
K4
CO1.4
K3
CO1.4
K3
CO1.5
K4
CO1.6
K4
CO1.7
K4
CO1.8
K3
CO1.1
K4
CO1.2
K4
CO1.3
K2
7
8
9
10
11
12
13
PART C
1
2
3
Is TCP/IP single protocol or different protocol? Justify. Illustrate the
simplified view of communication using TCP/IP.
.
A user requests a web page from a web server. The server sends the
web page to the requested client machine. What is the protocol used
during this application process? Illustrate the structure of the
protocol.
Software is used in the computer to send HTTP request message,
process the response and display the content to the user. What is the
name of the software? Mention the various software available
4
5
6
7
8
9
10
11
12
currently in use. List the basic and advanced functionality of the
software.
Identify the name of the machine which stores web content and
provide services to user request. List out the features of the machine.
Mention the leading machines available today.
Create a link to each of the following:
a) The file index.html, located in the files directory. b) The file
index.html, located in the text subdirectory of the files directory.
c) The file index.html, located in the other directory in your parent
directory.
d) The President’s e-mail address (president@whitehouse.gov).
e) The file named README in the pub directory of ftp.cdrom.com.
A local university has asked you to create an HTML document that
allows prospective students to provide feedback about their campus
visit. Your HTML document should contain a form with text boxes
for a name, address and e-mail. Provide checkboxes that allow
prospective students to indicate what they liked most about the
campus. The checkboxes should include: students, location, campus,
atmosphere, dorm rooms and sports. Also, provide radio buttons that
ask the prospective students how they became interested in the
university. Options should include: friends, television, Internet and
other. In addition, provide a text area for additional comments, a
submit button and a reset button.
Create a HTML document to drag (and drop) an image back and forth
between two <div> elements
Create a HTML document with audio and video. Specify the
attributes and events of audio and video.
Add an embedded style sheet to the HTML document which has five
hyperlinks. The style sheet should contain a rule that displays h1
elements in blue. In addition, create a rule that displays all links in
blue without underlining them. When the mouse hovers over a link,
change the link’s background color to yellow.
The file imp1.css contains the statements @import url("imp2.css"); p
{ color:green } and the file imp2.css contains the statement p {
color:blue } and a document head contains the markup
<title>StyleRule.html</title>
<style type=”text/css”>p{color:red}</style><link rel=”stylesheet”
type=”text/css”
href=”impl.css”
/><style
type=”text/css”
>p{color:yellow}</style>
Apply rule cascading and provide the order of style rulesets. In which
colour p element will be displayed?
Create a HTML document to demonstrate basic box model style
properties.
Create a HTML document to draw line, circle and text using Canvas.
CO1.3
K4
CO1.4
K4
CO1.5
K4
CO1.6
K4
CO1.6
K4
CO1.7
K4
CO1.7
K4
CO1.8
K4
CO1.9
K4
Download