Printf Scanf - 2

Printf Scanf - 2

Professional Development

10 Qs

quiz-placeholder

Similar activities

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 Qs

minecraft  : )

minecraft : )

1st Grade - Professional Development

13 Qs

DẠY HỌC TRỰC TUYẾN

DẠY HỌC TRỰC TUYẾN

Professional Development

10 Qs

Prova de Análise e Projeto de Sistemas

Prova de Análise e Projeto de Sistemas

Professional Development

10 Qs

Int Prog Semana 1

Int Prog Semana 1

Professional Development

11 Qs

DBMS-Transactions-Revision

DBMS-Transactions-Revision

Professional Development

12 Qs

Microsoft Access

Microsoft Access

10th Grade - Professional Development

10 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

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?