DS - Chapter 4 - Strings

DS - Chapter 4 - Strings

University

42 Qs

quiz-placeholder

Similar activities

First  QUIZ of Database - Edited by: Eng. Javier Daza 2023-1

First QUIZ of Database - Edited by: Eng. Javier Daza 2023-1

University

40 Qs

Operating System Concepts

Operating System Concepts

University

37 Qs

KUIS SISTEM OPERASI

KUIS SISTEM OPERASI

University

40 Qs

network

network

University

42 Qs

AD S1 week3

AD S1 week3

University

38 Qs

Midterm Exam ICTC1023

Midterm Exam ICTC1023

University

40 Qs

DSA QUIZ - 2 (17-06-23)

DSA QUIZ - 2 (17-06-23)

University

40 Qs

Python Quiz

Python Quiz

University

40 Qs

DS - Chapter 4 - Strings

DS - Chapter 4 - Strings

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Cayden Henderson

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

42 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s1 = “HI”, s2 = “HELLO”, s3 = “BYE”. How can we concatenate the three strings?

strcat(s1,s2,s3)

strcat(s1,(strcat(s2,s3)))

strcpy(s1, strcat(s2,s3)

strcpy(s1, strcat(s3,s2)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

strlen(“Oxford University Press”) is?

22

24

23

25

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function adds a string to the end of another string?

stradd()

strcat()

strtok()

strcpy()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String Hello World can be read using scanf().

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A string when read using scanf() needs an ampersand character.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The gets() function takes the starting address of a string which will hold the input.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

tolower() is defined in ctype.h header file.

True

False

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?