Array and string unit 7

Array and string unit 7

University

10 Qs

quiz-placeholder

Similar activities

Arrays

Arrays

University

11 Qs

Unit 24 - Java Basics

Unit 24 - Java Basics

University

10 Qs

Automata - Understanding

Automata - Understanding

University

10 Qs

Java for Geeks and Dummies

Java for Geeks and Dummies

12th Grade - University

10 Qs

Questionário sobre Javascript

Questionário sobre Javascript

University

10 Qs

Automaton Understanding 4

Automaton Understanding 4

University

10 Qs

String Methods Review

String Methods Review

9th Grade - University

10 Qs

Coding Strings

Coding Strings

12th Grade - University

9 Qs

Array and string unit 7

Array and string unit 7

Assessment

Quiz

Computers

University

Hard

Created by

Abhishek Pandey

Used 15+ 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?