C Formatted scanf

C Formatted scanf

University

5 Qs

quiz-placeholder

Similar activities

QUIZ PERAN MANAJEMEN PADA INDUSTRI

QUIZ PERAN MANAJEMEN PADA INDUSTRI

University

10 Qs

Holiday Movies and Characters

Holiday Movies and Characters

KG - University

10 Qs

BASICS OF MECHATRONICS

BASICS OF MECHATRONICS

University

10 Qs

UTS SISTEM INFORMASI MANAJEMEN

UTS SISTEM INFORMASI MANAJEMEN

University

10 Qs

WoF Quizz

WoF Quizz

2nd Grade - Professional Development

6 Qs

fnaf sister location

fnaf sister location

4th Grade - University

10 Qs

Quiz - 09 : PTT - Digitalisasi data bag II Jarkom

Quiz - 09 : PTT - Digitalisasi data bag II Jarkom

University

10 Qs

Cupid and Psyche

Cupid and Psyche

University

10 Qs

C Formatted scanf

C Formatted scanf

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Azrinna Muhamad

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following code, what will be the input format for the integer values?

int a, b;

scanf("%3d %4d", &a, &b);

First integer takes 3 digits, second integer takes 4 digits

Both integers take 3 digits

Both integers take 4 digits

No specific digit limit

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct format specifier for reading a floating-point number?

%d

%f

%c

%s

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Integer input

Floating-point input

Character input

String input

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

scanf("%c", character);

scanf("%c", &character);

scanf("%d", &character);

scanf("%s", &character);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The program will read up to 10 characters, including the null terminator.

The program will read up to 9 characters and automatically add a null terminator.

The program will read exactly 9 characters without a null terminator.

The program will only read numbers.

Access all questions and much more by creating a free account

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

Already have an account?