Printf Scanf - 2

Printf Scanf - 2

Professional Development

10 Qs

quiz-placeholder

Similar activities

Java Displaying Data & Data Types

Java Displaying Data & Data Types

University - Professional Development

12 Qs

หน่วยที่  การโปรแกรมคอมพิวเตอร์เชิงโครงสร้าง 1/66

หน่วยที่ การโปรแกรมคอมพิวเตอร์เชิงโครงสร้าง 1/66

Professional Development

10 Qs

Algoritmos y Programación C - Funciones y Procedimientos

Algoritmos y Programación C - Funciones y Procedimientos

Professional Development

8 Qs

Lenguaje C

Lenguaje C

Professional Development

15 Qs

C Quiz

C Quiz

Professional Development

10 Qs

Career Opportunities in IT : {Shakeel Juman}

Career Opportunities in IT : {Shakeel Juman}

Professional Development

10 Qs

java

java

University - Professional Development

8 Qs

PST Using C Part1

PST Using C Part1

Professional Development

10 Qs

Printf Scanf - 2

Printf Scanf - 2

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Zohaib Hasan

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?