Searching for "its"

Q:

Answer the following Program

#define CHARSIZE 8

#define MASK(y) (1 << y % CHARSIZE)

#define BITSLOT (y) (y / CHARSIZE)

#define SET(x,y) ( x[BITSLOT(y)] = MASK(y) )

#define TEST(x,y) ( x[BITSLOT(y)] & MASK(y) )

#define NUMSLOTS(n) ((n + CHARSIZE - 1) / CHARSIZE)

 

Give the above macros how would you

1. declare an array arr of 50 bits

2. put the 20th bit on

3. test whether the 40th bit is on or off

Answer

1. char arr[NUMSLOTS(50)];


2. SET (arr, 20);


3. if (TEST (arr, 40))

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

Q:

When and where did the USA first send its soldiers overseas to contain Communist expansion?

Answer

In june 1950, in South Korea

Report Error

View answer Workspace Report Error Discuss

Subject: World History

Q:

Which team advanced to the Coap America Finals 2011 without winning any of its five matches in open play?

A) Brazil B) Paraguay
C) Venezuela D) Peru
 
Answer & Explanation Answer: B) Paraguay

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

Q:

How many bits are in an IPv6 address field?

A) 24 B) 16
C) 32 D) 128
 
Answer & Explanation Answer: B) 16

Explanation:

There are 16 bits (four hex characters) in an IPv6 field.

Report Error

View Answer Report Error Discuss

Filed Under: CCNA

Q:

There are three possible routes for a router to reach a destination network. The first route is from OSPF with a metric of 782. The second route is from RIPv2 with a metric of 4. The third is from EIGRP with a composite metric of 20514560. Which route will be installed by the router in its routing table?

A) RIPv2 B) EIGRP
C) OSPF D) All three
 
Answer & Explanation Answer: B) EIGRP

Explanation:

Only the EIGRP routes will be placed in the routing table because it has the lowest administrative distance (AD), and that is always used before metrics.

Report Error

View Answer Report Error Discuss

Filed Under: CCNA

Q:

When a PC sends a packet to another PC in a remote network, what destination IP address and MAC address will be in the frame that it sends to its default gateway?

Answer

It will use the gateway interface MAC at L2 and the actual destination IP at L3. 

Report Error

View answer Workspace Report Error Discuss

Subject: CCNA

Q:

Two connected routers are configured only with RIP routing. What will be the result when a router receives a routing update that contains a higher-cost path to a network already in its routing table?

A) The updated information will be added to the existing routing table B) The update will be ignored and no further action will occur
C) The updated information will replace the existing routing table entry D) The existing routing table entry will be deleted from the routing table and all routers will exchange routing updates to reach convergence
 
Answer & Explanation Answer: B) The update will be ignored and no further action will occur

Explanation:

When a routing update is received by a router, the router first checks the administrative distance (AD) and always chooses the route with the lowest AD. However, if two routes are received and they both have the same AD and differing metrics , then the router will choose the one route with the lowest metrics or , in RIP's case, hop count.

Report Error

View Answer Report Error Discuss

Filed Under: CCNA

Q:

How does DHCP client ensure that no other computer has its assigned IP address?

A) Acknowledge receipt of a TCP segment B) Ping to its own address to see if a response is detected
C) Broadcast a Proxy ARP D) Broadcast a gratuitous ARP
 
Answer & Explanation Answer: D) Broadcast a gratuitous ARP

Explanation:

To stop possible address conflicts , a DHCP client will use gratuitous ARP (broadcast an ARP request for its own IP address) to see if another host responds.

Report Error

View Answer Report Error Discuss

Filed Under: CCNA