Powershell Strings and Arrays

Powershell Strings and Arrays

University

9 Qs

quiz-placeholder

Similar activities

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

C++ FILE HANDLING

C++ FILE HANDLING

University

11 Qs

Chapter 2 Python

Chapter 2 Python

8th Grade - University

13 Qs

nestedif _ And _ Or

nestedif _ And _ Or

University

10 Qs

TIU Quiz-9

TIU Quiz-9

University

10 Qs

Programación II Parte 5

Programación II Parte 5

University

10 Qs

CSS Quiz 2

CSS Quiz 2

University - Professional Development

10 Qs

TUTORR DASPROG

TUTORR DASPROG

University

10 Qs

Powershell Strings and Arrays

Powershell Strings and Arrays

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Rakesh Kumar

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?