C - Strings

C - Strings

University

20 Qs

quiz-placeholder

Similar activities

Evaluasi 2 (Mathematica-Phyton)

Evaluasi 2 (Mathematica-Phyton)

University

20 Qs

BD 1 - SQL - geral

BD 1 - SQL - geral

University

20 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

CIS1101-programming practice

CIS1101-programming practice

University

15 Qs

Quiz1 TAFL(module-2)2020-21

Quiz1 TAFL(module-2)2020-21

University

20 Qs

Web Dev Midterm Quiz

Web Dev Midterm Quiz

University

15 Qs

Saintek Campus Day 2020

Saintek Campus Day 2020

University

16 Qs

Minggu V - PKS 2 - Pemrograman C++

Minggu V - PKS 2 - Pemrograman C++

University

17 Qs

C - Strings

C - Strings

Assessment

Quiz

Computers

University

Medium

Created by

Ise Jnnce

Used 97+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the return value of the following statement if it is placed in C program? strcmp(“ABC”,”ABC”);

33

-1

1

0

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which built in function is used to convert string to lowercase

strlen()

strlwr()

strcmp()

strrev()

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is not a built in function

string()

strlen()

strcat()

strrev()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

String is an array of characters with …….. character as the last element of array.

Null

Empty

0

1

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the format specifier used to print or read a character in an array in Printf or Scanf function?

%C

%f

%w

%c

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following function is more appropriate for reading in a multi-word string?

scanf()

gets()

printf()

puts()

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The library function used to copy a string to another is

strncpy()

strcmp()

strcpy()

strchr()

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?