
Powershell Strings and Arrays

Quiz
•
Computers
•
University
•
Hard
Rakesh Kumar
Used 1+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
$test = "Bet"
Write-Host "$test $tester "
What will be printed as output
error
Bet
None of the above
Bet $null
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
$str = "Hello World" ("Hello world").CompareTo("Hello" + " " + "world")
error
0
-1
1
Similar Resources on Wayground
14 questions
Network Architecture

Quiz
•
University
10 questions
Intro to Python

Quiz
•
KG - University
12 questions
JavaScript Quiz

Quiz
•
University
13 questions
JavaScript Variables

Quiz
•
3rd Grade - University
10 questions
Q&A – Repetition & Indefinite Loops (Primary 4 – 4CT.01)

Quiz
•
4th Grade - University
10 questions
WEBDEV101

Quiz
•
University
10 questions
UJIAN SARINGAN PENGATURCARAAN

Quiz
•
University
10 questions
JavaScripting

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University