Solaris Certification exam questions

Solaris Certification sample questions
Following are some sample questions . These are some of the representative questions and is meant to demonstrate the type of question you might expect in Solaris Certification examination and plan your study accordingly. No answers are given out of the belief that anyone preparing for the exam should be able to work it out .

Choose all the correct answers.

1) In Solaris how many disk slices a disk can have ?

a) 8 b) 7 c) 6 d)1

2)Which file is used to set the default mask in Solaris ?

a)/etc/profile b) .profile c) /etc/system d) /etc/inittab

3)What are the advantage for making disk partitions ?

a) Easy to maintain b) Easy for backing up
c) Limits problems to one partition only d) Space can be monitored easily.

4 )What does a + sign in /etc/hosts.equiv indicates ?

a) All hosts are allowed b) Only known hosts are allowed c) All users are allowed d) Unknown hosts are also allowed .

5 )Which command is used to mount local file system ?

a) mount -l b) mountall c) mount d) mount -r

6) Which command line option gives a run level and output headings ?

a) who -b b) who -r c) who -rh d) who -rH

7) which command is used to change the auto-boot feature in sun ultra ?

a) eeprom “auto-boot?”=true b) eeprom auto-boot?=true c) eeprom autoboot? true d) eeprom auto-boot = true ..

8 ) If patch id is 123456-10 then its revision number is -

a)123 b)456 c)10 d)6-10

9)Which commands can be used to make a device alias

a) devalias ay OK prompt b) dvalias at root prompt
c) nvram at ok prompt d) drvconfig at root prompt.

10) Where in Solaris encrypted passwords are stored ?

a) /etc/passwd b) /etc/shadow c)/etc/default/passswd d)/etc/initttab

11) What is required in a diskless workstation for Solaris workstation

a) cpu, monitor, keyboard, hard disk b) cpu, monitor, keyboard, cdrom drive
c) cpu, monitor, keyboard, Ethernet card d) cpu and Ethernet card only.

12)Which of the following points to virtual file system ?

a) /dev/dsk/c0t0d0s3 b) /dev/rdsk/c0t0d0s3
c) /dev/md/dsk/c0t0d0s3 d) /dev/vx/rdsk/data/vol1

13) Which Solaris command is used to correct filesystem problems?.

a) newfs b) fssck c) mkfs d) format

14) Which is the configuration file for the tip command

a)/etc/tip.conf b) /etc/remote c) /etc/inittab.d d) .profile

15) When automounter daemon needs to be restarted ?.

a) When direct map is changes b) When indirect map is changes
c) No need to restart d) When a new user is created

16) What is the default configuration cluster in Solaris installation ?.

a) Developer b) Core c) End user d) Entire Distriidution

17) Which utility is used to administer the port monitor ?

a)sacadm b) pmadm c) ttyadm d) admintool

18) What is the command to assign a ip address to qfe network interface ?

Write the command ……………………………………..

19) 10 30 * * 4 /usr/bin/loginfo entry in crontab will execute the program

a) Every Friday at 10.30 b) Every Thursday at 10.30
c) Every Saturday 10.30 d) Every Wednesday at 10.30

20) What do you need for a fresh Solaris Installation ?.

a) Host Name b) IP Address c) Net mask d) Domain name

21) How can you see the prom version ?

a) show version b) prom c) banner d) version

22) Which file enables you to disable root login on terminals ?.

a) /etc/profile b) .profile
c) /etc/default/login d) /etc/system

23 ) Which directory contain run level control scripts ?.

a) /etc/rc2.d b) /etc/init.d c) /etc/rc3.d d) /usr/bin

24) Which command show the patch installed in the system ?

a) patchadd -p b) showrev -p c) showpatch d) patchlist

25) What are the advantage of having a virtual file system ?.

a) Large capacity volumes b) Increased File system size
c) Performance enhancement d) backup becomes easy

26) Which file is used to define default run level for init process at booting time ?.

a) /etc/ttyyab b) /etc//ttyadm
c) /etc/inittab d) /etc/profile

27) Which command shows kernel parameters and and driver module information ?.

a) sysconfig b) prtconfig
c) dmesg d) prtconf

28) A multiuser operating system is one – in which

a) Many users can work simultaneously b) Many Processes can work simultaneously
c) A large number of users can be created d) A number of user home directories can be created.

29) What is true about software packages ?.

a) It is group of files & directories b) They are grouped to form clusters

c) It is standard way of delivering software in Solaris d) They can be installed using pkgadd command.

30)What type of names are used for administering disk drives in Solaris environment

a) Physical b) Logical c) Virtual d) disk instance

Mpls and vpn network interview questions

1. What is the difference between VPN and MPLS?
2. What is MPLS and why it is being so popular in short time?
3. What is the protocol used by MPLS?
4. MPLS works on which layer?
5. What is the difference between P and PE router?
6. Can I make my PE router as P?
7. Two routers are having 4 equal cost links, how many ldp sessions will be established?
8. My LDP router id, OSPF router id and BGP router id is different, will it work to forward the traffic of customers or not?
9. What is Penultimate Hop Popping and why it is required? Which router performs the PHP function?
10. I am receiving aggregate label, what does it mean?
11. What are the different types of labels?
12. How to make customer route unique?
13. What is the difference between RD and RT?
14. Can I assign a same RD to two different customers?
15. Is RD travels in route update?
16. My customer is having three branches and all are attached to three different PEs, In this case can I use the different vrf names?
17. What is downstream on demand?
18. How to filter MPLS labels?
19. What is the default range of MPLS labels in Cisco routers ? How to extend that range?
20. Without route reflector can I implement MPLS?
21. What is the difference between VPNv4 and IPv4 address family?
22. What is MP-iBGP? Can we use normal BGP in lieu of MP- iBGP?
23. What is LIB, LFIB?
24. What is CEF and without enabling CEF, can we make MPLS work?
25. I am receiving end to end customer routes on various PE but not able to ping those routes, what’s could be the problem?
26. What is explicit null and implicit null?
27. Default timers of LDP?
28. Does LDP require OSPF, IS-IS or BGP?
29. In neighbor discovery command, I am receiving only xmit, what does it mean?
30. What is transport address?
31. What is the RFC of MPLS?
32. Why MPLS is called multi protocol?
33. What is the difference between MPLS, SSL and IPSec?
34. I am using different vendor products and want to implement TDP, what type of challenges will you face?
35. Does MPLS support IPv6?
36. Can I use the existing IPv4 MPLS backbone for IPv6?
37. Define various troubleshooting commands in MPLS?
38. What is forward equivalence class aka FEC?
39. What is adjacency table?
40. Difference between MPLS IP and MPLS Label Protocol LDP command?
41. If MPLS get disable, will it harm my IGP or IPv4 traffic?

BGP networking Interview questions

1. BGP is IGP or EGP?
2. BGP is link state or distance vector protocol?
3. BGP uses which port?
4. When to use BGP?
5. Can I use BGP instead of any IGP?
6. Can I run two BGP process on single router?
7. What is Autonomous System?
8. Types of BGP routing table?
9. What is the BGP path selection criteria?
10. Define various BGP path attributes.
11. Why weight doesn’t fall under path attribute category?
12. What is confederation?
13. What is route reflector and why it is required?
14. What is no-synchronization rule?
15. Default BGP timers.
16. When does BGP use 0.0.0.0 router id?
17. Does route reflector come in actual path during traffic forwarding?
18. What is Site of origin aka SOO?
19. What is the cost of external and internal BGP routes?
20. Can we use local preference outside the autonomous system?
21. Does it require that BGP router-id should reachable in cloud?
22. What is recursive lookup in BGP and how it works?
23. What is the meaning of update source loopback?
24. If a static route is advertised in BGP without using update source what will be the next hop address in update?
25. Define various types of communities and why they are used?
26. If BGP neighbor state is showing idle what does it mean?
27. In Multihoming scenario if primary link gets fail, after how long traffic will be shifted to secondary link.
28. I am having two routes for remote destination but only single route is installing in routing table, what’s the reason for this?
29. How many links can be assigned for load balancing or sharing?
30. In eBGP I am establishing my neighbourship with loopback address but it’s not coming up. Please specify different reasons for not coming up.
31. Can we redistribute BGP in IGP? Please explain your answers.
32. What is cluster id?
33. I am receiving updates from eBGP peer, will the next hop change or not?
34. I am receiving updates from iBGP peer, will the next hop change or not?
35. A router is receiving same route from two different eBGP peers. The AS information contains in peer 1 is {65500, 65550, 65555} and in peer 2 is {65501, 65501}. But I want to make peer 1 preferred.
36. What is the difference between next-hop-self and update source loopback?
37. Define loop prevention mechanism in BGP.

Switching network interview Questions

Switching network interview Questions
1. Difference between hub, bridge and switch?
2. What is mac address and why it is required?
3. In layer 2 domain do we need ip address for communication?
4. What is arp and why it is required?
5. What is Spanning Tree Protocol aka STP?
6. What is the difference between STP, MSTP, PVST and RSTP?
7. Can we use the two same paths for same vlan?
8. What is the difference between broadcast and collision domain?
9. Define type of lan traffic.
10. What is destination address of broadcast frame?
11. Can we connect a switch to switch with straight cable?
12. Define functions of switch.
13. What is arp timeout?
14. What is aging process?
15. What is BPDU?
16. What is path cost?
17. Define selection criteria of STP root bridge.
18. How to non bridge decide which port will elect as root port?
19. If a nonroot bridge has two redundant ports with the same root path cost, how does the bridge choose which port will be the root port?
20. Port states of spanning tree protocol.
21. If the users face delay during initial login, what you will suggest to implement?
22. Why spanning tree BPDU filter is used?
23. Can I use BPDU filter on trunk ports?
24. What is port security?
25. I want to learn only a single mac from the port, what need to be configured?
26. Can we use spanning port-fast on trunk ports?
27. If management ip address is changed, will user’s traffic will be dropped?
28. Difference between trunk and access port?
29. What is UDLD and why it is required?
30. What is interface vlan on switch?

Network routing interview questions

Network routing interview questions
1.
Difference between RIPv1 and RIPv2?
2. How many number of routes carried by RIP packet?
3. Is OSPF link state or distance vector or path vector protocol?
4. What is the difference between OSPF and IS-IS and which one is preferred?
5. Can we use BGP instead of any IGP?
6. How many network types available in OSPF?
7. Different type of Link State Advertisements aka LSA?
8. LSA 3 and LSA 4 are generated by which router?
9. When to use Stub and Not So Stubby Area?
10. How to get the external routes without making area Not So Stubby?
11. What is the different type of route summarization available in OSPF?
12. What is the requirement of doing summarization?
13. A major network is advertised as summary in one area and few of the routes from that network is configured in another area. What will happen in that case?
14. If any of the OSPF area is not stabilized, does it impact another area?
15. What is the use of forwarding address in LSA 5 and LSA 7?
16. External routes are available in OSPF database but not installing in routing table?
17. If loopback is not configured, what will be the router- id selected by OSPF process?
18. Can we run multiple OSPF process in single router and what is the advantage of using it?
19. What are timers of OSPF?
20. Multicast address of used by OSPF?
21. OSPF works on which layer?
22. What is backbone area in OSPF?
23. Can we use OSPF without backbone area?
24. Is it required that OSPF router-id must reachable in IGP cloud?
25. After configuring new router-id, automatically it will be used or do we need to use some type of command to get it operational.
26. Why the secondary ip address of interface is not advertising in IGP cloud?
27. OSPF neighbourship is not coming up. Please tell the various steps to troubleshoot it.
28. One side MTU is 1500 and another side MTU is 1600. Does it affect neighbourship?
29. Provide process of DR and BDR election.
30. If DR is down and no BDR is configured what will happen?
31. What is the difference between a neighbor and adjacent neighbor?
32. My OSPF neighbourship is showing 2-way, what does it mean?
33. Define different type of OSPF neighbor states?
34. OSPF external routes are not redistributing?

Tcp ip network interview questions

Tcp ip network interview questions
1)Discuss the role of TCP/IP on a data network. Also identify and explain why this is the protocol of choice in networking.
2)What is the port no of TCP?
3)Difference between controlled access & Contention based access in a shared media?
4)Congestion happens in which layer in osi?
5)What type of protocol used in sms sending from mobile?
6)Which is the Smallest protocol?
7)What is the difference of TCP over IP?
8)What is proxy?
9)What is the difference between server and database?

C and Cpp interview questions faqs

  1. What do you understand from C and C++? Explain the difference between both languages?
  2. Which language is better: C and C++? Do you think C++ is the advanced version of C?
  3. Explain the different features of C++ which is better than C language?
  4. Name the same operators and commands used in C and C++?
  5. Explain the advantages of C++ over C language? Can you compile a small program in C and C++?
  6. How do you obtain output from C++ program? What is the use of printf(“”%d)?
  7. State any two differences between C and C++ structure? Does Object Oriented Programming languages are related to C?
  8. What is vector and array? Can you use array with same methods in C and C++ programming languages?
  9. Explain inline functions? What is stream?
  10. What are constructors and destructors? How do you implement them in C language?
  11. Discuss the differences between malloc and calloc? What is the use of RTTI?
  12. How can you write multi-threaded application in C++ programming?

program to detect a loop in a linked list?

typedef struct node
{
void *data;
struct node *next;
}mynode;

mynode * find_loop(NODE * head)
{
mynode *current = head;
while(current->next != NULL)
{
mynode *temp = head;
while(temp->next != NULL && temp != current)
{
if(current->next == temp)
{
printf("\nFound a loop.");
return current;
}
temp = temp->next;
}
current = current->next;
}
return NULL;
}

what pointer type for heterogeneous linked list?

The heterogeneous linked list contains different data types in its nodes and we need a link, pointer, to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type.

C program to compare two linked lists?

int compare_linked_lists(struct node *q, struct node *r) {
    static int flag;
   
    if((q==NULL ) && (r==NULL))
    {
         flag=1;
    }
    else
    {
        if(q==NULL || r==NULL)
        {
            flag=0;
        }
        if(q->data!=r->data)
        {
            flag=0;
        }
        else
        {
           compare_linked_lists(q->link,r->link);
        }
    }
    return(flag); }

Program to a copy of a linked list?

copy_linked_lists(struct node *q, struct node **s) {
    if(q!=NULL)
    {
        *s=malloc(sizeof(struct node));
        (*s)->data=q->data;
        (*s)->link=NULL;
        copy_linked_list(q->link, &((*s)->link));
    } }

C program to find the depth or height of a tree?

Solution:
  
tree_height(mynode *p) {
   if(p==NULL)return(0);
   if(p->left){h1=tree_height(p->left);}
   if(p=>right){h2=tree_height(p->right);}
   return(max(h1,h2)+1); }



The degree of the leaf is zero. The degree of a tree is the max of its element degrees. A binary tree of height n, h > 0, has at least h and at most (2^h -1) elements in it. The height of a binary tree that contains n, n>0, elements is at most n and atleast log(n+1) to the base 2.

Log(n+1) to the base 2 = h

n = (2^h - 1)

Program to determine the number of elements (or size) in a tree.

Solution:

int tree_size(struct node* node)  {
  if (node==NULL)
  {
    return(0);
  }
  else
  {
    return(tree_size(node->left) + tree_size(node->right) + 1);
  }  }

C program to delete a tree?

Solutions:
 
clear(struct node* pNode)
{
if (pNode != NULL)
{
clear(pNode->left);
clear(pNode->right);
delete pNode;
}
}

How to check if a binary tree is balanced?

Solution:


A tree is considered balanced when the difference between the min depth and max depth does not exceed 1.
Recursive algorithms always work well on trees, so here’s some code.
int min_depth( Node * root ) {
    if( !root ) {
        return 0;
    }
    return 1 + min( min_depth( root->left ),
                    min_depth( root->right ));
}

int max_depth( Node * root ) {
    if( !root ) {
        return 0;
    }
    return 1 + max( max_depth( root->left ),
                            max_depth( root->right ));
} 

bool is_balanced( Node * root ) {
    return ( max_depth( root ) - min_depth( root ) ) <= 1