Lab7_Quiz

Lab7_Quiz

University

10 Qs

quiz-placeholder

Similar activities

Computer Science Quiz

Computer Science Quiz

University

15 Qs

FSA,DFA dan NFA

FSA,DFA dan NFA

University

15 Qs

StrukturData1-7

StrukturData1-7

University

10 Qs

Quiz 6 PBO

Quiz 6 PBO

University

10 Qs

23S1 1906

23S1 1906

University

11 Qs

Java Control Flow statements

Java Control Flow statements

University

10 Qs

Applet Java

Applet Java

University

10 Qs

quiz pertemuan 2 asik ddp

quiz pertemuan 2 asik ddp

University

15 Qs

Lab7_Quiz

Lab7_Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

bme programming

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...

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.

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