Powershell Strings and Arrays

Powershell Strings and Arrays

University

9 Qs

quiz-placeholder

Similar activities

Quiz_Java

Quiz_Java

6th Grade - University

10 Qs

LUA Test

LUA Test

9th Grade - University

10 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Python Pre-Cal Quiz

Python Pre-Cal Quiz

University

10 Qs

python_basics

python_basics

University

10 Qs

Network Architecture

Network Architecture

12th Grade - University

10 Qs

python quiz

python quiz

6th Grade - Professional Development

10 Qs

JavaScript

JavaScript

University

13 Qs

Powershell Strings and Arrays

Powershell Strings and Arrays

Assessment

Quiz

Computers

University

Hard

Created by

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