Array and string unit 7

Array and string unit 7

University

10 Qs

quiz-placeholder

Similar activities

DFA - Understanding 1

DFA - Understanding 1

University

10 Qs

module3

module3

University

15 Qs

Splitting, Concatenating, and Joining Strings in Python

Splitting, Concatenating, and Joining Strings in Python

University

6 Qs

Java Arrays

Java Arrays

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Linked List

Linked List

University

14 Qs

Workshop 2 Review

Workshop 2 Review

University

10 Qs

Python Basics: Dictionaries and Strings

Python Basics: Dictionaries and Strings

University - Professional Development

10 Qs

Array and string unit 7

Array and string unit 7

Assessment

Quiz

Computers

University

Hard

Created by

Abhishek Pandey

Used 14+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a string in C

a. string name;

b. char name[];

c. char name();

d. string[] name;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which library is used for string manipulation functions in C

string.h

stdio.h

math.h

time.h

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to find the length of a string in C

len()

length()

strlen()

strlength()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to concatenate two strings in C

strcat()

all

concat()

. append()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to compare two strings in C

strcompare()

compare()

strcmp()

str_equal()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to copy one string to another in C

copy()

strcopy()

strcpy()

duplicate()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which character is used to represent the end of a string in C

\n

0

\0

1

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?