Deck 22: Internet Networking
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/74
العب
ملء الشاشة (f)
Deck 22: Internet Networking
1
_____________ attempts reliable delivery of data, with retries if there are failures. It also notifies the sender whether or not the attempt succeeded.
A) IP
B) FTP
C) HTTP
D) TCP
A) IP
B) FTP
C) HTTP
D) TCP
D
2
If your data gets lost or garbled during transmission from one computer to another, what is responsible for ensuring that the recipient is aware of the unfortunate fact and does not rely on incomplete data?
A) TCP
B) IP
C) HTTP
D) DNS
A) TCP
B) IP
C) HTTP
D) DNS
B
3
The numbers 130.65.86.66 denote a(n) ____________________.
A) TCP address
B) IP address
C) URL address
D) FTP address
A) TCP address
B) IP address
C) URL address
D) FTP address
B
4
If a computer wants to request information from gateway.com, it must first ask a(n) ____ server to translate the domain name into a numeric Internet address.
A) DNS
B) socket
C) URL
D) IP
A) DNS
B) socket
C) URL
D) IP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
5
What does the acronym POP stand for?
A) Point to Point
B) Post Office Point
C) Protocol Of Point
D) Post Office Protocol
A) Point to Point
B) Post Office Point
C) Protocol Of Point
D) Post Office Protocol
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
6
The term _____________ data refers to the data that describe how to reach the intended recipient and how to check for errors and data loss in the transmission.
A) packet
B) socket
C) application data
D) network protocol
A) packet
B) socket
C) application data
D) network protocol
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
7
Two kinds of data are transmitted between computers: ______________ refers to the data that one computer actually wants to send to another. Network protocol data are the data that describe how to reach the intended recipient and how to check for errors and data loss in the transmission.
A) packets
B) transmission data
C) application data
D) socket data
A) packets
B) transmission data
C) application data
D) socket data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
8
The ____________ translates domain names into Internet addresses.
A) DSN
B) DNIP
C) DNS
D) TCP
A) DSN
B) DNIP
C) DNS
D) TCP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
9
____ has built-in provisions for retrying incomplete transmissions.
A) TCP
B) IP
C) DNS
D) HTTP
A) TCP
B) IP
C) DNS
D) HTTP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
10
The ____ is a complex collection of pathways on which a message can travel from one access point to another.
A) IP
B) HTTP protocol
C) HTML
D) Internet
A) IP
B) HTTP protocol
C) HTML
D) Internet
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
11
Each IP ____ is delivered separately, and each one that is a part of the same transmission can take different routes through the Internet.
A) packet
B) socket
C) address
D) port number
A) packet
B) socket
C) address
D) port number
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
12
____________________ has no provision for retrying an incomplete transmission.
A) TCP
B) IP
C) FTP
D) HTTP
A) TCP
B) IP
C) FTP
D) HTTP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
13
What are among the most important pieces of information that must be included in an IP packet?
I) The Internet address of the recipient
II) The URL of the recipient
III) The Internet address of the sender
IV) The port number of the sender
A) I, III, and IV
B) I, II, and III
C) II, III, and IV
D) I, II, III, and IV
I) The Internet address of the recipient
II) The URL of the recipient
III) The Internet address of the sender
IV) The port number of the sender
A) I, III, and IV
B) I, II, and III
C) II, III, and IV
D) I, II, III, and IV
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
14
_______ ________ was developed to enable different local area networks to communicate with each other and has become the basis for connecting computers around the world over the Internet.
A) TCP
B) IP
C) FTP
D) HTTP
A) TCP
B) IP
C) FTP
D) HTTP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
15
IP breaks up large chunks of data into more manageable ____________________.
A) packets
B) sockets
C) application data
D) network protocol data
A) packets
B) sockets
C) application data
D) network protocol data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of the following protocols is used to send email messages?
A) POP
B) IP
C) SMTP
D) TCP
A) POP
B) IP
C) SMTP
D) TCP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
17
A(n) _______________ is a set of instructions and rules that the client and server follow to allow communication between them. Each will know what to send and what to expect to receive from its partner in the communication.
A) URL
B) Internet
C) protocol in network programming
D) File Transfer Protocol
A) URL
B) Internet
C) protocol in network programming
D) File Transfer Protocol
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
18
Suppose you use the URLGet program in Section 22.5 to get a web page from a server that does not exist, such as http://wombat.java/index.html. What will happen?
A) The call to the URL constructor will throw an exception.
B) The call to getResponseCode will throw an exception.
C) The call to getResponseCode will return the error code 404.
D) The call to getInputStream will throw an exception.
A) The call to the URL constructor will throw an exception.
B) The call to getResponseCode will throw an exception.
C) The call to getResponseCode will return the error code 404.
D) The call to getInputStream will throw an exception.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
19
__________________ is the protocol that defines communication between Web browsers and Web servers.
A) TCP/IP
B) Telnet
C) HTTP
D) IP
A) TCP/IP
B) Telnet
C) HTTP
D) IP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
20
The ____________ has one function, to attempt to deliver data from one computer to another across the Internet.
A) TCP/IP
B) IP
C) HTTP
D) DNS
A) TCP/IP
B) IP
C) HTTP
D) DNS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
21
Suppose you use the URLGet program in Section 22.5 to get a web page that does not exist on a server (which does exist). Assuming that the server is otherwise working properly, what will happen?
A) The call to openConnection will throw an exception.
B) The call to getResponseCode will return the error code 404.
C) The call to getResponseMessage will return null.
D) The call to getInputStream will throw an exception.
A) The call to openConnection will throw an exception.
B) The call to getResponseCode will return the error code 404.
C) The call to getResponseMessage will return null.
D) The call to getInputStream will throw an exception.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
22
To connect to the HTTP port (80) of the server yahoo.com, you use:
A) Socket s = new Socket(80, yahoo.com);
B) Socket s = connect("yahoo.com", 80);
C) Socket s = new Socket("yahoo.com", 80);
D) java yahoo.com 80
A) Socket s = new Socket(80, yahoo.com);
B) Socket s = connect("yahoo.com", 80);
C) Socket s = new Socket("yahoo.com", 80);
D) java yahoo.com 80
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
23
The ____ program is a useful tool for establishing test connections with servers.
A) DNS
B) HTML
C) Telnet
D) TCP
A) DNS
B) HTML
C) Telnet
D) TCP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which code creates a server socket on port PORT_NUMBER and listens for a connection?
A) ServerSocket ss = new ServerSocket(PORT_NUMBER);
Socket sock = ss.accept();
B) Socket ss = new Server(PORT_NUMBER);
ServerSocket sock = ss.accept();
C) ServerSocket ss = new ServerSocket();
Socket sock = ss.accept();
D) ServerSocket ss = new ServerSocket(PORT_NUMBER);
Socket sock = new Socket(ss.accept());
A) ServerSocket ss = new ServerSocket(PORT_NUMBER);
Socket sock = ss.accept();
B) Socket ss = new Server(PORT_NUMBER);
ServerSocket sock = ss.accept();
C) ServerSocket ss = new ServerSocket();
Socket sock = ss.accept();
D) ServerSocket ss = new ServerSocket(PORT_NUMBER);
Socket sock = new Socket(ss.accept());
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
25
What are the steps involved in designing a client/server application?
I) Design a communication protocol.
II) Test the server with the Telnet program.
III) Implement the server program.
IV) Write a client program.
A) I
B) I and II
C) I, II, and III
D) I, II, III, and IV
I) Design a communication protocol.
II) Test the server with the Telnet program.
III) Implement the server program.
IV) Write a client program.
A) I
B) I and II
C) I, II, and III
D) I, II, III, and IV
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
26
Which of the following statements is correct?
A) HTML is a protocol that describes the command set for web server requests.
B) Web servers know how to display HTML documents.
C) Web servers know how to issue HTTP commands.
D) The Telnet program is not a browser and does not understand HTML tags.
A) HTML is a protocol that describes the command set for web server requests.
B) Web servers know how to display HTML documents.
C) Web servers know how to issue HTTP commands.
D) The Telnet program is not a browser and does not understand HTML tags.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
27
Which of the following HTTP commands supplies input to a server-side command and returns the result?
A) CONNECT
B) DELETE
C) HEAD
D) POST
A) CONNECT
B) DELETE
C) HEAD
D) POST
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
28
A(n) ____ describes how data for a particular application is transmitted.
A) URL
B) application protocol
C) socket
D) IP address
A) URL
B) application protocol
C) socket
D) IP address
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
29
Which of the following is not an HTTP command?
A) HEAD
B) BODY
C) PUT
D) OPTIONS
A) HEAD
B) BODY
C) PUT
D) OPTIONS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
30
Which code fragment creates a server running at port 6666 and sends one line of text, "Hello from earth" over and over to any machine that connects to the server.
A) ServerSocket ss = new ServerSocket(6666);
Socket sock = ss.accept();
While (true)
{
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello from earth");
Pw)flush();
Pw)close();
}
B) ServerSocket ss = new ServerSocket(6666);
While (true)
{
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello from earth");
Socket sock = ss.accept();
}
C) ServerSocket ss = new ServerSocket(6666);
While (true)
{
Socket sock = ss.accept();
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello from earth");
Pw)flush();
Pw)close();
}
D) Socket sock = ss.accept();
While (true)
{
ServerSocket ss = new ServerSocket(6666);
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello from earth");
Pw)flush();
Pw)close();
}
A) ServerSocket ss = new ServerSocket(6666);
Socket sock = ss.accept();
While (true)
{
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello from earth");
Pw)flush();
Pw)close();
}
B) ServerSocket ss = new ServerSocket(6666);
While (true)
{
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello from earth");
Socket sock = ss.accept();
}
C) ServerSocket ss = new ServerSocket(6666);
While (true)
{
Socket sock = ss.accept();
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello from earth");
Pw)flush();
Pw)close();
}
D) Socket sock = ss.accept();
While (true)
{
ServerSocket ss = new ServerSocket(6666);
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello from earth");
Pw)flush();
Pw)close();
}
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
31
Show the command line that establishes a telnet connection with echo server (port 7) running on the computer www.eecs.utoledo.edu.
A) telnet 7 www.eecs.utoledo.edu
B) connect www.eecs.utoledo.edu 7
C) telnet www.eecs.utoledo.edu 7
D) tcp www.eecs.utoledo.edu 7
A) telnet 7 www.eecs.utoledo.edu
B) connect www.eecs.utoledo.edu 7
C) telnet www.eecs.utoledo.edu 7
D) tcp www.eecs.utoledo.edu 7
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
32
Suppose that sock refers to a TCP socket connected to another machine, and in is aScanner. Which code sends the string "Who is there?" to the other machine, receives the return answer, and then prints it?
A) PrintWriter pw = new PrintWriter(sock.getOutputStream().println("Who is there?"));
InputStream instream = sock.getInputStream();
Scanner in = new Scanner(instream);
System.out.println(in.nextLine());
B) PrintWriter pw = new PrintWriter(sock.getInputStream());
Pw)println("Who is there?");
Pw)flush();
InputStream instream = sock.getInputStream();
Scanner in = new Scanner(instream);
System.out.println(in.nextLine());
C) PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)flush("Who is there");
InputStream instream = sock.getInputStream();
Scanner in = new Scanner(instream);
System.out.println(in.nextLine());
D) PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Who is there?");
Pw)flush();
InputStream instream = sock.getInputStream();
Scanner in = new Scanner(instream);
System.out.println(in.nextLine());
A) PrintWriter pw = new PrintWriter(sock.getOutputStream().println("Who is there?"));
InputStream instream = sock.getInputStream();
Scanner in = new Scanner(instream);
System.out.println(in.nextLine());
B) PrintWriter pw = new PrintWriter(sock.getInputStream());
Pw)println("Who is there?");
Pw)flush();
InputStream instream = sock.getInputStream();
Scanner in = new Scanner(instream);
System.out.println(in.nextLine());
C) PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)flush("Who is there");
InputStream instream = sock.getInputStream();
Scanner in = new Scanner(instream);
System.out.println(in.nextLine());
D) PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Who is there?");
Pw)flush();
InputStream instream = sock.getInputStream();
Scanner in = new Scanner(instream);
System.out.println(in.nextLine());
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
33
The ____ is used to download received messages from e-mail servers.
A) SMTP
B) TCP
C) IP
D) POP
A) SMTP
B) TCP
C) IP
D) POP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
34
A(n) ____ is a pointer to an information resource on the World Wide Web.
A) URL
B) socket
C) IP address
D) domain name
A) URL
B) socket
C) IP address
D) domain name
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
35
Write a code fragment that connects to a server running on gorge.divms.uiowa.edu at port 2345 and reads one line of text sent by the server.
A) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
Scanner scan = new Scanner(sock.getOutputStream());
String line = scan.nextLine();
B) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
Scanner scan = new Scanner(sock.getInputStream());
String line = scan.nextLine();
C) Scanner scan = new Scanner(sock.getInputStream());
Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
String line = scan.nextLine();
D) Socket sock = new Socket(2345, gorge.divms.uiowa.edu);
Scanner scan = new Scanner(sock.getInputStream());
String line = scan.next();
A) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
Scanner scan = new Scanner(sock.getOutputStream());
String line = scan.nextLine();
B) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
Scanner scan = new Scanner(sock.getInputStream());
String line = scan.nextLine();
C) Scanner scan = new Scanner(sock.getInputStream());
Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
String line = scan.nextLine();
D) Socket sock = new Socket(2345, gorge.divms.uiowa.edu);
Scanner scan = new Scanner(sock.getInputStream());
String line = scan.next();
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
36
A ______ is an object that encapsulates a TCP connection.
A) packet
B) socket
C) client
D) server
A) packet
B) socket
C) client
D) server
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
37
What does the acronym SMTP stand for?
A) Simple Mail Transfer Protocol
B) Small Mail Transport Protocol
C) Simple Mail Transport Protocol
D) Small Mail Transfer Protocol
A) Simple Mail Transfer Protocol
B) Small Mail Transport Protocol
C) Simple Mail Transport Protocol
D) Small Mail Transfer Protocol
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
38
For test protocols, turn the socket streams into:
A) scanners and readers.
B) scanners and printers.
C) scanners and writers.
D) scanners and servers.
A) scanners and readers.
B) scanners and printers.
C) scanners and writers.
D) scanners and servers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
39
Write a code fragment that connects to a server running on gorge.divms.uiowa.edu at port 2345 and sends the message "Hello server" to the server and then reads the one-line response from the server.
A) Socket sock = new Socket(2345, gorge.divms.uiowa.edu);
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello server");
Pw)flush();
String line = scan.nextLine();
Scanner scan = new Scanner(sock.getInputStream());
B) Socket sock = new Socket(gorge.divms.uiowa.edu);
PrintWriter pw = new PrintWriter(sock.getOutputStream(), 2345);
Pw)println("Hello server");
Pw)flush();
Scanner scan = new Scanner(sock.getInputStream());
String line = scan.nextLine();
C) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello server");
Pw)flush();
Scanner scan = new Scanner(sock.getInputStream());
String line = scan.nextLine();
D) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
PrintWriter pw = new PrintWriter(sock.getInputStream());
Pw)println("Hello server");
Pw)flush();
Scanner scan = new Scanner(sock.getOutputStream());
String line = scan.nextLine();
A) Socket sock = new Socket(2345, gorge.divms.uiowa.edu);
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello server");
Pw)flush();
String line = scan.nextLine();
Scanner scan = new Scanner(sock.getInputStream());
B) Socket sock = new Socket(gorge.divms.uiowa.edu);
PrintWriter pw = new PrintWriter(sock.getOutputStream(), 2345);
Pw)println("Hello server");
Pw)flush();
Scanner scan = new Scanner(sock.getInputStream());
String line = scan.nextLine();
C) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
PrintWriter pw = new PrintWriter(sock.getOutputStream());
Pw)println("Hello server");
Pw)flush();
Scanner scan = new Scanner(sock.getInputStream());
String line = scan.nextLine();
D) Socket sock = new Socket(gorge.divms.uiowa.edu, 2345);
PrintWriter pw = new PrintWriter(sock.getInputStream());
Pw)println("Hello server");
Pw)flush();
Scanner scan = new Scanner(sock.getOutputStream());
String line = scan.nextLine();
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
40
_________ objects are used for communication (IO) between two computers (client and server).
A) ServerSocket
B) Socket
C) ClientSocket
D) Packet
A) ServerSocket
B) Socket
C) ClientSocket
D) Packet
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
41
The ______ method of the ServerSocket class waits for a client connection.
A) wait()
B) connect()
C) accept()
D) next()
A) wait()
B) connect()
C) accept()
D) next()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
42
To kill a server that was started in a shell window, ________.
A) press Ctrl+C
B) press Ctrl+Z
C) call the kill method
D) servers don't stop.
A) press Ctrl+C
B) press Ctrl+Z
C) call the kill method
D) servers don't stop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
43
The ______ method empties the buffer and forwards all waiting characters to the destination.
A) print
B) send
C) scan
D) flush
A) print
B) send
C) scan
D) flush
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
44
A print writer buffers the characters that you send to it. To make sure that the server gets a complete request at a time, you need to ________ the buffer.
A) print
B) send
C) scan
D) flush
A) print
B) send
C) scan
D) flush
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
45
To retrieve the response code and message from an HttpURLConnection object, you need __________________.
A) to use the getInputStream() method.
B) to use the getURLConnection() method.
C) to use the getResponseCode() and getResponseMessage() methods.
D) to use the getCodeResponse() method.
A) to use the getInputStream() method.
B) to use the getURLConnection() method.
C) to use the getResponseCode() and getResponseMessage() methods.
D) to use the getCodeResponse() method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
46
When a web page is loaded, the browser stores it in a ________ directory.
A) root
B) my document
C) cashe
D) cache
A) root
B) my document
C) cashe
D) cache
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
47
When you communicate with a web server to obtain data, you have two choices:
I) You can make a socket connection and send GET and POST commands.
II) You can make a server connection and send GET and POST commands.
III) You can use the URLConnection class and have it issue the commands on your behalf.
IV) You can use the URL class and have it issue the commands on your behalf.
A) I and II.
B) II and III.
C) III and I.
D) IV and II.
I) You can make a socket connection and send GET and POST commands.
II) You can make a server connection and send GET and POST commands.
III) You can use the URLConnection class and have it issue the commands on your behalf.
IV) You can use the URL class and have it issue the commands on your behalf.
A) I and II.
B) II and III.
C) III and I.
D) IV and II.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
48
A thread dies ______________
A) when the client quits or disconnects.
B) when the run method exits.
C) when the client quits or disconnects and/or when the run method exits.
D) the thread runs forever in the background.
A) when the client quits or disconnects.
B) when the run method exits.
C) when the client quits or disconnects and/or when the run method exits.
D) the thread runs forever in the background.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
49
A successful response has status _______________.
A) 200 OK.
B) 404 OK.
C) 0 OK.
D) 100 OK.
A) 200 OK.
B) 404 OK.
C) 0 OK.
D) 100 OK.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
50
Buffering the characters means:
A) characters are immediately sent to their destination.
B) characters are not placed in an array.
C) characters are not immediately sent to their destination.
D) characters are being flushed.
A) characters are immediately sent to their destination.
B) characters are not placed in an array.
C) characters are not immediately sent to their destination.
D) characters are being flushed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
51
In a communication protocol, can the sender indicate how many bytes are contained in the request?
A) Yes, the web server does that at the end of the GET request.
B) Yes, the web browser does that in POST request.
C) Yes, the web browser does that at the end of the HTTP header.
D) No, the sender can't indicate how many bytes are contained in the request.
A) Yes, the web server does that at the end of the GET request.
B) Yes, the web browser does that in POST request.
C) Yes, the web browser does that at the end of the HTTP header.
D) No, the sender can't indicate how many bytes are contained in the request.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
52
A page not found has status code _______________.
A) 200 not found.
B) 404 not found.
C) 0 not found.
D) 100 not found.
A) 200 not found.
B) 404 not found.
C) 0 not found.
D) 100 not found.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
53
The _________ class makes it easy to fetch a file from a web server.
A) FileConnection
B) ServerConnection
C) ClientConnection
D) URLConnection
A) FileConnection
B) ServerConnection
C) ClientConnection
D) URLConnection
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
54
The HTTP response code 404 means _______________.
A) the response is successful.
B) the page is found successfully.
C) the page was not found.
D) the connection is lost.
A) the response is successful.
B) the page is found successfully.
C) the page was not found.
D) the connection is lost.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
55
The HTTP response code 200 means _______________.
A) the response is successful.
B) the page is found successfully.
C) the page was not found.
D) the connection is lost.
A) the response is successful.
B) the page is found successfully.
C) the page was not found.
D) the connection is lost.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
56
The Java library provides a _________ class that can take care of the socket connection to a web server.
A) SocketConnection
B) ServerConnection
C) ClientConnection
D) URLConnection
A) SocketConnection
B) ServerConnection
C) ClientConnection
D) URLConnection
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
57
To retrieve the response code from a URLConnection object, you need __________________.
A) to cast the HttpURLConnection object to the URLConnect subclass.
B) to cast the URLConnection object to the HttpURLConnect subclass.
C) to use the getInputStream() method.
D) to use the getCodeResponse() method.
A) to cast the HttpURLConnection object to the URLConnect subclass.
B) to cast the URLConnection object to the HttpURLConnect subclass.
C) to use the getInputStream() method.
D) to use the getCodeResponse() method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
58
For the server to execute the run method in a separate thread for each client, the application program needs to implement the _____ interface.
A) Running
B) Runtime
C) Server
D) Runnable
A) Running
B) Runtime
C) Server
D) Runnable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
59
The following command: java pgmName hostname /
Lets you retrieve any item from a web server. The slash means:
A) the port of the hostname.
B) the root page of the web server.
C) the character to end the command.
D) the item name needs to be retrieved.
Lets you retrieve any item from a web server. The slash means:
A) the port of the hostname.
B) the root page of the web server.
C) the character to end the command.
D) the item name needs to be retrieved.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
60
When you communicate with a mail server, you ___________, or you can learn how to use Java mail extensions.
A) can write programs that send GET and POP commands.
B) can write programs that send SMTP and POST commands.
C) can write programs that send GET and POST commands
D) can write programs that send SMTP and POP commands.
A) can write programs that send GET and POP commands.
B) can write programs that send SMTP and POST commands.
C) can write programs that send GET and POST commands
D) can write programs that send SMTP and POP commands.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
61
The HTTP command PUT ____________.
A) returns the requested item.
B) stores an item on the client.
C) stores an item on the server.
D) supplies input to a client-side command.
A) returns the requested item.
B) stores an item on the client.
C) stores an item on the server.
D) supplies input to a client-side command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
62
What does TCP/IP stand for?
A) Transmission Control and Internet Protocol.
B) Transmission Control Protocol and Internet Protocol.
C) Transmission Protocol and Internet Protocol.
D) Transmission Control Protocol over Internet Protocol.
A) Transmission Control and Internet Protocol.
B) Transmission Control Protocol and Internet Protocol.
C) Transmission Protocol and Internet Protocol.
D) Transmission Control Protocol over Internet Protocol.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
63
The HTTP command OPTIONS ____________.
A) requests the item's communication options.
B) returns the item's options from the client.
C) returns the item's option on the server.
D) changes the options of the item.
A) requests the item's communication options.
B) returns the item's options from the client.
C) returns the item's option on the server.
D) changes the options of the item.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
64
The HTTP command POST ____________.
A) returns the requested item.
B) supplies input to a server-side command and returns the result.
C) requests input from the server-side command.
D) supplies input to a client-side command.
A) returns the requested item.
B) supplies input to a server-side command and returns the result.
C) requests input from the server-side command.
D) supplies input to a client-side command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
65
The HTTP command TRACE ____________.
A) traces the requested item.
B) traces an item from the client.
C) traces an item on the server.
D) traces the server communication.
A) traces the requested item.
B) traces an item from the client.
C) traces an item on the server.
D) traces the server communication.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
66
To close a connection, which of the following statements can you use?
A) URL u = new URL("http://www.yahoo.com");
URLConnection conn = u.close();
B) URL u = new URL(str);
URLConnection conn = new URLConnection(u);
C) URL u = new URL(str);
URLConnection conn = u.closeURLConnection();
D) There is no need to close the connection.
A) URL u = new URL("http://www.yahoo.com");
URLConnection conn = u.close();
B) URL u = new URL(str);
URLConnection conn = new URLConnection(u);
C) URL u = new URL(str);
URLConnection conn = u.closeURLConnection();
D) There is no need to close the connection.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
67
Sending commands over a socket connection is ___________.
A) a high-level approach.
B) a medium-level approach.
C) a low-level approach.
D) a complex approach.
A) a high-level approach.
B) a medium-level approach.
C) a low-level approach.
D) a complex approach.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
68
What does the following if statement do?
If (code == HttpURLConnetion.HTTP_OK)
A) It checks if the code is 200.
B) It checks if the code is 404.
C) It checks if the connection is still connected.
D) It checks if there is HTTP.
If (code == HttpURLConnetion.HTTP_OK)
A) It checks if the code is 200.
B) It checks if the code is 404.
C) It checks if the connection is still connected.
D) It checks if there is HTTP.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
69
To open a connection, which of the following statements can you use?
A) URL u = new URL("http://www.yahoo.com");
URLConnection conn = u.open();
B) URL u = new URL("http://www.yahoo.com");
URLConnection conn = new URLConnection(u);
C) URL u = new URL("http://www.yahoo.com");
URLConnection conn = u.openURLConnection();
D) URL u = new URL("http://www.yahoo.com");
URLConnection conn = u.openConnection();
A) URL u = new URL("http://www.yahoo.com");
URLConnection conn = u.open();
B) URL u = new URL("http://www.yahoo.com");
URLConnection conn = new URLConnection(u);
C) URL u = new URL("http://www.yahoo.com");
URLConnection conn = u.openURLConnection();
D) URL u = new URL("http://www.yahoo.com");
URLConnection conn = u.openConnection();
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
70
The HTTP command HEAD ____________.
A) stores the header information of an item on the server.
B) deletes the header information of an item from the server.
C) requests the header information of an item.
D) traces the header information of an item.
A) stores the header information of an item on the server.
B) deletes the header information of an item from the server.
C) requests the header information of an item.
D) traces the header information of an item.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
71
You should not use a ______ to connect to a web server.
A) Packet
B) Socket
C) URLConnection
D) HttpURLConnection
A) Packet
B) Socket
C) URLConnection
D) HttpURLConnection
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
72
The HTTP command GET ____________.
A) returns the requested item.
B) supplies input to a server-side command.
C) requests input from the server-side command.
D) supplies input to a client-side command.
A) returns the requested item.
B) supplies input to a server-side command.
C) requests input from the server-side command.
D) supplies input to a client-side command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
73
The HTTP command DELETE ____________.
A) deletes two items, an item on the server and an item from the client.
B) deletes an item from the client.
C) deletes an item on the server.
D) deletes input from a client-side command.
A) deletes two items, an item on the server and an item from the client.
B) deletes an item from the client.
C) deletes an item on the server.
D) deletes input from a client-side command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
74
You should use a ______ to connect to a web server.
A) Packet
B) Socket
C) URLConnection
D) HttpURLConnection
A) Packet
B) Socket
C) URLConnection
D) HttpURLConnection
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck