IT Questions and Answers :)

Wednesday, February 24, 2021

What is the common naming convention of PowerShell cmdlets and functions?

What is the common naming convention of PowerShell cmdlets and functions?

  • Verb-Preposition-Noun
  • Adverb-Verb-Noun
  • Verb-Noun
  • Adjective-Noun    

What is the common naming convention of PowerShell cmdlets and functions?


EXPLANATION

The common naming convention of cmdlets and functions in PowerShell is "Verb-Noun".

There are 3 primary rules for naming within this convention:

  1. The Verb should be in the approved verb list.  To get the list of approved verbs, simply type "Get-Verb" in PowerShell.
  2. The Noun should be singular, never plural.
  3. Matching Nouns should work together and with the same object types; for instance, the object you get when you run Get-<Noun> should be able to be piped to a cmdlet to Set-<Noun>.
           
Share:

Tuesday, February 23, 2021

What are the IDs assigned to ports like USB, Ethernet, and video ports called?

 What are the IDs assigned to ports like USB, Ethernet, and video ports called?

  • MAC addresses
  • I/O addresses
  • Subnets
  • Nodes         

What are the IDs assigned to ports like USB, Ethernet, and video ports called?


EXPLANATION

Each I/O device connected to your computer is mapped to a unique I/O (Input/Output) address. These addresses are assigned to every I/O port on your computer, including USB, Firewire, Ethernet, VGA, and DVI ports, as well as any other ports your computer might have.

SOURCE

https://techterms.com/definition/ioaddress
      
Share:

Which of the following conditions occurs when two packets are transmitted over a medium at the same time?

Which of the following conditions occurs when two packets are transmitted over a medium at the same time?

  • Asynchronous
  • Collision
  • Synchronous
  • Contention     

Which of the following conditions occurs when two packets are transmitted over a medium at the same time?

EXPLANATION

In a network, when two or more stations attempt to transmit a packet across the network at the same time, a packet collision occurs. This is not uncommon in a shared medium such as an Ethernet that has many computers in the same network segment. When a packet collision occurs, the packets are either discarded or sent back to their originating stations and then re-transmitted in a timed sequence to avoid further collision. Packet collisions can result in the loss of packet integrity or can impede the performance of a network

SOURCE

Share:

Monday, February 22, 2021

Which of the following is a well-known text editor on Linux?

 Which of the following is a well-known text editor on Linux?

  • micro
  • hecto
  • femto
  • nano
Which of the following is a well-known text editor on Linux?

EXPLANATION

From Wikipedia: "nano is a text editor for Unix-like computing systems or operating environments using a command line interface. It emulates the Pico text editor, part of the Pine email client, and also provides additional functionality"


SOURCE

Share:

Friday, February 19, 2021

What part of a packet gets modified as part of a header manipulation attack?

 What part of a packet gets modified as part of a header manipulation attack?

  • Flags
  • Buffers
  • Signature definitions
  • Databases
What part of a packet gets modified as part of a header manipulation attack?

EXPLANATION

Flags = Correct

A header manipulation modifies flags and data in a packet and can launch a session hijacking attack.
Buffer overflow attacks can modify memory buffers.
SQL injection attacks can modify databases.
Antivirus software requires up-to-date signature definitions, but header manipulation does not modify these.

SOURCE

http://www.chegg.com/homework-help/create-http-header-http-headers-originate-web-browser-attack-chapter-3-problem-6hp-solution-9781305480858-exc
               
Share:

In Powershell, what does the command "(get-history)[-1].commandLine | clip" do?

 In Powershell, what does the command "(get-history)[-1].commandLine | clip" do?

  • Clears the entire command history in the current shell session.
  • Copies the entire command history in the current shell session to the clipboard.
  • Copies the last-issued command in the current shell session to the clipboard.
  • Clears the last-issued command in the command history in the current shell session.     
In Powershell, what does the command "(get-history)[-1].commandLine | clip" do?

EXPLANATION

Get-History - Get a list of the commands entered during the current session.  Returns a HistoryInfo object for each history item that it gets.

Powershell About Arrays - "Negative numbers count from the end of the array. For example, '-1' refers to the last element of the array."  

HistoryInfo.CommandLine Property - Returns the command line string that was issued for that command history item

clip -  Windows Vista included a tiny command line utility called clip. All it does is paste its stdin onto the clipboard.  (Not actually a Powershell command so can be used in Command Prompt as well.

SOURCE

Share:

Thursday, February 18, 2021

Two administrators update the same Active Directory user account at the same time while connected to two different domain controllers. What method does Active Directory replication use to determine what changes to make in the event of a conflict?

Two administrators update the same Active Directory user account at the same time while connected to two different domain controllers. What method does Active Directory replication use to determine what changes to make in the event of a conflict?

  • USN - Update Sequence Number
  • SID - Security Identifier
  • Email to Administrator with links to available choices
  • RID - Relative Identifier               
Two administrators update the same Active Directory user account at the same time while connected to two different domain controllers. What method does Active Directory replication use to determine what changes to make in the event of a conflict?

EXPLANATION

Active Directory replication does not depend on time to determine what changes need to be propagated. It relies instead on the use of update sequence numbers (USNs) that are assigned by a counter that is local to each domain controller. Because these USN counters are local, it is easy to ensure that they are reliable and never "run backward" (that is, decrease in value). The trade-off is that it is meaningless to compare a USN assigned on one domain controller to a USN assigned on a different domain controller.
More info here:

https://technet.microsoft.com/en-us/library/cc961798.aspx">https://technet.microsoft.com/en-...

Share:

Popular Posts