Powershell Strings and Arrays

Powershell Strings and Arrays

University

9 Qs

quiz-placeholder

Similar activities

Hackclub

Hackclub

University

14 Qs

Porcentajes

Porcentajes

University

12 Qs

Online Safety

Online Safety

2nd Grade - University

10 Qs

Chapter 8

Chapter 8

University

10 Qs

Pre Test ComputerProgramming

Pre Test ComputerProgramming

University

10 Qs

Operating System -Quiz-1

Operating System -Quiz-1

University

10 Qs

DS-U2-QUIZ2

DS-U2-QUIZ2

University

12 Qs

ทำความรู้จักกับภาษาไพทอน

ทำความรู้จักกับภาษาไพทอน

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?

Discover more resources for Computers