Selasa, 26 Juni 2018

Romadhon-Syawal 2018

Alhamdulillah masih dipertemukan bulan yang penuh keberkahanan dan ampunan. Semoga kita selalu dalam lindungan Allah SWT. Gw apdet aja di blog sini karena dah lama ga nulis haha. Sambil mengasah mengetik 10 jari gw nih. Alhamdulillah di bulan penuh keberkahan ini, gw udah dapet kerja, gw pun ga nyangka awal dari iseng, jadi bisa keterima haha. Gw sekarang kerja, eh tapi gw kurang suka dengan kata "kerja", kita bilangnya gawean aja yaa haha. Gw sekarang gawe di daerah jatinegara. Udah masuk antar provinsi nih haha.
Ini kan harusnya diupdate pas bulan romadhon, eh udah bulan syawal.
Berarti udah lebaran dong yaa, minal aidin wal faidzin semuanya.
Mohon maaf lahir batin, kalo punya salah mohon dimaafkan yaa...
Sebenernya kalo mau cerita, banyak bgt cerita yang mo dishare, kadang gw nya yang suka bingung enakan cerita part apa...
Kalau gitu gw memilih untuk tidak bercerita haha.
Sekian terimakasih semuanya, ku sayang kalian :)

Rabu, 21 Maret 2018

Latihan 2 CheckBox menggunakan android eclipse portable

Buat soal berikut yang penggunannya dapat memilih lebih dari satu :



Jawaban yang bener adalah "Bandung" dan "Banjarmasin".
Setiap jawaban benar bernilai 10, tetapi setiap jawaban yang salah akan dikurangi 5.  Jadi jika pengguna menjawab Bandung, Bogor” dan Banjarmasin” dan maka pengguna mendapat nilai 20 – 5 = 15.  Tampilkan nilai ini.


activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Manakah dibawah ini ibukota propinsi?" />

    <CheckBox
        android:id="@+id/cbBandung"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/textView1"
        android:layout_below="@+id/textView1"
        android:layout_marginLeft="20dp"
        android:layout_marginTop="28dp"
        android:text="Bandung" />

    <CheckBox
        android:id="@+id/cbBogor"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/cbBandung"
        android:layout_below="@+id/cbBandung"
        android:text="Bogor" />

    <CheckBox
        android:id="@+id/cbBanjarmasin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/cbBogor"
        android:layout_below="@+id/cbBogor"
        android:text="Banjarmasin" />

    <Button
        android:id="@+id/klikHasil"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/cbBontang"
        android:layout_centerVertical="true"
        android:onClick="klikHasilClick"
        android:text="Periksa Nilai" />

    <CheckBox
        android:id="@+id/cbBontang"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/cbBanjarmasin"
        android:layout_below="@+id/cbBanjarmasin"
        android:text="Bontang" />

    <EditText
        android:id="@+id/tvHasil"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/klikHasil"
        android:layout_below="@+id/klikHasil"
        android:layout_marginLeft="14dp"
        android:layout_marginTop="38dp"
        android:ems="10"
        android:inputType="textPersonName" >

        <requestFocus />
    </EditText>

</RelativeLayout>


Graphical Layout




disini nama package yang saya gunakan adalah tugas1a


MainActivity.java

package com.tugas1a;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
   
    public void klikHasilClick(View v){
                EditText tvHasil = (EditText) findViewById(R.id.tvHasil);
                CheckBox cbBandung = (CheckBox) findViewById(R.id.cbBandung);
                CheckBox cbBogor = (CheckBox) findViewById(R.id.cbBogor);
                CheckBox cbBanjarmasin = (CheckBox) findViewById(R.id.cbBanjarmasin);
                CheckBox cbBontang = (CheckBox) findViewById(R.id.cbBontang);
               
                int s = 0;
                int x = 5;
                int z = 10;
               
                if (cbBandung.isChecked()){
                                s = s+z;
                }
                if (cbBogor.isChecked()){
                                s = s-x;
                }
                if (cbBanjarmasin.isChecked()){
                                s = s+z;
                }
                if (cbBontang.isChecked()){
                                s = s-x;
                }
               
                String hsl = String.valueOf(s);
                tvHasil.setText(hsl);
    }


run as program







Latihan 2 RadioButton menggunakan android eclipse portable


Buat soal berikut yang penggunanya hanya dapat memilih tepat satu:





Jawaban yang benar adalah Kendari.  Jika pengguna memilih pilihan yang benar akan mendapat nilai 10, sedangkan jika menjawab salah maka akan mendapat nilai -2



activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Sebutkan ibkota propinsi Sulawesi Tenggara?" />

    <RadioGroup
        android:id="@+id/rbKota"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/textView1"
        android:layout_below="@+id/textView1"
        android:layout_marginLeft="42dp"
        android:layout_marginTop="26dp" >

        <RadioButton
            android:id="@+id/rbSMR"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Samarinda" />

        <RadioButton
            android:id="@+id/rbKendari"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Kendari" />

        <RadioButton
            android:id="@+id/rbPalu"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Palu" />

        <RadioButton
            android:id="@+id/rbMks"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Makassar" />
    </RadioGroup>

    <Button
        android:id="@+id/bHasil"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/rbKota"
        android:layout_centerVertical="true"
        android:onClick="bHasilClick"
        android:text="Periksa nilai" />

    <EditText
        android:id="@+id/etHasil"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:ems="10"
        android:inputType="textPersonName" >

        <requestFocus />
    </EditText>

</RelativeLayout>

Graphical Layout





MainActivity.java

package com.tugas1b;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioGroup;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
    public void bHasilClick (View v){
    EditText etHasil = (EditText) findViewById(R.id.etHasil);
    RadioGroup rbIbukota = (RadioGroup) findViewById(R.id.rbKota);
    int id = rbIbukota.getCheckedRadioButtonId();
   
    int s = 0;
    int r = 10;
    int p = 5;
    if(id == R.id.rbKendari){
    s = s + r;
    }
    else {
    s = r - p;
    }
    String hsl = String.valueOf(s);
    etHasil.setText(hsl);
   
    }
    
}


Run As Program









Jumat, 23 Februari 2018

membuat tampilan sapa dengan android eclipse portable

Hello XXX

activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <TextView
        android:id="@+id/tvSalam"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" />

    <EditText
        android:id="@+id/etNama"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/tvSalam"
        android:layout_below="@+id/etNama"
        android:layout_marginTop="16dp"
        android:layout_toLeftOf="@+id/bSapa"
        android:ems="10"
        android:inputType="textPersonName" >

        <requestFocus />
    </EditText>

    <Button
        android:id="@+id/bSapa"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignTop="@+id/editText1"
        android:onClick="bSapaClick"
        android:layout_marginRight="25dp"
        android:text="Sapa" />


</RelativeLayout>


Graphical Layout




Main Activity.java

package com.helloword;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
   
    public void bSapaClick(View v){
        EditText etNama = (EditText) findViewById(R.id.etNama);
        TextView tvSalam = (TextView) findViewById(R.id.tvSalam);
        String nama = etNama.getText().toString();
        tvSalam.setText("Hallo "+nama+" senang bertemu dengan anda!");
   
    }
   
}


Layout running




Kamis, 22 Februari 2018

Latihan Membuat Radio Button menggunakan Android Eclipse portable

activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <Button
        android:id="@+id/button1"
        android:onClick="klikHasilRadio"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignRight="@+id/tvHasilRadio"
        android:layout_centerVertical="true"
        android:text="Hasil" />

    <TextView
        android:id="@+id/tvHasilRadio"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/button1"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="46dp"
        android:text="Pilih salah satu klik Button"
        android:textAppearance="?android:attr/textAppearanceLarge" />

    <RadioGroup
        android:id="@+id/rgJenisKel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/tvHasilRadio"
        android:layout_alignParentTop="true" >

        <RadioButton
            android:id="@+id/rbLaki"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:checked="true"
            android:text="Laki-laki" />

        <RadioButton
            android:id="@+id/rbPerempuan"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Perempuan" />
    </RadioGroup>

</RelativeLayout>


Graphical Layout

Layout Radio Button menggunakan Radio Button grup



Main Activity.java


package com.radiobutton;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.RadioGroup;
import android.widget.TextView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
   
    public void klikHasilRadio(View v){
                TextView tvHasilRadio = (TextView) findViewById(R.id.tvHasilRadio);
                RadioGroup rgJenisKel = (RadioGroup) findViewById(R.id.rgJenisKel);
                int id = rgJenisKel.getCheckedRadioButtonId();
                String s = "";
                if (id == R.id.rbPerempuan){
                                s = "Perempuan";
                } else
                                if (id == R.id.rbLaki){
                                                s = "Laki-laki";
                                } else {
                                                s = "Tidak ada yang dipilih";
                                }
                tvHasilRadio.setText(s);
    }
}

Layout Running

ketika memilih Radio Button Laki-laki, maka ditombol Hasil muncul Laki-laki




ketika memilih Radio Button Perempuan, maka ditombol Hasil muncul Perempuan





Latihan Membuat Check Box dengan android eclipse portable

Activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <CheckBox
        android:id="@+id/cbJava"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Java" />

    <CheckBox
        android:id="@+id/cbPhp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignRight="@+id/cbJava"
        android:layout_below="@+id/cbJava"
        android:layout_marginTop="25dp"
        android:text="Php" />

    <Button
        android:id="@+id/bHasil"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/cbPhp"
        android:layout_below="@+id/cbPhp"
        android:layout_marginLeft="17dp"
        android:layout_marginTop="82dp"
        android:onClick="bHasilClick"
        android:text="Hasil" />

    <TextView
        android:id="@+id/tvHasilradio"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/cbJava"
        android:layout_below="@+id/cbPhp"
        android:layout_marginTop="27dp"
        android:text="Pilih lalu klik Button"
        android:textAppearance="?android:attr/textAppearanceLarge" />

</RelativeLayout>

Graphical Layout



MainActivity.java

package com.checkbox;

import android.R.string;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.CheckBox;
import android.widget.RadioGroup;
import android.widget.TextView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
   
    public void bHasilClick(View v){
                TextView tvHasilradio = (TextView) findViewById(R.id.tvHasilradio);
                CheckBox cbJava = (CheckBox) findViewById(R.id.cbJava);
                CheckBox cbPhp = (CheckBox) findViewById(R.id.cbPhp);
               
                String s="";
                if (cbJava.isChecked()){
                                s ="Java";
                }
                if (cbPhp.isChecked()){
                                s = s + "PHP";
                }
                tvHasilradio.setText(s);
    }
}

Layout Running







Sabtu, 10 Februari 2018

quis chapter 11 CCNA

1. Match the type of threat with the cause. (Not all options are used.)
hardware threats - physical damage to servers
environmental threats - temperature extremes
electrical threats - voltage spikes
maintenance threats - poor hadling
Other Incorrect Match Options:
unauthorized access resulting in loss of data
Refer to curriculum topic: 11.2.1
Physical threats can be classified into four categories:

Environmental threats -Temperature extremes (too hot or too cold) or humidity extremes (too wet or too dry)
Hardware threats - Physical damage to servers, routers, switches, cabling plant, and workstations
Electrical threats - Voltage spikes, insufficient supply voltage (brownouts), unconditioned power (noise), and total power loss
Maintenance threats - Poor handling of key electrical components (electrostatic discharge), lack of critical spare parts, poor cabling, and poor labeling

2. What type of traffic would most likely have the highest priority through the network?
  FTP
  instant messaging
  voice *
  SNMP
Refer to curriculum topic: 11.1.1
Not all traffic should receive the same treatment or priority through a network. Some types of traffic, such as voice and video, require the highest priority because they are very sensitive to network latency and delay. Other types of traffic, such as FTP which is not sensitive to latency and delay, should be given the lowest levels of priority so that the higher priority traffic can get through.


3. Which statement is true about Cisco IOS ping indicators??
  '!' indicates that the ping was unsuccessful and that the device may have issues finding a DNS server.
  'U' may indicate that a router along the path did not contain a route to the destination address and that the ping was unsuccessful. *
  '.' indicates that the ping was successful but the response time was longer than normal.
  A combination of '.' and '!' indicates that a router along the path did not have a route to the destination address and responded with an ICMP unreachable message.?
Refer to curriculum topic: 11.3.1
The most common indicators of a ping issued from the Cisco IOS are "!", ".", and "U". The "!" indicates that the ping completed successfully, verifying connectivity at Layer 3. The "." may indicate that a connectivity problem, routing problem, or device security issue exists along the path and that an ICMP destination unreachable message was not provided. The "U" indicates that a router along the path may not have had a route to the destination address, and that it responded with an ICMP unreachable message.

 
4. Which protocol is used by the traceroute command to send and receive echo-requests and echo-replies?
  SNMP 
  ICMP *
  Telnet 
  TCP 
Refer to curriculum topic: 11.3.2
Traceroute uses the ICMP (Internet Control Message Protocol) to send and receive echo-request and echo-reply messages.

 
5. A small company has only one router as the exit point to its ISP. Which solution could be adopted to maintain connectivity if the router itself, or its connection to the ISP, fails?
  Activate another router interface that is connected to the ISP, so the traffic can flow through it.
  Have a second router that is connected to another ISP. *
  Purchase a second least-cost link from another ISP to connect to this router. 
  Add more interfaces to the router that is connected to the internal network. 
Refer to curriculum topic: 11.1.1
Small networks generally have only one link to an ISP to establish a connection to the Internet. Problems can occur in the network, which can cause the disruption of this service. In order to keep connectivity, redundancy has to be provided. If the problem is in the router interface that is connected to the ISP, another interface can be activated on the router, so if one interface fails, traffic may be redirected toward the other interface. However, if the router itself fails, a second router that is connected to another ISP can be used as a backup.


6. On which two interfaces or ports can security be improved by configuring executive timeouts? (Choose two.)
  Fast Ethernet interfaces 
  console ports *
  serial interfaces 
  vty ports *
  loopback interfaces 
Refer to curriculum topic: 11.2.4
Executive timeouts allow the Cisco device to automatically disconnect users after they have been idle for the specified time. Console, vty, and aux ports can be configured with executive timeouts.

 
7. Which element of scaling a network involves identifying the physical and logical topologies?
  traffic analysis 
  network documentation * 
  device inventory 
  cost analysis 
Refer to curriculum topic: 11.1.3
To scale a network, several elements are required:

Network documentation - physical and logical topology
Device Inventory - list of devices that use or make up the network 
Budget - Itemized IT budget, including fiscal year equipment purchasing budget
Traffic analysis - protocols, applications, and services and their respective traffic requirements should be documented

8. 


Refer to the exhibit. The exhibited configuration is entered by a network administrator into a new router. Sometime later a network technician proceeds to log in to the router via a console connection. The technician enters techadmin as the user name and tries a password of 63t0ut0fh3r3!. What will be the result of this action?

  The router will deny access and display an error message. 
  The router will deny access and display a banner message. 
  The router will display the DT_ATC_RS3> prompt. *
  The router will be locked for 2 minutes and 30 seconds. 
Refer to curriculum topic: 11.2.4
Whenever an administrator connects to the console port, the configuration applied under the line con 0 interface determines how the user is authenticated. The console port configuration has the login command with local as the keyword. That means the username and password are required before the administrator is even allowed to see the enable mode prompt. Because the correct username and password was typed, the administrator will be presented with the enable mode prompt.

 
9. How should traffic flow be captured in order to best understand traffic patterns in a network?
  during low utilization times 
  during peak utilization times * 
  when it is on the main network segment only 
  when it is from a subset of users 
Refer to curriculum topic: 11.1.3
Capturing traffic during low utilization time will not give a good representation of the different traffic types. Because some traffic could be local to a particular segment, the  capture must be done on different network segments.

 
10. What is considered the most effective way to mitigate a worm attack?
  Change system passwords every 30 days. 
  Ensure that all systems have the most current virus definitions. 
  Ensure that AAA is configured in the network. 
  Download security updates from the operating system vendor and patch all vulnerable systems. *
Refer to curriculum topic: 11.2.3
Because worms take advantage of vulnerabilities in the system itself, the most effective way to mitigate worm attacks is to download security updates from the operating system vendor and patch all vulnerable systems.  

 
11. What is one of the most effective security tools available for protecting users from external threats?
  firewalls *
  router that run AAA services 
  patch servers 
  password encryption techniques 
Refer to curriculum topic: 11.2.3
A firewall is one of the most effective security tools for protecting internal network users from external threats.  A firewall resides between two or more networks, controls the traffic between them, and helps prevent unauthorized access. A host intrusion prevention system can help prevent outside intruders and should be used on all systems.

12. A network technician is investigating network connectivity from a PC to a remote host with the address 10.1.1.5. Which command, when issued on a Windows PC, will display the path to the remote host?
  trace 10.1.1.5
  traceroute 10.1.1.5
  tracert 10.1.1.5 *
  ping 10.1.1.5
Refer to curriculum topic: 11.3.2
The tracert command is used to initiate a trace from the command prompt on a Windows PC. The traceroute command is used to initiate a trace from a Cisco router or switch. Some other PC operating systems, such as Linux and Mac OS also use the traceroute command. The ping command does not display the network path to the remote host.

 
13. Fill in the blank. 
Network services use........... to define a set of rules that govern how devices communicate and the data formats used in a network.
Answer :
Protocols

Refer to curriculum topic: 11.1.2
Each application or network service uses protocols, which define the standards and data formats to be used. Without protocols, the data network would not have a common way to format and direct data.

 
14. Which process failed if a computer cannot access the Internet and received an IP address of 169.254.142.5?
  IP 
  DNS 
  DHCP * 
  HTTP 
Refer to curriculum topic: 11.4.3
When a Windows computer cannot communicate with an IPv4 DHCP server, the computer automatically assigns itself an IP address in the169.254.0.0/16 range. Linux and Apple computers do not automatically assign an IP address.

15. Which command will block login attempts on RouterA for a period of 30 seconds if there are 2 failed login attempts within 10 seconds?
  RouterA(config)# login block-for 10 attempts 2 within 30
  RouterA(config)# login block-for 30 attempts 2 within 10 *
  RouterA(config)# login block-for 2 attempts 30 within 10
  RouterA(config)# login block-for 30 attempts 10 within 2
Refer to curriculum topic: 11.2.4
The correct syntax is RouterA(config)# login block-for (number of seconds) attempts (number of attempts) within (number of seconds).

 
16. An administrator wants to back up a router configuration file to a USB drive that is connected to the router. Which command should the administrator use to verify that the USB drive is being recognized by the router?
  pwd
  cd USB
  dir flash0:
  show file systems *
Refer to curriculum topic: 11.2.5
The show file systems command displays all of the available file systems on the device. If usbflash0: appears then the router recognizes the USB drive as a valid storage device. The pwd command shows the current directory being navigated, and the cd command is used to change the current directory. The dir flash0: command will show the contents of flash memory, not the USB drive.

 
17. particular website does not appear to be responding on a Windows 7 computer. What command could the technician use to show any cached DNS entries for this web page?
  ipconfig /all
  arp -a
  ipconfig /displaydns *
  nslookup
Refer to curriculum topic: 11.3.4

quis chapter 10 CCNA

1. What is an advantage of SMB over FTP??
  Only with SMB can data transfers occur in both directions.
  Only SMB establishes two simultaneous connections with the client, making the data transfer faster.
  SMB is more reliable than FTP because SMB uses TCP and FTP uses UDP.
  SMB clients can establish a long-term connection to the server. *
Refer to curriculum topic: 10.2.3
SMB and FTP are client/server protocols that are used for file transfer. SMB allows the connecting device to access resources as if they were on the local client device. SMB and FTP use the TCP protocol for connection establishment and they can transfer data in both directions. FTP requires two connections between the client and the server, one for commands and replies, the other for the actual file transfer.


2. What is true about a client-server network?
  The network includes a dedicated server. *
  Each device can function as a server and a client.
  Workstations access network resources using SAMBA or Gnutella.
  Each peer accesses an index server to get the location of a resource stored on another peer in what is considered a hybrid network system.
Refer to curriculum topic: 10.1.2
In a client-server network, a dedicated server responds to service requests from clients. The roles of client and server are not shared on each host in the network. In a peer-to-peer network, computers are connected via a network and can share resources. Each host can function as a server or a client based on the nature of the transaction and what resources are used or requested. A hybrid network is one in which a server supplies index information that enables a peer to locate resources on other peers. In this case the peers can still have the role of client or server depending on the nature of the network transaction.


3. True or False?

In FTP transactions, an FTP client uses the pull method to download files from an FTP server.
  true *
  false 
Refer to curriculum topic: 10.2.3
The File Transfer Protocol (FTP) is a commonly used application layer protocol. FTP allows for data transfers between a client and a server. During data transfers, the FTP client downloads (pulls) data from the server. The FTP client can also upload (push) data to the server.

 
4. Why is DHCP preferred for use on large networks?
  Large networks send more requests for domain to IP address resolution than do smaller networks.
  DHCP uses a reliable transport layer protocol. 
  It prevents sharing of files that are copyrighted. 
Correct!
  It is a more efficient way to manage IP addresses than static address assignment.
  Hosts on large networks require more IP addressing configuration settings than hosts on small networks.
Refer to curriculum topic: 10.2.2
Static IP address assignment requires personnel to configure each network host  with addresses manually. Large networks can change frequently and have many more hosts to configure than do small networks. DHCP provides a much more efficient means of configuring and managing IP addresses on large networks than does static address assignment.

 
5. What is a common protocol that is used with peer-to-peer applications such as WireShare, Bearshare, and Shareaza?
  Ethernet 
  Gnutella * 
  POP 
  SMTP 
Refer to curriculum topic: 10.1.2
The Gnutella protocol is used when one user shares an entire file with another user. A person would load a Gnutella-based application such as gtk-gnutella or WireShare and use that application to locate and access resources shared by others.

 
6. A user is attempting to access http://www.cisco.com/ without success. Which two configuration values must be set on the host to allow this access? (Choose two.)
  DNS server *
  source port number 
  HTTP server 
  default gateway * 
  source MAC address 
Refer to curriculum topic: 10.2.2
In order to use a URL such as http://www.cisco.com, the DNS protocol must be used in order to translate the URL into an IP address. Furthermore, the host device requesting this web page must have a default gateway configured in order to communicate with remote networks.

 
7. What type of information is contained in a DNS MX record?
  the FQDN of the alias used to identify a service 
  the IP address for an FQDN entry 
  the domain name mapped to mail exchange servers *
  the IP address of an authoritative name server 
Refer to curriculum topic: 10.2.2
MX, or mail exchange messages, are used to map a domain name to several mail exchange servers that all belong to the same domain.


8. Which TCP/IP model layer is closest to the end user?
  application *
  internet 
  network access 
  transport 
Refer to curriculum topic: 10.1.1
End users use applications to interact with and use the network. The application layer of the TCP/IP model is closest to the end user. Application layer protocols are used to communicate and exchange messages with other network devices and applications. The layers of the TCP/IP model are from top to bottom (memory aid - ATIN): application, transport, internet, network access

 
9. Which command is used to manually query a DNS server to resolve a specific host name?
  nslookup *
  ipconfig /displaydns
  tracert
  ping
Refer to curriculum topic: 10.2.2
The nslookup command was created to allow a user to manually query a DNS server to resolve a given host name. The ipconfig /displaydns command only displays previously resolved DNS entries. The tracert command was created to examine the path that packets take as they cross a network and can resolve a hostname by automatically querying a DNS server. The ping command was created to test reachability on a network and can resolve a hostname by automatically querying a DNS server.

 
10. A wired laser printer is attached to a home computer. That printer has been shared so that other computers on the home network can also use the printer. What networking model is in use?
  peer-to-peer (P2P) * 
  client-based 
  master-slave 
  point-to-point 
Refer to curriculum topic: 10.1.2
Peer-to-peer (P2P) networks have two or more network devices that can share resources such as printers or files without having a dedicated server.


11. Which three layers of the OSI model provide similar network services to those provided by the application layer of the TCP/IP model? (Choose three.)
  physical layer 
  session layer *
  transport layer 
  application layer * 
  presentation layer *
  data link layer 
Refer to curriculum topic: 10.1.1
The three upper layers of the OSI model, the session, presentation, and application layers, provide application services similar to those provided by the TCP/IP model application layer. Lower layers of the OSI model are more concerned with data flow.

 
12. On a home network, which device is most likely to provide dynamic IP addressing to clients on the home network?
  a home router *
  an ISP DHCP server 
  a DNS server 
Refer to curriculum topic: 10.2.2
On a home network, a home router usually serves as the DHCP server. The home router is responsible for dynamically assigning IP addresses to clients on the home network. ISPs also use DHCP, but it usually assigns an IP address to the Internet interface of the home router, not the clients on the home network. In businesses, it is common to have a file or other dedicated server provide DHCP services to the network. Finally, a DNS server is responsible for finding the IP address for a URL, not for providing dynamic addressing to network clients.

 
13. Which three protocols or standards are used at the application layer of the TCP/IP model? (Choose three.)
  TCP 
  HTTP * 
  MPEG *
  GIF *
  IP 
  UDP 
Refer to curriculum topic: 10.1.1
HTTP, MPEG, and GIF operate at the application layer of the TCP/IP model. TCP and UDP operate at the transport layer. IP operates at the internet layer.

 
14. Which protocol can be used to transfer messages from an email server to an email client?
  SMTP 
  POP3 *
  SNMP 
  HTTP 
Refer to curriculum topic: 10.2.1
SMTP is used to send mail from the client to the server but POP3 is used to download mail from the server to the client. HTTP and SNMP are protocols that are unrelated to email.