C Working with String Element

C Working with String Element

University

5 Qs

quiz-placeholder

Similar activities

NAĞME CumaAksamQuiz

NAĞME CumaAksamQuiz

KG - University

10 Qs

Programación

Programación

University

10 Qs

Historical Sports Starring - Muhammed Ali

Historical Sports Starring - Muhammed Ali

6th Grade - Professional Development

10 Qs

Cadenas con Formato y Lectura desde Teclado

Cadenas con Formato y Lectura desde Teclado

University

7 Qs

TE COMP C#

TE COMP C#

University

9 Qs

Identify The Person

Identify The Person

10th Grade - University

10 Qs

C Specifier

C Specifier

University

5 Qs

Genel Kültür

Genel Kültür

University - Professional Development

10 Qs

C Working with String Element

C Working with String Element

Assessment

Quiz

Other

University

Easy

Created by

Azrinna Muhamad

Used 3+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file must be included to use string functions?

#include<stdio.h>

#include<stdin.h>

#include<string.h>

#include<ctype.h>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to show text on the screen?

printf( )

scanf( )

sscanf( )

gets( )

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to read a string from the user, including spaces?

scanf( )

fgets( )

puts( )

printf( )

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

char name[10] = "Ali";

puts(name);

"Ali"

Ali

name

"Ali";

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is gets( ) not recommended in modern C programming?

It is too slow

It requires string.h

It cannot read input

It causes buffer overflow and is unsafe