Array and string unit 7

Array and string unit 7

University

10 Qs

quiz-placeholder

Similar activities

Linked List

Linked List

University

14 Qs

Workshop 2 Review

Workshop 2 Review

University

10 Qs

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

Computer Programming (Lab)

Computer Programming (Lab)

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

BCSC0006 - Quiz 1 - Arrays

BCSC0006 - Quiz 1 - Arrays

University

10 Qs

Object oriented programming in java

Object oriented programming in java

University

13 Qs

Java 1D Arrays

Java 1D Arrays

University

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?