1.
C language was developed by ?
Correct Answer
D. Dennis Ritchie
Explanation
Dennis Ritchie is the correct answer because he was one of the key developers of the C programming language. Along with Brian Kernighan, Ritchie created C at Bell Labs in the early 1970s. C became widely used and influential, serving as the foundation for many other programming languages. Ritchie's contributions to the development of C and his work on other projects, such as the Unix operating system, solidified his reputation as a pioneering computer scientist.
2.
C language is a language of ?
Correct Answer
C. Middle level
Explanation
The C language is considered a middle-level language because it combines features of both high-level and low-level languages. It provides low-level access to memory and hardware, which allows for efficient programming, but it also includes high-level constructs like functions and data structures, making it easier to write and read code compared to low-level languages. Therefore, C is often referred to as a middle-level language.
3.
In C which character is used to terminate the instruction ?
Correct Answer
B. ;
Explanation
In the C programming language, the character ";" is used to terminate an instruction. This character is known as a semicolon and it is placed at the end of each statement to indicate the end of that particular instruction. The semicolon is essential in C because it helps the compiler understand where one instruction ends and the next one begins. Without the semicolon, the compiler would not be able to parse the code correctly and errors would occur. Therefore, the semicolon is necessary to properly terminate instructions in C.
4.
C Programs cab be written in ... ?
Correct Answer
A. Lower case letters
Explanation
C programs can be written in lower case letters because the C programming language is case-sensitive. This means that lowercase and uppercase letters are treated as distinct and separate. Therefore, programmers have the flexibility to use lowercase letters when writing C programs without any restrictions. However, it is important to note that while lowercase letters are allowed, it is common practice to use a combination of lowercase and uppercase letters for better readability and understanding of the code.
5.
Which of these is not a version of C language ?
Correct Answer
D. Fast C
Explanation
Fast C is not a version of the C language. Microsoft C, Quick C, and Turbo C are all well-known versions of the C language that have been developed by different companies. However, Fast C is not a recognized version of the C language.
6.
C Programming Follows ....?
Correct Answer
B. Structured approach
Explanation
C programming follows a structured approach. This means that the code is organized into logical blocks or functions that perform specific tasks. It emphasizes the use of control structures like loops and conditionals to control the flow of the program. This approach helps in writing modular and maintainable code, making it easier to understand and debug.
7.
C Programs are converted into machine language with the helop of ..... ?
Correct Answer
A. 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 source code written in a programming language like C into machine code that can be executed by the computer's processor. It performs various tasks such as lexical analysis, syntax analysis, semantic analysis, and code generation to convert the program into machine language instructions.
8.
C was primarily developed as a ?
Correct Answer
A. Systems Programing Language
Explanation
C was primarily developed as a systems programming language. It was designed to provide low-level access to memory and hardware, making it suitable for developing operating systems, device drivers, and other system-level software. C's syntax and features also make it a general-purpose language, allowing it to be used for a wide range of applications. However, its initial development and intended use were focused on system programming tasks.
9.
A character variable can at a time score ?
Correct Answer
A. 1 character
Explanation
A character variable can only store and represent one character at a time. It is designed to hold a single character value, such as a letter, number, or symbol. Therefore, the correct answer is "1 character".
10.
The real constant in C can be expressed in which of the following forms ?
Correct Answer
D. Both fractional and Exponential form
Explanation
The real constant in C can be expressed in both fractional and exponential form. In fractional form, a real constant can be written as a fraction with a numerator and a denominator. In exponential form, a real constant can be written as a base raised to an exponent. Both forms allow for the representation of real constants in C.