IT Questions and Answers :)

Monday, December 30, 2019

What MS-DOS command changes the cmd window default font and background color?

What MS-DOS command changes the cmd window default font and background color?

  • backg
  • color
  • font
  • cbpref 

EXPLANATION

The color command allows users running MS-DOS or the Windows command line to change the default color of the background or text.

Color syntax

Sets the default console foreground and background colors.
COLOR [attr]
attr Specifies color attribute of console output.
Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second the foreground. Each digit can be any of the below values.
0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White
If no argument is given, this command restores the color to what it was when cmd.exe started. This value either comes from the current console window, the /T command line switch or from the "DefaultColor" registry value.
The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute the COLOR command with a foreground and background color that are the same.

Color examples

Color 0A

 


Share:

Which one was the first web browser invented in 1990

Which one was the first web browser invented in 1990

  • Internet Explorer
  • Nexus
  • Mozilla
  • Mosaic 

EXPLANATION

1990 – The WorldWideWeb (not to be confused with the World Wide Web) was the first browser ever created by W3C Director Tim Berners-Lee, then renamed Nexus to differentiate from the actual World Wide Web

Share:

What is the Standard Bandwidth of Cat8 ethernet network cable?

What is the Standard Bandwidth of Cat8 ethernet network cable?

  • 600MHz
  • 250MHz
  • 2000MHz
  • 500MHz 

EXPLANATION

Cat8 cable, or category 8 cable, is an Ethernet cable which differs greatly from the previous cables in that it supports a frequency of up to 2 GHz (2000 MHz), and is limited to a 30-meter 2-connector channel. While Cat8 cable requires shielded cabling as well. Most importantly, Cat8 Ethernet patch cables can support a speed of 25 Gbps or even 40 Gbps. The physical appearance of Cat8 cable is similar to lower category cables and it can be terminated in RJ45 connections or non-RJ45 connections. Cat8 cable is also backward compatible with its previous versions. Therefore, there is no problem to use it with standard Cat7 connector.

Share:

If you are running a loop (While, For, or Foreach) in PowerShell and you want to stop the current iteration and move on to the next one, what statement do you issue?

If you are running a loop (While, For, or Foreach) in PowerShell and you want to stop the current iteration and move on to the next one, what statement do you issue?

  • Next-Item
  • Break
  • Return
  • Continue 

 If you are running a loop (While, For, or Foreach) in PowerShell and you want to stop the current iteration and move on to the next one, what statement do you issue?

EXPLANATION

Understanding the Continue statement

One of the things that is a bit confusing for beginner scripters (and even for some intermediate scripters) is the Continue statement. This is partially because it does not act like it might in some other scripting languages.
Note  Windows PowerShell is not VBScript. Windows PowerShell is not VBScript. Say this 100 times…
So, what does the Continue statement do in Windows PowerShell? It returns flow to the top of the innermost loop that is controlled by a While, For, or Foreach statement. Probably the best way to understand this is to see it in action.
Note  To read more about looping, see these Hey, Scripting Guy! Blog posts.
The following script displays the numbers 1 through 6 as the script works its way through the array.
[array]$a = 1..6
foreach ($i in $a)
{
 $i
}

Share:

What is the following command doing? MOVE "C:\users\user1\desktop\folder\file.txt" "C:\users\user1\desktop\folder\file.xtx"

What is the following command doing? MOVE "C:\users\user1\desktop\folder\file.txt" "C:\users\user1\desktop\folder\file.xtx"

  • It is changing the file's location
  • It is changing the file's type
  • It is modifying the folder the file is in
  • It is changing the file's name 
What is the following command doing? MOVE "C:\users\user1\desktop\folder\file.txt" "C:\users\user1\desktop\folder\file.xtx"
 

EXPLANATION

 In the Windows command line and MS-DOS, you can move files using the move command. For example, if you want to move a file named "stats. doc" to the "c:\statistics" folder, you would type the following command, then press the Enter key.

C:\Users\Randy> MOVE "C:\users\randy\desktop\folder\file.txt" "C:\users\randy\desktop\folder\file.xtx"
The system cannot find the file specified.

C:\Users\Randy>move "C:\Users\Randy\Desktop\folder\file.txt.txt" "C:\Users\Randy\Desktop\folder\file.txt.xtxt"
        1 file(s) moved.
Share:

Popular Posts