Question
What is the command to write something to the console display? How can you get a more detailed help description of a command? 1.by typing
- What is the command to write something to the console display?
- How can you get a more detailed help description of a command?
1.by typing *command*help-full 2. By typing help full 3. By typing help full*command* 4. By typing *command* option-full
3. what command(s) clears the console?
1. cls 2. Clear 3. Clean 4. Empty
4. what is the full command for alias pwd?
1. clear 2. Powershell-directory 3. Get-member 4. Get-location
5. out of these five which are a type of variable in powershell?
6.how do you declare a type of variable when declaring a variable?
7. which one of these is a double type variable?
1. 4 2. Hello world 3. 2.36 4. Augusta=1234567
8. what is stirring type variable?
1. a decimal number 2. A binary value of either true or false 3. A whole number 4. A string of text
9. what is a hash table type variable?
1. A string of text 2. A whole number 3. It is a variable with a key-value pair
10. how can you display the type of variable that one is?
1. by typing getmember() 2. By typing $variable.gettype() 3. By typing $variable.getmember() 4. Get typing gettype()
11. how can you remove a variable?
1. by setting it to 0 2. By setting it to null 3. By setting it to N/A 4. By typing delete $variable
12. which character indicates a redirect that indicates that data is written or redirected to file?
1. < 2. > 3. | 4. \
13. which character is a redirect that indicates data is read from a file?
1. < 2. > 3. | 4. \
14. what does a pipe do?
1. It takes the output of the left side of the symbol and passes it to the right side of it 2. It takes the output of the right side of the symbol and passes it to the left side of it.
15. what is the symbol for a pipe?
1. < 2. > 3. | 4. /
16. what is the command to inspect the contents of a file?
1. get-directory 2. Gettyype() 3. Get-content 4. Get-member
17. what is the command to write data to a file?
1. out-file 2. Output 3. Write-output 4. Write-file
18. what is the command(s) for displaying all the properties of a variable or object?
1. get-member 2. Gm 3. Gettype() 4. Get-content
19. what is the file extension of a powershell script?
20. what is the syntax for an if/elseif/else statement in powershell?
1. If (condition){output} elseif(condition){output}else{output}
2. If (condition){output} elseif(condition){output}else(condition){output}
3. If (condition){output} elseif(condition){output}else then{output}
4. If (condition)then{output} elseif(condition)then{output}else then(condition){output}
21. what is the for statement used for?
1. this is a command used for decision making
2. this is a command used to define variables
3. this is a command used for looping
4. this command dosent exit
22. what is the syntax of the for statement
1. for (init:condition:repeat){output}
2. for (condition){output}
3. for {condition}
4. for [init:condition]{output}
23. what is the ge statement?
1. get-everything 2. Greater than or equal to 3. Greater than 4. Less than or equal to
24.how can you modify or use a specific property of variable?
1. by typing $variable=property 2. By typing $variable.property 3.
25. what is used in powershell for logic and decision control?
1. if/then statements 2. If/elseif/else statements 3. If/then/else statement
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started