
Powershell Strings and Arrays
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Rakesh Kumar
Used 1+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
$s1="I am a string"
$s1.SubString(3,7)
m a stri
am a strin
str
none of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
$s1="Thix ix a Xtring"
$s1.replace("x","s")
This is a string
This is a String
This is a Xtring
error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
$first = 'Everyone'
$last = 'Welcome'
$message = 'Hello, ' + $first + ' ' + $last + '!'
what is the value of $message
Hello, EveryoneWelcome
Hello, Everyone Welcome!
Hello, Everyone Welcome
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"{0:yyyyMMdd}" -f (Get-Date)
"Population {0:N0}" -f 8175133
20220326 Population 8,175,133
Population 26032022
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
$servers = @( 'server1', 'server2', 'server3' );
$servers -join ','
server1,server2,server3
server1
server2
server3
server1 server2 server3
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
$arr = @( 1, 2, 3); $arr -join '+'
6
1+2+3
error
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
$message = "Numbers: "
foreach($number in 1..5) { $message += " $number" }
what is the message value?
15
1 2 3 4 5
error
None of the above
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Java Control Flow statements
Quiz
•
University
10 questions
Software Testing
Quiz
•
University
10 questions
Intro a Python - TC1028
Quiz
•
University
10 questions
Quizizz Ameliorer Day 2
Quiz
•
University
11 questions
Binding
Quiz
•
University
10 questions
Diagrama de flujo
Quiz
•
University
10 questions
Access 02
Quiz
•
University - Professi...
10 questions
What do you know - Informatics?
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
