C Working with String Element

C Working with String Element

University

5 Qs

quiz-placeholder

Similar activities

Kuliah Umum Manajemen Informatika 2023

Kuliah Umum Manajemen Informatika 2023

University

10 Qs

QUIZ W9 - FUNCTION

QUIZ W9 - FUNCTION

University

10 Qs

Aaruth Quiz

Aaruth Quiz

University

10 Qs

C Arrays

C Arrays

University

10 Qs

TEACHER FORUM DONI

TEACHER FORUM DONI

1st Grade - University

10 Qs

EJEN ALI:THE MOVIE

EJEN ALI:THE MOVIE

KG - Professional Development

10 Qs

Kemuhammadiyahan

Kemuhammadiyahan

University

10 Qs

PAKISTAN

PAKISTAN

1st Grade - University

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