Quiz on Interpolated Strings and String Manipulation in C#

Quiz on Interpolated Strings and String Manipulation in C#

12th Grade

18 Qs

quiz-placeholder

Similar activities

AP CSA Unit 2 Review

AP CSA Unit 2 Review

9th Grade - University

22 Qs

Java Method

Java Method

12th Grade

19 Qs

BJC Unit 1 Practice Quizizz

BJC Unit 1 Practice Quizizz

9th - 12th Grade

22 Qs

SK T4 1.3 Pemboleh Ubah, Pemalar dan Jenis Data

SK T4 1.3 Pemboleh Ubah, Pemalar dan Jenis Data

9th - 12th Grade

20 Qs

Codehs Data Types

Codehs Data Types

12th Grade - University

13 Qs

QUIZ 1 ABRAHAM SEM-II SMA KRISTEN BASIC BATAM

QUIZ 1 ABRAHAM SEM-II SMA KRISTEN BASIC BATAM

12th Grade

20 Qs

Practice for 8th AP Java Quiz

Practice for 8th AP Java Quiz

10th - 12th Grade

14 Qs

STATIC KEYWORD IN JAVA

STATIC KEYWORD IN JAVA

9th - 12th Grade

18 Qs

Quiz on Interpolated Strings and String Manipulation in C#

Quiz on Interpolated Strings and String Manipulation in C#

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Jose Cruz

Used 1+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What character must an interpolated string begin with?

&

@

#

$

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which method is used to convert a character to lowercase?

char.LowerCase(ch)

char.ConvertToLower(ch)

char.ToUpper(ch)

char.ToLower(ch)

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the placeholder {sales} represent in an interpolated string?

A constant

A string literal

A variable

A method

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which format specifier is used to format a value as currency?

C

N

F

E

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the method str.Trim() do?

Converts a string to uppercase

Removes leading and trailing spaces

Removes all spaces from a string

Replaces spaces with hyphens

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which method is used to insert a string into another string?

Merge

Add

Insert

Append

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the default capacity of a StringBuilder object?

32 characters

16 characters

64 characters

128 characters

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?