ExamVeda
Login
Home
31
Who is father of C Language?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
32
C Language developed at _________?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
33
For 16-bit compiler allowable range for integer constants is ________?
Discuss
Answer & Solution
Answer: Option D
Solution:
In a 16 Bit C compiler we have 2 bytes to store an integer, and 1 byte for a character.
For unsigned integers the range is 0 to 65535.
For signed integers the range is -32768 to 32767.
For unsigned character, 0 to 255
34
C programs are converted into machine language with the help of
Discuss
Answer & Solution
Answer: Option B
Solution:

A compiler is a system software that converts high level language into machine level language.

35
C was primarily developed as
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
36
Standard ANSI C recognizes ______ number of keywords?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
37
Which one of the following is not a reserved keyword for C?
Discuss
Answer & Solution
Answer: Option C
Solution:
In C programming, reserved keywords are words that have predefined meanings and cannot be used as identifiers (such as variable names, function names, etc.).

Option A: auto - This is a reserved keyword in C, used for automatic variables.

Option B: case - This is a reserved keyword in C, used in switch statements to specify different cases.

Option C: main - This is not a reserved keyword in C. Although main is a commonly used function name for the entry point of a C program, it is not a reserved keyword.

Option D: default - This is a reserved keyword in C, used in switch statements as a default case.

Option E: register - This is a reserved keyword in C, used to define register variables for fast access.

Therefore, the correct answer is Option C: main.
38
A C variable cannot start with
Discuss
Answer & Solution
Answer: Option C
Solution:
In C programming, variable names must adhere to specific rules regarding their initial characters. A C variable cannot start with the following:

A Number:
Variable names in C must begin with a letter (a-z, A-Z) or an underscore (_). They cannot start with a digit (0-9). For example, 1variable is not a valid variable name.

A Special Symbol Other Than Underscore:
Variable names cannot start with special symbols like @, #, $, etc., other than the underscore (_). For example, @variable is not a valid variable name.

Option D: An Alphabet:
This option is incorrect because variables can start with an alphabet (a-z, A-Z) or an underscore (_).

Therefore, the correct answer is Option C: Both of the above as variable names cannot start with a number or a special symbol other than an underscore.
39
Which one of the following is not a valid identifier?
Discuss
Answer & Solution
Answer: Option B
Solution:

The first character must be a letter or special symbol underscore( _ ).

40
What will be printed after execution of the following program code?
main()
{
      printf("\\nab"); 
      printf("\\bsi"); 
      printf("\\rha"); 
}
Discuss
Answer & Solution
Answer: Option D
Solution:
\\n - newline - printf("\\nab"); - Prints 'ab'
\\b - backspace - printf("\\bsi"); - firstly '\\b' removes 'b' from 'ab ' and then prints 'si'. So after execution of printf("\\bsi"); it is 'asi'.
\\r - linefeed - printf("\\rha"); - Now here '\\r' moves the cursor to the start of the current line and then override 'asi' to 'hai' .