C Multiple Choice Printf Online Exam Quiz

C Multiple Choice Printf GK Quiz. Question and Answers related to C Multiple Choice Printf. MCQ (Multiple Choice Questions with answers about C Multiple Choice Printf

If by mistake you specify more number of arguments, the excess arguments will ____________

Options

A : be ignored

B : produce compile error

C : produce run-time error

D : produce logical error

View Answer

What will the given code result in printf(“ you are”awesome "" ");?

Options

A : compile error

B : run-time error

C : you are "awesome"

D : you are awesome

View Answer

What happens when zero flag is used with left justification?

Options

A : data is padded with zeros

B : zero flag is ignored

C : data is padded with blank spaces

D : will give error

View Answer

For floating point numbers, the precision flag specifies the number of decimal places to be printed. When no precision modifier is specified, printf() prints _______

Options

A : six decimal positions

B : five decimal positions

C : four decimal positions

D : three decimal positions

View Answer

What will be the output for the given code printf(“ The number is %07d”,1212);

Options

A : The number is 0001212

B : The number is 1212

C : The number is 1212

D : The number is 1212000

View Answer

Chemical Engineering Basics - Part 1 more Online Exam Quiz

C Multiple Choice File Operations

C Multiple Choice General Utilities

C Multiple Choice Implementation Defined Limits

C Multiple Choice Mathematical Functions

C Multiple Choice Non Local Jumps

C Multiple Choice Scanf

C Multiple Choice Stringizers

C Multiple Choice String Operations

C Printf

C Recursion