Uploaded by Programming Road

forms-gle-oLLQufRRUfLAB5jV8

advertisement
IP
* Required
Email *
Your email
________Programs that use network in some way to do their work *
1 point
IOS
Windows
Android
Network
a computer that manages a network resource *
Client
Srever
Protocol
1 point
an agreed-upon way of exchanging info and service requests between
clients and servers *
1 point
Server
Client
Protocol
the language of the Internet is *
1 point
Ruby
Java
C++
Python
Java suppo몭s network programming from the earliest release in a
pla몭orm-independent way *
1 point
True
False
Most modern networks are packet-switched networks *
True
False
1 point
A protocol is a precise set of rules and data format de몭ning how
computers communicate *
1 point
True
False
Network communication is layered and Each layer represents a di몭erent
level of abstraction *
1 point
True
False
You have to write so몭ware for network-core devices *
1 point
True
False
Server may have dynamic IP addresses *
1 point
True
False
In a client/server network, the server runs a service, or process, sometimes
called a server daemon *
True
False
1 point
Daemons are under an end user's direct control *
1 point
True
False
arbitrary end systems directly communicate *
1 point
Client server
P2P
Hybrid of client-server and P2P
Server process that initiates communication *
1 point
True
False
within di몭erent host, two processes communicate using inter-process
communication *
True
False
1 point
Host device has unique ______bit IP address *
1 point
8
16
24
32
To receive messages, process must have identi몭er *
1 point
True
False
identi몭er includes *
1 point
IP address
port number
both IP address and port number
none of the above
TCP does not provide security *
True
False
1 point
UDP does not provide: connection setup, reliability, 몭ow control,
congestion control, or security *
1 point
True
False
Socket: a door between application process and end-end-transpo몭
protocol *
1 point
True
False
In TCP _____create two socket welcome socket and connection socket *
1 point
Cleint
Server
Protocol
In TCP server socket creates only connection socket *
True
False
1 point
is a몭ached to some input source for the process, e.g., keyboard or socket *
1 point
stream
input stream
output stream
monitor is *
1 point
input steram
output stream
Socket is a *
1 point
gate
tunnel
window
door
How many basic function of internet? *
2
3
4
5
1 point
______uniquely identi몭es the location of an Internet node *
1 point
Routing
Internet address
Names
provide a location-independent reference to Internet node *
1 point
Routing
Internet address
Names
is to deliver packets from source toward their destination address *
1 point
Routing
Names
Internet address
IPv6 addresses are *
32-bit
64-bit
128-bit
256-bit
1 point
_______ provides location independent and human-friendly identities to
Internet nodes *
1 point
FTP
HTTP
DNS
HTML
DNS de몭ned both a hierarchical naming data model and a protocol for
querying the distributed data structure *
1 point
True
False
getLocalHost() is a method in InetAddress which throws *
UnknownLocalHostException
UnknownHostException
InetAddressException
UnknownSocketException
1 point
Refer to next java code , identify the error that will prevent the program to
get the host name and address correctly *
1 point
System.out.println("Host Name: " + ip.toString());
host = input.nextLine();
InetAddress ip = InetAddress.getByName(host);
Scanner input = new Scanner(host.getInputStream());
DNS stands for *
1 point
Domain Name Service
Data Network Service
Data Name Service
Domain Network Service
Which of these class is used to encapsulate IP address and DNS *
1 point
DatagramPacket
URL
InetAddress
ContentHandler
encapsulate a simple DNS resolver. Can avoid repeated lookup of same IP
address *
True
False
1 point
InetAddress class Designed to suppo몭 only IPv4 *
1 point
True
False
InetAddress is a factory class *
1 point
True
False
getByName return *
1 point
Address
URL
InetAddress object
DatagramPacket
getAllByName returns all lookup results in an InetAddress[] *
True
False
1 point
getByName() is a method in InetAddress which throws *
1 point
A) UnknownLocalHostException
UnknownHostException
InetAddressException
UnknownSocketException
getLocalHost return *
1 point
InetAddress
address
URL
Datagrampacket
returns the domain name *
byte[] getAddress()
boolead isMulticastAddress()
String getHostName()
String getHostAddress()
1 point
returns the 32-bit address as a 4 byte array *
1 point
byte[] getAddress()
String getHostName()
String getHostAddress()
boolead isMulticastAddress()
returns the do몭ed decimal string representation of the address *
1 point
byte[] getAddress()
boolead isMulticastAddress()
String getHostName()
String getHostAddress()
returns true if this is a multicast address *
1 point
byte[] getAddress()
String getHostName()
boolead isMulticastAddress()
String getHostAddress()
A multi-homed host has more than one IP address *
True
False
1 point
Gateways between IP subnets Commonly have more than one physical
network inte몭ace *
1 point
True
False
Which one of the following is a form element? *
1 point
text box.
radio button.
submit button.
All of these
Which one of the following is incorrect? *
1 point
<label> tag in HTML is used for creating a tag for form elements.
<label> can be used to increase the clickable area of buttons
<action> can be used to create a tag for form elements
None of the above
Choose the incorrect option *
checkbox allows to choose one or more than one options from the given options
radio button allows choosing only one option from the given options.
default option can be chosen using attribute "checked" in radio button
default option can be chosen using attribute "selected" in radio button
1 point
Choose the incorrect option *
1 point
action attribute is used inside starting tag of form.
With the use of action, we can redirect to a page once submit button is clicked.
<form action:"home.php"> redirects to the page home.php
None of the above
Choose the correct option *
1 point
Use of method attribute determines by which method the datas in the form will be
submitted.
Method can be POST or GET.
Default method in HTML is GET.
All of the above
Which one of the following does not hold true regarding GET method in
HTML? *
Use of GET method in HTML is more secured.
Use of GET method enables us to bookmark the page.
GET has size limitation.
None of the above
1 point
Which one of the following is true regarding POST method in HTML? *
1 point
Use of POST method in HTML is more secured.
Use of POST method enables us to bookmark the page.
POST has size limitation.
None of these.
Which of the following tag is used for drop down list? *
1 point
<select>
<text>
<textarea>
<dropdown>
How more than one option can be selected in drop down? *
1 point
Use of multiple attribute inside <option> tag.
Use of multiple attribute inside <select> tag.
use of multiple attribute inside <text> tag.
It is not possible to select more than one option in drop down
Which a몭ribute is not used with <select> element? *
selected
multiple
name
1 point
Which a몭ribute is used for the radio type? *
1 point
name
value
checked
All of these
Which element is used to create multi-line text input? *
1 point
textarea
submit
radio button
text
Which of the following is not used with password a몭ribute? *
size
min
maxlength
name
1 point
What is the default type of ‘type’ a몭ribute of <input> element? *
1 point
Numerals
Password
Special Characters
Text
The usage of an input element is de몭ned by the value of its _________
a몭ribute *
1 point
name
type
size
all of the above
Which of the following accurately describes the select element? *
text input
command button
drop-down list
check box
1 point
In order to create a password element, the value of type a몭ribute of its
corresponding input tag will be …. *
1 point
Radio
check box
Selected
Password
In order to create a visual group of form elements on a web page , we use *
1 point
Fieldset
Legend
caption
Which of the following accurately creates a calendar control? *
1 point
<input type =”date” name =”mydate”>
<input type =”text” name =”mydate”>
Which of the following accurately creates a color control? *
<input type =”color” name =”mydate”>
<input type =”date” name =”mydate”>
1 point
Returns an InetAddress object representing the current host *
1 point
getByName
getLocalHost
Returns an InetAddress object encapsulating the result of a DNS lookup on
the String argument *
1 point
getLocalHost
getByName
IP provides connectionless, unreliable end-to-end packet service *
1 point
True
False
Congestion control is to prevent fast senders from overwhelming slower
receivers *
1 point
True
False
Congestion control provide fair sharing of resources *
True
False
1 point
TCP is designed for bulk data transfer *
1 point
True
False
At least ____ segments are exchanged for each transaction *
1 point
5
7
9
11
Sockets encapsulate the implementation of network and transpo몭 layer
protocols *
1 point
True
False
Datagram is _________ and Stream is ________ *
connectionless, connection-based
connection-based, connectionless
1 point
You need an_______ and a to construct a client socket *
1 point
IP address
port number
IP address & Port number
none of the above
Socket class throw IOException *
1 point
True
False
getInputStream return _______ throw_______ *
1 point
java.io.InputStream, IOException
InetAddress, IOException
java.io.OutputStream, IOException
void, IOException
getOutputStream return _______ throw_______ *
java.io.InputStream, IOException
java.io.OutputStream, IOException
void, IOException
InetAddress, IOException
1 point
getInetAddress return _______ throw_______ *
1 point
void, IOException
java.io.OutputStream, IOException
InetAddress, IOException
java.io.InputStream, IOException
getPo몭 return _______ throw_______ *
1 point
int, IOException
void, IOException
java.io.OutputStream, IOException
java.io.InputStream, IOException
close() return _______ throw_______ *
int, IOException
void, IOException
java.io.OutputStream, IOException
java.io.InputStream, IOException
1 point
shuddownInput return _______ throw_______ *
1 point
java.io.OutputStream, IOException
void, IOException
java.io.InputStream, IOException
int, IOException
shutdownOutput return _______ throw_______ *
1 point
java.io.InputStream, IOException
java.io.OutputStream, IOException
int, IOException
void, IOException
getSoTimeOut throw SocketException *
1 point
True
False
By default, a TCP connection is kept open until either side explicitly
requests its termination *
True
False
1 point
ServerSocket() throws
*
1 point
IOException
SecurityException
IOException, SecurityException
none of the above
The main task of a server socket is to accept() incoming connection
requests and generate a java.net.Socket object that encapsulates each
request *
1 point
True
False
If a timeout expire, the accept() method will throw *
1 point
java.io.InputStream
java.io.InterruptedIOException
java.io.OutputStream
the number of steps to setup a server *
3
4
5
6
1 point
the number of steps to setup a client *
1 point
3
4
5
6
The 몭rst step in setup server *
1 point
Create a serverSocket object
set up input and output streams
close the connection
put the server into wating state
send and receive data
The second step in setup server
*
Create a serverSocket object
send and receive data
close the connection
put the server into wating state
set up input and output streams
1 point
The third step in setup server
*
1 point
close the connection
set up input and output streams
put the server into wating state
Create a serverSocket object
send and receive data
The fo몭h step in setup server *
1 point
set up input and output streams
send and receive data
put the server into wating state
close the connection
Create a serverSocket object
The 몭몭h step in setup server *
send and receive data
Create a serverSocket object
set up input and output streams
put the server into wating state
close the connection
1 point
The 몭rst step in setup client *
1 point
Establish a connection to the server
Set up input and output streams
Send and receive data
Close the connection
The second step in setup client
*
1 point
Close the connection
Send and receive data
Set up input and output streams
Establish a connection to the server
The third step in setup client
*
Establish a connection to the server
Set up input and output streams
Send and receive data
Close the connection
1 point
The fo몭h step in setup client *
1 point
Set up input and output streams
Close the connection
Establish a connection to the server
Send and receive data
To block a socket from reading any input from the Server or Client a몭er
2000ms, we use *
1 point
setTimeSocket(2000);
setSoTimeOut(2000);
setTime(2000);
setSocketTime(2000);
Which classes are used for connection-less socket programming? *
1 point
DatagramPacket only
ServerSocket
Socket
DatagramSocket and DatagramPacket
in UDP No di몭erentiation between client and server sockets *
True
False
1 point
In TCP No di몭erentiation between client and server sockets *
1 point
True
False
Every datagram socket can be used both for sending and receiving
datagrams *
1 point
True
False
DatagramPacket() throws IlegalArgumentException
*
1 point
True
False
which method return int ? *
getPort()
getOffset()
getLength()
All of the above
1 point
DatagramSocket() throw
*
1 point
SocketException
SecurityException
both SocketException and SecurityException
none of the above
If the received datagram is larger than the packet bu몭er it is truncated *
1 point
True
False
How many steps for UDP server? *
4
6
8
9
1 point
The 몭rst step in UDP server *
1 point
Create response datagram
Accept an incoming datagram
Create a DatagramSocket object
Close datagramSocket
Accept the sender's address and port from the packet
Send the response datagram
Retrieve the data from the buffer
Create a DatagrammPacket object for incoming datagrams
Create a buffer for incoming datagram
The second step in UDP server *
Send the response datagram
Close datagramSocket
Create response datagram
Create a DatagramSocket object
Create a buffer for incoming datagram
Accept the sender's address and port from the packet
Accept an incoming datagram
Create a DatagrammPacket object for incoming datagrams
Retrieve the data from the buffer
1 point
The third step in UDP server *
1 point
Send the response datagram
Create a DatagramSocket object
Accept an incoming datagram
Create a buffer for incoming datagram
Create response datagram
Create a DatagrammPacket object for incoming datagrams
Accept the sender's address and port from the packet
Retrieve the data from the buffer
Close datagramSocket
The fo몭h step in UDP server *
Close datagramSocket
Create a buffer for incoming datagram
Create response datagram
Retrieve the data from the buffer
Accept an incoming datagram
Send the response datagram
Accept the sender's address and port from the packet
Create a DatagramSocket object
Create a DatagrammPacket object for incoming datagrams
1 point
The 몭몭h step in UDP server *
1 point
Create a DatagramSocket object
Create a buffer for incoming datagram
Create a DatagrammPacket object for incoming datagrams
Accept an incoming datagram
Accept the sender's address and port from the packet
Retrieve the data from the buffer
Create response datagram
Send the response datagram
Close datagramSocket
The sixth step in UDP server *
Create a buffer for incoming datagram
Accept the sender's address and port from the packet
Close datagramSocket
Send the response datagram
Create a DatagramSocket object
Create a DatagrammPacket object for incoming datagrams
Accept an incoming datagram
Create response datagram
Retrieve the data from the buffer
1 point
The seventh step in UDP server *
1 point
Accept an incoming datagram
Send the response datagram
Accept the sender's address and port from the packet
Create a buffer for incoming datagram
Create a DatagramSocket object
Close datagramSocket
Retrieve the data from the buffer
Create a DatagrammPacket object for incoming datagrams
Create response datagram
The eighth step in UDP server *
Create a buffer for incoming datagram
Create a DatagrammPacket object for incoming datagrams
Close datagramSocket
Accept an incoming datagram
Send the response datagram
Create response datagram
Create a DatagramSocket object
Accept the sender's address and port from the packet
Retrieve the data from the buffer
1 point
The Ninth step in UDP server *
1 point
Accept the sender's address and port from the packet
Retrieve the data from the buffer
Send the response datagram
Create response datagram
Close datagramSocket
Create a DatagramSocket object
Accept an incoming datagram
Create a DatagrammPacket object for incoming datagrams
Create a buffer for incoming datagram
How many steps to setup UDP client? *
4
5
7
8
1 point
The 몭rst step in UDP client *
1 point
Close the DatagramSocket
Create a DatagramPacket object for the incoming datagrams
Create a buffer for incoming datagrams
Send the datagram message
Create the outgoing datagram
Create DatagramSocket object
Accept an incoming datagram
Retrieve the data from the buffer
The second step in UDP client *
Create DatagramSocket object
Create a buffer for incoming datagrams
Create a DatagramPacket object for the incoming datagrams
Close the DatagramSocket
Retrieve the data from the buffer
Create the outgoing datagram
Accept an incoming datagram
Send the datagram message
1 point
The third step in UDP client *
1 point
Create a buffer for incoming datagrams
Close the DatagramSocket
Create the outgoing datagram
Retrieve the data from the buffer
Accept an incoming datagram
Create a DatagramPacket object for the incoming datagrams
Create DatagramSocket object
Send the datagram message
The fo몭h step in UDP client *
Close the DatagramSocket
Send the datagram message
Create a DatagramPacket object for the incoming datagrams
Create a buffer for incoming datagrams
Create the outgoing datagram
Create DatagramSocket object
Accept an incoming datagram
Retrieve the data from the buffer
1 point
The 몭몭h step in UDP client *
1 point
Accept an incoming datagram
Retrieve the data from the buffer
Create DatagramSocket object
Create a buffer for incoming datagrams
Create the outgoing datagram
Send the datagram message
Close the DatagramSocket
Create a DatagramPacket object for the incoming datagrams
The sixth step in UDP client *
Accept an incoming datagram
Send the datagram message
Create a DatagramPacket object for the incoming datagrams
Retrieve the data from the buffer
Create the outgoing datagram
Create a buffer for incoming datagrams
Close the DatagramSocket
Create DatagramSocket object
1 point
The seventh step in UDP client *
1 point
Send the datagram message
Create a DatagramPacket object for the incoming datagrams
Close the DatagramSocket
Accept an incoming datagram
Create the outgoing datagram
Create a buffer for incoming datagrams
Retrieve the data from the buffer
Create DatagramSocket object
The eighth step in UDP client *
Create the outgoing datagram
Accept an incoming datagram
Retrieve the data from the buffer
Send the datagram message
Create DatagramSocket object
Create a DatagramPacket object for the incoming datagrams
Create a buffer for incoming datagrams
Close the DatagramSocket
1 point
In inline styles, the css code is wri몭en in …… *
1 point
Head section
Separate text 몭le with .css extension
Footer section
Body section
In embedded styles, the css code is wri몭en in ……. *
1 point
Footer section
Body section
Head section
Separate text 몭le with .css extension
In external styles, the css code is wri몭en in …. *
Body section
Footer section
Head section
Separate text 몭le with .css extension
1 point
To change the color of the text in the body to red , we can use …. *
1 point
a) Body {color:red;}
b) Body (color:red;)
c) Body {color:#FF0000;}
d) A and c
…… are reasons to use css on a web page *
1 point
a) To make style separate from structure
b) To make dynamic web content
c) Easier site maintenance
d) A and c
To determine whether the text is underlined, we use …… prope몭y *
Text-indent
Text-decoration
Text-align
Text-transform
1 point
If an element has id a몭ribute with value id1, how to make the text of that
element with blue color *
1 point
#id1{color:blue;}
.id1{color:blue;}
id1{color:blue;}
none of the above
If an element has class a몭ribute with value class1, how to make the text of
that element with blue color *
1 point
#class1{color:blue;}
.class1{color:blue;}
Class1{color:blue;}
none of the above
how to make the background color of the html page black using css *
1 point
#body{background-color:black;}
.body{background-color:black;}
body{background-color:black;}
The external style sheet does not contain any html tags *
True
False
1 point
To associate the external style sheet “mystyle.css” with the web page we
use…. *
1 point
<link rel=”css” href=”mystyle.css”>
<link rel=”css” href=”stylesheet”>
<link rel=”stylesheet” href=”mystyle.css”>
To add horizontal line, we use ….. element *
1 point
<hr>
<line>
<link>
<br>
……… is the process of creating an image with the lowest 몭le size that still
renders a good quality image *
Image resolution
Image optimization
Image map
1 point
………… is an image 몭le that contains multiple small graphics that are
con몭gured as background images for various web page elements *
1 point
CSS background
CSS gradient
CSS sprite
CSS opacity
To make the background color green, we use *
1 point
a) Background-color:green;
b) Background-color:#00FF00;
c) Background-color:rgba(0,255,0,1)
d) All of the above
………………. Makes an image link *
<imagelink src=”myimage.jpg”></imagelink>
<image>link</image>
<a href=”page2.html”><img src=”myimage.jpg”></a>
<link>image</link>
1 point
We use the ……………..prope몭y to con몭gure the indentation of the 몭rst line
of the text *
1 point
Text-decoration
Text-indent
Text-align
Text-shadow
The black color can be represented by the hexadecimal value…. *
1 point
#FFFFFF
#000000
#111111
#101010
To con몭gure the boldness of the text, we use ……. Prope몭y *
Text-align
Text-indent
font-weight
Text-transform
1 point
To con몭gure the capitalization of text, we use ……….. prope몭y *
1 point
Text-align
Text-transform
font-weight
Text-indent
The html page can not use more than one external style sheet *
1 point
True
False
To con몭gure the text to an italic style, we use …………. Prope몭y *
1 point
Font-weight
Font-family
Font-size
Font-style
To con몭gure the font typeface of the text, we use ……… prope몭y *
Font-weight
Font-size
Font-style
Font-family
1 point
To eliminate the border of an image element, we use………… *
1 point
a) Image{border-style:none}
b) Img{border-style:none}
c) Img{border: 2px solid #000000}
d) None of the above
Hue, Saturation, Light, Alpha are used to represent a color in …… model *
1 point
CMYK
HSLA
RGBA
……. Is a smooth blending of shades from one color to another *
1 point
Brightness
Gradient
Hue
Saturation
………. Is a small image con몭gured to line a larger version of that image *
Background image
Thumbnail image
Image link
Image optimization
1 point
For block display element, the width of element content extends to
browser margin *
1 point
True
False
………… are guidelines for using elements *
1 point
A) Reuse images
B) Consider image 몭le size with image quality
C) Consider image load time
D) All of the above
…… are sources for graphics *
1 point
A) Take digital photographs
B) Scan your photographs
C) Purchase/download professional quality graphics
D) All of the above
‫ﺍﺩﻋﻳﻠﻲ ﺩﻋﻭﻩ ﺣﻠﻭﻩ‬
Your answer
Submit
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy
Forms
Forms
Download