formatted and unformatted input/output in c mcq

formatted and unformatted input/output in c mcq

Professional Development

11 Qs

quiz-placeholder

Similar activities

M2 - Topic 5 - Variables & Constants

M2 - Topic 5 - Variables & Constants

Professional Development

10 Qs

C Operators

C Operators

University - Professional Development

15 Qs

ice breaker

ice breaker

Professional Development

10 Qs

DAY1

DAY1

Professional Development

15 Qs

PJP Apr 23

PJP Apr 23

Professional Development

10 Qs

DAY 1 - C& C++ Assessment _10th June 24

DAY 1 - C& C++ Assessment _10th June 24

Professional Development

10 Qs

Arrays & Strings using C

Arrays & Strings using C

Professional Development

15 Qs

Quiz 9 - JSP_TalentNext

Quiz 9 - JSP_TalentNext

Professional Development

8 Qs

formatted and unformatted input/output in c mcq

formatted and unformatted input/output in c mcq

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Niranjani Vijayan

Used 15+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Escape Sequence in C language.?

A) An escape sequence is a combination of two characters starting with Back Slash always.

B) An escape sequence is usually part of a string to tell compiler to produce New Lines, New tabs, Single or Double quotes etc

C) An escape sequence is used to format the output to look in desired way.

D) All the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose a correct statement about C Escape Sequences.

A) \n produces new line.

B) \t produces one tab space (white spaces)

C) \b produces one Backspace

D) All the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose a C unformatted input output function below.

A) gets(), puts()

B) getchar(), putchar()

C) A & B

D) None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C program.?

int main()

{

int a=123;

printf("*%06d*",a);

return 0;

}

A) *123*

B) *6123*

C) *000123*

D) *006123*

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C program.?

int main()

{

int a=123456;

printf("*%03d*",a);

return 0;

}

A) *123*

B) *6123*

C) *123456*

D) *012345*

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C program.?

int main()

{

float a=654.123456f;

printf("%3.3f,%3.2f",a,a);

return 0;

}

A) 654,654

B) 654.123456,654.123456

C) 654.123,654.12

D) 654.000,654.00

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C program.?

int main()

{

char ch='A';

ch=getchar();

putchar(ch);

return 0;

}//input= S

A) A

B) B

C) S

D) Compiler error

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?