Pages

Sabtu, 04 Oktober 2014

PROGRAM IF : Warteg Maknyosss

PROGRAM IF
ü  IF5
//CODING PROGRAM
#include
#include
main()
{
char pilih,menu[15],bonus[20];clrscr();
cout<<"======================="<
cout<<"   Warteg Maknyosss "<
cout<<"=======================\n"<
cout<<"Pilihan Menu :"<
cout<<"A. Jengkoletot"<
cout<<"B. Peterongan"<
cout<<"----------------------"<
cout<<"Pilih Menu Warteg [A/B]: ";cin>>pilih;
cout<
if (pilih=='A' || pilih=='a')
{
cout<<"Anda memilih menu : Jengkoletot    \n";
cout<<"Anda mendapat bonus : Teh Manis   \n";
}
else if (pilih=='B' || pilih=='b')
{
cout<<"Anda memilih menu : Peterongan"<
cout<<"Anda mendapat bonus : Jus Tomat"<
}
else
{
cout<<"Anda Tidak pilih menu"<
cout<<"Anda Tidak dapat bonus"<
}
getch();
}
//OUTPUT PROGRAM

PROGRAM IF : DISKON BELANJA

 PROGRAM IF
ü  IF4
//CODING PROGRAM
#include
#include
#include
main()
{
float total_beli, diskon, total_bayar;
 clrscr();
cout<<"===---------------**---------------=== \n";
cout<<"       PROGRAM DISKON BELANJA ";
cout<<"\n===---------------**---------------=== \n\n";
cout<<"Total Pembelian = Rp. ";cin>>total_beli;
cout<
if (total_beli>=100000)
diskon = 0.1 * total_beli;
else
diskon = 0;
cout<<"======================"<
cout<<"Diskon = Rp. "<
total_bayar=total_beli-diskon;
cout<<"Total Bayar = Rp. "<
getch();
}
//OUTPUT PROGRAM

PROGRAM IF : BONUS KARYAWAN

PROGRAM IF
ü  IF3
//CODING PROGRAM
#include
#include
int main()
{
float lama_kerja, gaji, bonus, total_gaji; // deklarasi float
printf("===---------------**---------------=== \n");
printf("    PROGRAM IF 'BONUS KARYAWAN' ");
printf("\n===---------------**---------------=== \n\n");
printf ("Lama Kerja   : ");
scanf ("%f",&lama_kerja);
printf ("Gaji pegawai : ");
scanf ("%f",&gaji);
if (lama_kerja > 2 && gaji > 2000000)
{
     bonus=0.10*gaji;
}
else
{
     bonus=0;
}
total_gaji = bonus + gaji; // operasi penjumlahan
printf("\nGaji       : %10.2f",gaji);
printf("\nBonus      : %10.2f",bonus);
printf("\n-------------------------------");
printf("\nGaji Total : %10.2f",total_gaji);
getche();
return 0;
}
//OUTPUT PROGRAM

Rabu, 01 Oktober 2014

PROGRAM IF : Program Ketentuan Naik Roller Coster

A.    PROGRAM IF
//CODING PROGRAM
#include
#include
void main()
{
     int usia,tinggi;
cout<<"===---------------**---------------=== \n";
cout<<" Program Ketentuan Naik Roller Coster";
cout<<"\n===---------------**---------------=== \n\n";
                 cout<<"Masukan usia Anda: ";
                 cin>>usia;
                 cout<<"tinggi badan Anda :";
                 cin>>tinggi;
     if ((usia>12)&&(tinggi>100))
                 cout<<"Maka Anda boleh naik roler koster :)";
     else
                 cout<<"Maka Anda dilarang naik roler koster :)";
     getch();
     }

//OUTPUT PROGRAM

PROGRAM IF : Program Mencari Bilangan Terbesar

 PROGRAM IF1
//CODING PROGRAM
#include
#include
void main()
{
cout<<"===---------------**---------------=== \n";
cout<<"   Program Mencari Bilangan Terbesar ";
cout<<"\n===---------------**---------------=== \n\n";
     int bil1, bil2, bil3, terbesar;
     cout<<"Masukkan bilangan 1 : ";
     cin>>bil1;
     cout<<"Masukkan bilangan 2 : ";
     cin>>bil2;
     cout<<"Masukkan bilangan 3 : ";
     cin>>bil3;
     if(bil1 > bil2)
                 terbesar = bil1;
     else
                 terbesar = bil2;
     if(bil3 > terbesar)
                 terbesar = bil3;
     cout<<"Bilangan Terbesar = "<
     getch();
}

//OUTPUT PROGRAM

JAWABAN CISCO 1.CCNA 1 Chapter 1 dan 2 V4.0

1. Which statements correctly identify the role of intermediary devices in the network? (Choose three.)
determine pathways for data
ü
initiate data communications
retime and retransmit data signals
ü
originate the flow of data
manage data flows
ü
final termination point for data flow


2. Select the statements that are correct concerning network protocols. (Choose three.)
define the structure of layer specific PDU’s
ü
dictate how to accomplish layer functions
outline the functions necessary for communications between layers
ü
limit the need for hardware compatibility
require layer dependent encapsulations
ü
eliminate standardization among vendors


3. What are two functions of encapsulation? (Choose two.)
tracks delay between end devices
enables consistent network paths for communication
allows modification of the original data before
transmission
identifies pieces of data as part of the same communication
ü
ensures that data pieces can be directed to the correct receiving end device
ü

4. What is a primary function of the trailer information added by the data link layer encapsulation?
supports error detection
ü
ensures ordered arrival of data
provides delivery to correct destination
identifies the devices on the local network
assists intermediary devices with processing and path selection


5. Which two layers of the OSI model have the same functions as the TCP/IP model Network Access Layer? (Choose two.)
Network
Transport
Physical
ü
Data Link
ü
Session


6. What is a PDU?
corruption of a frame during
transmission
data reassembled at the destination
retransmitted packets due to lost communication
a layer specific encapsulation
ü

7. Which characteristic correctly refers to end devices in a network?
manage data flows
originate data flow
ü
retime and retransmit data signals
determine pathways for data


8.

Refer to the exhibit. “Cell A” at IP address 10.0.0.34 has established an IP session with “IP Phone 1″ at IP address 172.16.1.103. Based upon the graphic, which device type best describes the function of wireless device “Cell A?”

the destination device
an end device
ü
an intermediate device
a media device




9.

Refer to the exhibit. Which three labels correctly identify the network types for the network segments that are shown? (Choose three.)

Network A — WAN
Network B — WAN
ü
Network C — LAN
ü
Network B — MAN
Network C — WAN
Network A – LAN
ü

10. Which three statements best describe a Local Area Network (LAN)? (Choose three.)
A LAN is usually in a single geographical area.
ü
The network is administered by a single organization.
ü
The connection between segments in the LAN is usually through a leased connection.
The security and
access control of the network are controlled by a service provider.
A LAN provides network services and access to applications for users within a common organization.
ü
Each end of the network is generally connected to a
Telecommunication Service Provider (TSP).


11.

Refer to the exhibit. Which networking term describes the data interleaving process represented in the graphic?

piping
PDU
streaming
multiplexing
ü
encapsulation


12. What is the primary purpose of Layer 4 port assignment?
to identify devices on the local media
to identify the hops between source and destination
to identify to the intermediary devices the best path through the network
to identify the source and destination end devices that are communicating
to identify the processes or services that are communicating within the end devices
ü

13. What device is considered an intermediary device?
file server
IP phone
laptop
printer
switch
ü


14.

Refer to the exhibit. Which term correctly identifies the device type that is included in the area B?

source
end
transfer
intermediary
ü

15.

Refer to the exhibit. What type of network is shown?

WAN
MAN
LAN
ü
WLAN


16. Which layer encapsulates the segment into packets?
physical
data link
network
ü
transport


17. What can be identified by examining the network layer header?
the destination device on the local media
the destination host address
ü
the bits that will be transferred over the media
the source application or process creating the data



18.

Refer to the exhibit. Which set of devices contains only end devices?

A, C, D
B, E, G, H
C, D, G, H, I, J
D, E, F, H, I, J
E, F, H, I, J
ü

19. During the encapsulation process, what occurs at the data link layer?
No address is added.
The logical address is added.
The physical address is added.
ü
The process port number is added.


20. What is the purpose of the TCP/IP Network Access layer?
path determination and packet switching
data presentation
reliability,
flow control, and error detection
network media control
ü
the division of segments into packets


21. What is the proper order of the layers of the OSI model from the highest layer to the lowest layer?
physical, network, application, data link, presentation, session, transport
application, physical, session, transport, network, data link, presentation
application, presentation, physical, session, data link, transport, network
application, presentation, session, transport, network, data link, physical
ü
presentation, data link, session, transport, network, physical, application


22. What application layer protocol is commonly used to support for file transfers between a client and a server?
HTML
HTTP
FTP
ü
Telnet


23. What are two forms of application layer software? (Choose two.)
applications
ü
dialogs
requests
services
ü
syntax


24. A network administrator is designing a network for a new branch office of twenty-five users. What are the advantages of using a client-server model? (Choose two.)
centralized administration
ü
does not require specialized software
security is easier to enforce
ü
lower cost implementation
provides a single point of failure


25. What is the purpose of resource records in DNS?
temporarily holds resolved entries
used by the server to resolve names
ü
sent by the client to during a query
passes authentication information between the server and client


26. What is the automated service that matches resource names with the required IP address?
HTTP
SSH
FQDN
DNS
ü
Telnet
SMTP


27. What three protocols operate at the Application layer of the OSI model? (Choose three.)
ARP
DNS
ü
PPP
SMTP
ü
POP
ü
ICMP


28. What are three properties of peer-to-peer applications? (Choose three.)
acts as both a client and server within the same communication.
ü
requires centralized account administration.
hybrid mode includes a centralized directory of files.ü
can be used in client-server networks.
ü
requires a direct physical connection between devices.
centralized authentication is required.


29. Which application layer protocols correctly match a corresponding function? (Choose two.)
DNS dynamically allocates IP addresses to hosts
HTTP transfers data from a web server to a client
ü
POP delivers email from the client to the server
email server
SMTP supports
file sharing
Telnet provides a virtual connection for
remote accessü

30. Which email components are used to forward mail between servers? (Choose two.)
MDA
IMAP
MTA
ü
POP
SMTP
ü
MUA


31. As compared to SSH, what is the primary disadvantage of telnet?
not widely available
does not support encryption
ü
consumes more network bandwidth
does not support authentication


32. Which statements are correct concerning the role of the MTA in handling email? (Choose three.)
routes email to the MDA on other servers
receives email from the client’s MUA
ü
receives email via the POP3 protocol
passes email to the MDA for final delivery
ü
uses SMTP to route email between servers
ü
delivers email to clients via the POP3 protocol


33. used to control the transfer of web resources from a web server to a client browser? (Choose two.)
ASP
FTP
HTML
HTTP
ü
HTTPS
ü
IP


34. A small home network has been installed to interconnect three computers together for gaming and file sharing. What two properties represent this network type? (Choose two.)
User accounts are centralized.
Security is difficult to enforce.
ü
Specialized operating system software is required.
File permissions are controlled by a single computer.
A computer that responds to a
file sharing request is functioning as a server.ü

35. Which layer of the OSI model supplies services that allow user to interface with the network?
physical
session
network
presentation
application
ü
transport


36.

Refer to the exhibit. What is the destination port for the communication that is represented on line 5?

80ü
1261
15533
3912
65520


37. What are two characteristics of peer-to-peer networks? (Choose two.)
scalable
one way data flow
decentralized resources
ü
centralized user accounts
resource sharing without a
dedicated serverü

38. What application layer protocol describes the services that are used for file sharing in Microsoft networks?
DHCP
DNS
SMB
ü
SMTP
Telnet


39. What are two characteristics of clients in data networks? (Choose two.)
use daemons
initiate data exchanges
ü
are repositories of data
may upload data to servers
ü
listen for requests from servers


40. What is the role of the OSI application layer?
provides segmentation of data
provides encryption and conversion of data
provides the interface between the applications on either end of the network
ü
provides control of all the data flowing between the source and destination devices


41. How does the application layer on a server usually process multiple client request for services?
ceases all connections to the service
denies multiple connections to a single daemon
suspends the current connection to allow the new connection
ü
uses support from lower layer functions to distinguish between connections to the service