1.
C language has been developed by?
Correct Answer
B. Dennis Ritchie
Explanation
Dennis Ritchie is the correct answer because he is one of the creators of the C programming language. Along with Ken Thompson, Ritchie developed C at Bell Labs in the early 1970s. C became widely used and influential, serving as the basis for many other programming languages. Ritchie's contributions to the development of C and Unix have had a significant impact on the field of computer science.
2.
C can be used on?
Correct Answer
D. All of the above
Explanation
The correct answer is "All of the above" because C is a programming language that can be used on multiple operating systems, including MS-DOS, Linux, and Windows. It is a versatile language that can be compiled and executed on different platforms, making it widely applicable and compatible.
3.
C programs are convrted into the machine language with the help of?
Correct Answer
B. Compiler
Explanation
C programs are converted into machine language with the help of a compiler. A compiler is a software tool that translates the high-level code written in a programming language like C into low-level machine code that can be understood and executed by the computer's hardware. The compiler performs various tasks such as lexical analysis, syntax analysis, semantic analysis, code optimization, and code generation to produce the final executable machine code. Therefore, a compiler is the correct tool for converting C programs into machine language.
4.
The real constant in C can be expressed which of the following forms?
Correct Answer
D. Both Fractional and Exponetial
Explanation
The real constant in C can be expressed in both fractional and exponential forms. This means that a real constant in C can be written as a fraction or in scientific notation with an exponent. This flexibility allows for more precise and efficient representation of real numbers in programming, as it allows for a wider range of values to be expressed accurately.
5.
A character variable can at a time score?
Correct Answer
A. 1 character
Explanation
A character variable can only store one character at a time. It is a data type that is used to represent a single character such as a letter, digit, or special character. Therefore, the correct answer is 1 character.
6.
The statement char ch='z' would store in ch.
Correct Answer
B. ASCII value of Z
Explanation
The statement "char ch='z'" would store the ASCII value of the character 'z' in the variable ch. Since the question asks for the correct answer, which is the ASCII value of Z, it is implied that the correct answer is option (2).
7.
Which of the following is not a character constant?
Correct Answer
D. All of the above
Explanation
All of the options provided are examples of character constants. The first option 'Thank You' is a string constant enclosed in single quotes. The second option 'quest videos- IT Learning at its best' is also a string constant enclosed in single quotes. The third option '23.56e-03' is a floating-point constant. Therefore, none of the options are not character constants.
8.
The maximun value that an integer constant can have is?
Correct Answer
B. 32767
Explanation
The maximum value that an integer constant can have is 32767. This is because the given options are all integer constants, and the value 32767 is the highest among them.
9.
A C variable cannot start with?
Correct Answer
D. Both (2) and (3)
Explanation
In C programming, variable names must follow certain rules. According to the given options, a C variable cannot start with a number (option 2) or a special symbol other than underscore (option 3). Variable names in C must start with an alphabet or an underscore, and can be followed by any combination of alphabets, numbers, or underscores. Therefore, both option 2 and option 3 are correct, as they violate the rules for naming variables in C.
10.
Which of the following statements is wrong ?
Correct Answer
D. Count+5=res;
Explanation
The statement "count+5=res;" is wrong because it is trying to assign the value of the expression "count+5" to the variable "res". However, "count" is not defined in the given code, so this statement will result in an error.