IT Questions and Answers :)

Tuesday, March 20, 2018

By default, which of the following is NOT a legitimate Linux run level?

By default, which of the following is NOT a legitimate Linux run level?

  • 4: Normal mode
  • 6: Reboot system
  • 1: Single-user mode
  • 3: Multi-user mode with networking 
By default, which of the following is NOT a legitimate Linux run level?

EXPLANATION

A Linux run level defines the state of the system after boot. Conventionally, seven run levels exist, numbered from zero to six. They include:
0: Halt system
1: Single-user mode
2: Basic multi-user mode without NFS
3: Multi-user mode with networking
4: Unused
5: Multi-user mode with GUI

6: Reboot system

SOURCE


Share:

What is not true about HSRP?

What is not true about HSRP?

  • Preempt is set by default
  • It is described in RFC 2281
  • Can track an interface for failover
  • Cisco proprietary protocol 
What is not true about HSRP?

 EXPLANATION

Hot Standby Router Protocol (HSRP) is a Cisco proprietary routing protocol that allows host computers on the Internet to use multiple routers that act as a single virtual router, maintaining connectivity even if the first hop router fails, because other routers are on "hot standby" - ready to go. HSRP's preempt has to be manually set with the "standby vlan-number preempt" command in the Vlan interface configuration mode.

SOURCE

http://www.cisco.com/c/en/us/support/docs/ip/hot-standby-router-protocol-hsrp/9234-hsrpguidetoc.html
Share:

Which of the following Powershell commands would give User2 access to User1's calendar? User2 does not currently have access to anything of User1's

Which of the following Powershell commands would give User2 access to User1's calendar? User2 does not currently have access to anything of User1's

  • Add-MailboxFolderPermission -Identity User1@contoso.com:\Calendar -User User2 -AccessRights Owner
  • Set-MailboxFolderPermission -Identity User1@contoso.com:\Calendar -User User2 -AccessRights Owner
  • Add-MailboxPermission -Identity User1@contoso.com:\Calendar -User User2 -AccessRights Owner
  • Set-MailboxPermission -Identity User1@contoso.com:\Calendar -User User2 -AccessRights Owner 
Which of the following Powershell commands would give User2 access to User1's calendar? User2 does not currently have access to anything of User1's

EXPLANATION


There are two things to notice.  First is that you're trying to give new permissions to User2 and not change current permissions of User2 within User1's mailbox.  So we'll want to use Add instead of Set.  Set is used to change permissions if a user already has some sort of permissions within the mailbox.

The second thing is that the calendar is a folder within the mailbox.  We don't want User2 to be able to read User1's emails, so we'll do Add-MailboxFolderPermission instead of Add-MailboxPermission.

SOURCE

https://technet.microsoft.com/en-us/library/dd298062(v=exchg.160).aspx
Share:

Which of these is not a valid option when right clicking a powered on (running) virtual machine in vCenter?

Which of these is not a valid option when right clicking a powered on (running) virtual machine in vCenter?

  • Migrate
  • Rename
  • Clone
  • Remove from Inventory 

Which of these is not a valid option when right clicking a powered on (running) virtual machine in vCenter?

EXPLANATION

You cannot remove a powered on virtual machine from the vCenter inventory.  The VM has to be shut down first.
Share:

A webpage has six images with large margins. These margins cause viewing problems on small screens such as phones. Which css will remove the margins on small devices?

A webpage has six images with large margins. These margins cause viewing problems on small screens such as phones. Which css will remove the margins on small devices?

  • @media screen and (max-width:600;){ img {margin:0px;} }
  • @media screen and (max-width:600px){ #img {margin:0px;} }
  • @media screen and (max-width:600px){ img {margin:0px;} }
  • @media screen and (min-width:600px){ img {margin:0px;} } 

 
A webpage has six images with large margins. These margins cause viewing problems on small screens such as phones. Which css will remove the margins on small devices?

EXPLANATION

img is an HTML tag, so it is referred to without any prefix. #img would be an ID, which can only refer to a single item, so would not be suitable here. (In practice we might use a class though.)
max-width will apply the conditional css to screens of less than the stated width. min-width would affect only larger screens, which is not what we want.
Nasty gotcha: (max-width:600;) is invalid syntax. Although this looks like a standard css statement, it is actually a special comparison clause. It must not be terminated with a semicolon. (Trailing semicolons are optional on single css statements, but for some obscure reason are not allowed here.) 

SOURCE

https://www.w3schools.com/cssref/css3_pr_mediaquery.asp
Share:

Popular Posts