Array and string unit 7

Array and string unit 7

University

10 Qs

quiz-placeholder

Similar activities

Bootcamp Day 3 - Java Array

Bootcamp Day 3 - Java Array

University

15 Qs

Java Quiz 3

Java Quiz 3

University

15 Qs

Lógica Programação

Lógica Programação

University

12 Qs

Coding Basics

Coding Basics

5th Grade - University

10 Qs

Array and String

Array and String

University

10 Qs

CS201: Chapter 4

CS201: Chapter 4

University

12 Qs

Java Displaying Data & Data Types

Java Displaying Data & Data Types

University - Professional Development

12 Qs

C++ Array

C++ Array

University

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