String3

String3

University

6 Qs

quiz-placeholder

Similar activities

DFA - Design 2

DFA - Design 2

University

10 Qs

CPro-Unit6-String

CPro-Unit6-String

10th Grade - University

6 Qs

Strings

Strings

University

6 Qs

Array and string unit 7

Array and string unit 7

University

10 Qs

Java String Methods

Java String Methods

12th Grade - University

9 Qs

c-languiz

c-languiz

University

10 Qs

Java : Array

Java : Array

University

10 Qs

Kuis Asistensi Modul 3

Kuis Asistensi Modul 3

University

7 Qs

String3

String3

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to find the last occurrence of a substring in a string?

strstr()

strrstr()

strrchr()

strcmp

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function returns a pointer to the first occurrence of the character in a string?

strchr()

strrchr()

strstr()

strfind()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the strtok() function?

Tokenizing a string into substrings based on a delimiter

Copying a string to another

Finding the length of a string

Concatenating two strings

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the strcmp("hello", "hello") function return?

1

2

0

-0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function can be used to check if a string contains a particular substring in C?

strcontains()

strindex()

strstr()

strfind()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to get the value at the address stored in a pointer variable?

*

)

&

<-