interview questions on cisco switching interview questions on cisco switches
1 / 11
A single '#' will create a string from the given argument, regardless of what that argument contains, while the double '##' will create a new token by concatenating the arguments.
No Tags on this question yet!
2 / 11
write( 1, c, strlen(c) );
What does this do:
printf( "%s", c );
What's the difference?
No Discussion on this question yet!
No Tags on this question yet!
3 / 11
#include
int
main( int argc, char const * argv ) {
for( int i = 0; i < argc; ++i ) {
printf("%s\n", argv[i] );
}
}
Can you tell me what this program will do when I run it like this:
No Discussion on this question yet!
No Tags on this question yet!
4 / 11
No Discussion on this question yet!
No Tags on this question yet!
5 / 11
int a( int i ) {
int c = 0;
while( i ) {
if( i & 1 ) { c++; }
i >>= 1;
}
return c;
}
No Discussion on this question yet!
No Tags on this question yet!
6 / 11
int b( int i ) {
static unsigned char n[] = {0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4};
int c = 0;
while( i ) {
c+=n[i&15];
i >>= 4;
}
return c;
}
No Discussion on this question yet!
No Tags on this question yet!
7 / 11
No Discussion on this question yet!
No Tags on this question yet!
8 / 11
No Discussion on this question yet!
No Tags on this question yet!
9 / 11
No Discussion on this question yet!
No Tags on this question yet!
10 / 11
No Discussion on this question yet!
No Tags on this question yet!
11 / 11
No Discussion on this question yet!
No Tags on this question yet!
1 / 10
(a) Red-Black Tree
(b) B-Tree
No Discussion on this question yet!
No Tags on this question yet!
2 / 10
For partial credit, or you can pick one of these:
bit vector
binary tree
std::vector
doubly linked list
No Discussion on this question yet!
No Tags on this question yet!
3 / 10
No Discussion on this question yet!
No Tags on this question yet!
4 / 10
No Discussion on this question yet!
No Tags on this question yet!
5 / 10
Question was to point out if that program will work as per semTake/semGive requirement or not? What may be the problem with that?
The problem was that while a process would be executing the semTake and another process may preempt before even the global variable is updated.
So, the second process may even take the sem.Which lead to problem ) . What could be a solution to it?
No Tags on this question yet!
6 / 10
write( 1, c, strlen(c) );
What does this do:
printf( "%s", c );
What's the difference?
No Discussion on this question yet!
No Tags on this question yet!
7 / 10
No Discussion on this question yet!
No Tags on this question yet!
8 / 10
No Discussion on this question yet!
No Tags on this question yet!
9 / 10
No Discussion on this question yet!
No Tags on this question yet!
10 / 10
perf
oprofile
gprof
No Discussion on this question yet!
No Tags on this question yet!
1 / 5
No Discussion on this question yet!
No Tags on this question yet!
2 / 5
No Discussion on this question yet!
No Tags on this question yet!
3 / 5
No Discussion on this question yet!
No Tags on this question yet!
4 / 5
No Discussion on this question yet!
No Tags on this question yet!
5 / 5
tcpdump
ping
wireshark
traceroute
ifconfig
ip
netstat
No Discussion on this question yet!
No Tags on this question yet!
- Cisco Interview Question Set 1
- Cisco Interview Question Set 2
- Cisco Interview Question Set 3
- Cisco Interview Question Set 4
- Cisco Interview Question Set 5
- Cisco Interview Question Set 6
- >> Cisco Interview Question Set 7
- Cisco Interview Question Set 8
- Cisco Interview Question Set 9
- Cisco Interview Question Set 10
- Cisco Interview Question Set 11
- Cisco Interview Question Set 12
- Cisco Interview Question Set 13