Lab7_Quiz_section2

Lab7_Quiz_section2

University

10 Qs

quiz-placeholder

Similar activities

Coding Strings

Coding Strings

12th Grade - University

9 Qs

Java String Methods

Java String Methods

12th Grade - University

9 Qs

OOP - Quiz

OOP - Quiz

University

15 Qs

Java for Geeks and Dummies

Java for Geeks and Dummies

12th Grade - University

10 Qs

String Methods Review

String Methods Review

9th Grade - University

10 Qs

Java : Array

Java : Array

University

10 Qs

Conditionals

Conditionals

University

11 Qs

String3

String3

University

6 Qs

Lab7_Quiz_section2

Lab7_Quiz_section2

Assessment

Quiz

Computers

University

Medium

Created by

bme programming

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a string in programming?

A series of integers

A series of characters

A mathematical function

A data type for boolean values

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Length property of a string do?

Returns the number of words

Returns the number of characters

Modifies the string size

Converts the string to uppercase

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you convert a string to uppercase in C#?

ToUppercase()

ToUpper()

Upper()

MakeUpper()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to compare two strings in C#?

CompareTo()

compareto()

Same()

Match()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the CompareTo() method return if two strings are equal?

-1

0

1

null

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of "Hello".Substring(0, 2);?

"He"

"llo"

"Hel"

"Hello"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is use to remove specified Unicode characters at the beginning and end of the string?

Trim()

Split()

Substring()

split()

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?