String3

String3

University

6 Qs

quiz-placeholder

Similar activities

Java Programming RBVRRIT

Java Programming RBVRRIT

University - Professional Development

10 Qs

Python Basic Quiz

Python Basic Quiz

11th Grade - University

10 Qs

GRADE 10 ТЖБ

GRADE 10 ТЖБ

University

9 Qs

Programming Java

Programming Java

9th Grade - University

11 Qs

Automaton - Understanding 2

Automaton - Understanding 2

University

10 Qs

10.4

10.4

University

10 Qs

C PROGRAMMING

C PROGRAMMING

University

10 Qs

Sains Komputer (Java) 1: Sintaks Asas & Pembolehubah

Sains Komputer (Java) 1: Sintaks Asas & Pembolehubah

10th Grade - University

10 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?

*

)

&

<-