Programming in C MCQ - Constants, Variables and Data Types

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.

In signed magnitude form, one bit is dedicated to store the sign. (e.g.. 1 for negative and 0. otherwise). Only the remaining 15 bits arc available to store the magnitude. Hence the answer.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.

Any function (including main ( ) ) , returns a value to the calling environment. In the case of printf, it is the number of characters it printed. So. the output will be tim3 (since it printed the three characters a, b, c).
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
Found this useful?
Follow:

Take reference from below.
Any function (including main ( ) ) , returns a value to the calling environment. In the case of printf, it is the number of characters it printed. So. the output will be tim3 (since it printed the three characters a, b, c).
The scanf function returns the number of successful matches. i.e., 3 in this case.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.

The input is actually a \ n b. Since we are reading only two characters, only a and \ will be read and printed.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
A literal is a value written directly in source code, such as 25, 3.14, or a character constant. A string literal is a sequence of characters enclosed in double quotation marks, such as "Hello". The word literal is broader than string constant, although the question uses the two terms together.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free