Printf Scanf - 2

Printf Scanf - 2

Professional Development

10 Qs

quiz-placeholder

Similar activities

BASIC OF COMPUTER

BASIC OF COMPUTER

Professional Development

10 Qs

QUIZ 1

QUIZ 1

Professional Development

10 Qs

Service Learning Flowchart

Service Learning Flowchart

KG - Professional Development

10 Qs

Introduction to Hyperconverged: HCI 101

Introduction to Hyperconverged: HCI 101

Professional Development

10 Qs

Streams

Streams

Professional Development

10 Qs

BẢNG CHỌN HOME

BẢNG CHỌN HOME

Professional Development

10 Qs

Python-Quiz-Basic-Datatypes

Python-Quiz-Basic-Datatypes

12th Grade - Professional Development

10 Qs

C Programming

C Programming

Professional Development

10 Qs

Printf Scanf - 2

Printf Scanf - 2

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Zohaib Hasan

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

printf("%d", printf("Hello"));

Hello

5

5Hello

Hello5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output if the input given is 456?

int a;

    printf("%d", scanf("%d", &a));

456

3

1

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output?

long int n = 123456789;

    printf("%d",printf("%ld", n));

1234567899

9

10

123456789

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output if the input is 3 4?

int a,b,c ;

    scanf("%d%d%n", &a, &b, &c);

    printf("%d %d %d", a, b, c);

3 4 3

3 4

3 4 garbage values

3 3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output if the input is 34 35?

int a, b;

    printf("%d",(scanf("%d %d",&a,&b)));

2

4

5

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output if the input is 4?

int a;

    scanf("%d", a);

    printf("%d", a);

4

Garbage Value

5

Runtime error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

printf("AB\bbq\bqw\ber\b\bsFt\ber");

AbqsFer

ABbqesF

ebqesF

qbqesF

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?