
Lab7_Quiz

Quiz
•
Computers
•
University
•
Medium
bme programming
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which property gives the total number of characters in a string in C#?
size( )
Length
count( )
TotalLength
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the CompareTo method return when two strings are equal?
1
0
-1
Equal
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If string1.CompareTo(string2) returns a negative one, what does it mean?
string1 is equal to string2.
string1 comes after string2 in the sort order.
string1 comes before string2 in the sort order.
string1 is null.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which characters are removed by default when Trim() is used without parameters?
Only numbers
White spaces
Special characters
All characters
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does TrimStart() do?
Removes characters from the end of a string
Removes characters from the start of a string
Removes characters from both ends of a string
Removes a specific substring
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are strings stored in C#?
As mutable objects
As arrays of integers
As immutable objects
As char pointers
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does Substring(2, 3) do?
Starts at index 2, takes 3 characters.
Removes 3 characters from index 2.
Replaces 3 characters from index 2.
Starts at index 3, takes 2 characters.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Struktur Data

Quiz
•
University
9 questions
C# Variables and Data Types

Quiz
•
8th Grade - University
10 questions
Python Quiz 1 : Python Basics

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
15 questions
Array Java

Quiz
•
University
10 questions
Microbit 3

Quiz
•
6th Grade - University
10 questions
Java Control Flow statements

Quiz
•
University
15 questions
Advance database

Quiz
•
University
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University