What is an Escape Sequence in C language.?

formatted and unformatted input/output in c mcq

Quiz
•
Professional Development
•
Professional Development
•
Hard
Niranjani Vijayan
Used 15+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
10 questions
CPR Quiz_chapter 5_structure

Quiz
•
Professional Development
15 questions
CPR_Quiz_Chapter4_function

Quiz
•
Professional Development
10 questions
Quiz for Module2

Quiz
•
Professional Development
15 questions
C Programming Tutorial 1 (Chapter 2)

Quiz
•
Professional Development
10 questions
Kuis Array

Quiz
•
Professional Development
10 questions
Day12_Quiz_NBKR

Quiz
•
Professional Development
10 questions
pemrograman dasar

Quiz
•
Professional Development
14 questions
Technical Quiz Final Round

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade