
Quiz on Interpolated Strings and String Manipulation in C#

Quiz
•
Computers
•
12th Grade
•
Easy

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
Similar Resources on Wayground
15 questions
PSI - Princípios da linguagem JAVA

Quiz
•
12th Grade
13 questions
Паскаль

Quiz
•
9th - 12th Grade
20 questions
Python Strings Mastery

Quiz
•
12th Grade
13 questions
Quiz Belum Berjudul

Quiz
•
9th - 12th Grade
20 questions
Variables and Loops Review

Quiz
•
9th - 12th Grade
15 questions
Problem Solving using Python and R - UNIT I STRINGS MCQS

Quiz
•
12th Grade
16 questions
8525 AQA GCSE Computer Science 3.7.1 Relational databases

Quiz
•
7th - 12th Grade
15 questions
Variables Java

Quiz
•
10th - 12th Grade
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