Your browser does not support JavaScript!'

Introduction To C Language Solved Mcqs ~ CSBoxer

Welcome to CSBoxer, as you guys know. CSBoxer is all Computer Science's fundamentals.
All published articles are organized in simple, easy, and short English sentences to familiarize the students with computer science.
In that respect today's article is Introduction To C Language Solved Mcqs


Today's Topic
Introduction To C Language Solved Mcqs


Q1) Which of the following language provided the basis for the development

  1. B
  2. C++
  3. Pascal
  4. Com

Answer:B

Explanation:History of B Language
B is a programming language developed by Ken Thompson in the early 1970s while working at Bell Labs. B was essentially a simplified version of the BCPL language and was used to develop the original version of the Unix operating system. B was later superseded by the C programming language, which was also developed by Thompson and his colleague Dennis Ritchie. C became much more popular than B and is still widely used today for systems programming and other applications.

Q2) The statements written by programmer are called:

  1. Source code
  2. Object code
  3. Syntax
  4. Debugging

Answer: Source code

Explanation:Source code is the set of instructions written in a programming language that a computer can understand and execute.

Q3) The process of converting source code into object code is known as:

  1. Compiling
  2. Executing
  3. Linking
  4. Saving

Answer:Compiling

Explanation:The process of converting source code into object code is known as "compilation."

Q4) In assembly language, long machine language instructions are replaced with English like words called:

  1. Statements
  2. Mnemonics
  3. Directives
  4. Instructions

Answer:Mnemonics

Explanation:In assembly language, long machine language instructions are replaced with English-like words called "mnemonics". Moreover "Mnemonics" are short, easy-to-remember codes or symbols that are used in programming languages and assembly languages to represent machine language instructions or operations.

Q5) C is a

  1. High Level Language
  2. Low Level Language
  3. Assembly Language
  4. Machine Language

Answer:High Level Language

Explanation:A high-level language is a programming language that is designed to be more human-readable and easier to use than low-level languages, such as assembly or machine language.

Q6) exe file is produced by the:

  1. Linker
  2. Loader
  3. Compiler
  4. Interpreter

Answer:Linker

Explanation:Yes Linker is a the right answer because the linker is a program that takes one or more object files (generated from compiled source code) and combines them into a single executable file.

Q7) C statement ends with:

  1. Interprets
  2. Period
  3. Comma
  4. Semi Colon

Answer:Semi Colon

Explanation:In C programming language, the semicolon (;) is used as a statement terminator. In C programming language, every statement must end with a semicolon (;) character.

Q8) B was developed in the year:

  1. 160-70
  2. 1965-75
  3. 1972-88
  4. 1989-1984

Answer:160-70

Explanation:160-70B programming language was developed in the year 1970. It was created by Ken Thompson, a computer scientist at Bell Labs, as a systems programming language for the development of the Unix operating system.

Q9) The programmer usually enters source code

  1. Compiler
  2. Text edit
  3. Debugger
  4. Linker

Answer:Text Editor OR IDE

Explanation:The programmer usually enters source code into a text editor or an integrated development environment (IDE).

Q10) C-Language was developed in:

  1. 1962
  2. 1969
  3. 1970
  4. 1972

Answer:1972

Explanation:C programming language was developed in the early 1970s by Dennis Ritchie at Bell Labs. But the most creative period occurred during 1972.

Q11) C was designed to write Program for

  1. Windows Operating System
  2. Unix Operating System
  3. Solaris Operating System
  4. OS/2 Operating System

Answer:Unix Operating System

Explanation:Unix Operating System

Q12) Which of the following key is used to a program in memory to run

  1. Shift+F9
  2. Alt + F9
  3. Ctrl + F9
  4. Alt + F4

Answer:Alt + F9

Explanation:Alt + F9

Q13) Which of the key is used to load a program in memory to run

  1. Shift+F9
  2. Alt + F9
  3. Ctrl + F9
  4. Alt + F4

Answer:Ctrl + F9

Explanation:Ctrl + F9

Q14) Preprocessor directive are commands for

  1. Language Processor
  2. Microprocessor
  3. Loader
  4. C PreProcessor

Answer:C PreProcessor

Explanation:C PreProcessor directives are commands used in C and C++ programming languages to provide instructions to the preprocessor.

Q15) Which header file contains infromation about standard input/output

  1. Loader
  2. stfio.h
  3. conio.h
  4. stdio.h

Answer:stdio.h

Explanation:The standard input/output library in C programming language is declared in the <stdio.h> header file.

Q16) Which is low level language?

  1. Fortran
  2. Machine
  3. Visual Basic
  4. C

Answer:C

Explanation:C

Q17) An IDE consists of:

  1. Text editor
  2. Compiler
  3. Debugger
  4. All of These

Answer:All of These

Explanation:All of These

Q18) Which of the following key is used to save a file?

  1. F2
  2. F3
  3. F6
  4. F12

Answer:F2

Explanation:F2

Q19) Turbo C++ can compile:

  1. Assembly program
  2. Source Programs
  3. Machine program
  4. C & C++ program

Answer:C & C++ program

Explanation:C & C++ program

Q20) The extension of C Program file is:

  1. txt
  2. .obj
  3. .h
  4. .c

Answer:.c

Explanation:.c

Q21) The output of the compiler is:

  1. Library code
  2. Linked code
  3. Object code
  4. Source code

Answer: Object code

Explanation: Yes, it is true that the output of the C compiler is object code. When a C program is compiled, the compiler takes the source code and converts it into machine-readable code, which is saved in an object file.

Q22) Which of the following is used to donate preprocessor directives?

  1. #
  2. @
  3. %
  4. &

Answer:#

Explanation:#

Q23) The extension of header file is:

  1. .c
  2. .txt
  3. .hf
  4. .h

Answer:.h

Explanation:.h

Q24) Every C program must have:

  1. scanf function
  2. getche function
  3. main function
  4. print function

Answer:main function

Explanation:main function

Q25) C-Language programs are divided into units called:

  1. Section
  2. Syntax
  3. Function
  4. Debug

Answer:Function

Explanation: A function is a block of code that performs a specific task, and it can be called from other parts of a program to execute that task whenever needed. Functions help to organize code into smaller, reusable pieces, making it easier to write, read, and maintain.

Q26) A set of rules that must be followed to develop a program is called:

  1. Bug
  2. Debugging
  3. Preprocessor
  4. Syntax

Answer:Syntax

Explanation:Syntax is the set of rules and conventions that determine the correct structure and usage of words, symbols, and other elements in a programming language.

Q27) A set of rules for writing a program in high lever Language is called:

  1. Bug
  2. Debugging
  3. Preprocessor
  4. Syntax

Answer:Syntax

Explanation:A set of rules for writing a program in a high-level language is called the syntax of that language. Syntax defines the correct structure and usage of words, symbols, and other elements in the language, and it is used to create valid programs.

Q28) A compound statement refers to a group of statements enclosed in

  1. {}
  2. []
  3. ()
  4. ""

Answer: {}

Explanation: {}

Q29) A program syntax error is detected by:

  1. Linker
  2. Compiicr
  3. Loader
  4. Debugger

Answer:Compiicr

Explanation:The compiler is responsible for translating the source code of a program into machine-readable code, and it checks the code for syntax errors during this process.

Q30) Which of the error occur when the program directs the computer to perform an illegal Operation?

  1. Runtime error
  2. Logical error
  3. Execution Error
  4. Syntax Error

Answer:Runtime error

Explanation: Unlike syntax errors, which are detected by the compiler, runtime errors occur while the program is running.
Common examples of runtime errors in C programming language include:
Division by zero
Accessing an array out of bounds
Dereferencing a null pointer
Using an uninitialized variable

Q31) Which of the following language requires no translator to execute the program

  1. C
  2. C++
  3. Machine Language
  4. Assembly Language

Answer:Machine Language

Explanation:Machine language does not require a translator to execute a program. Machine language is the lowest-level programming language, consisting of binary code that is directly executed by the computer's processor. Machine language instructions are encoded as patterns of 1's and 0's, which the processor can interpret directly

Q32) The lowest level of Programming language is:

  1. Pascal
  2. Assembly Language
  3. Java it

Answer:Assembly Language

Explanation:Assembly Language

Q33) Which of the following language is the native language

  1. Assembly language.
  2. c pomputer
  3. Machine Language
  4. Visual Basic

Answer:Machine Language

Explanation:Machine language does not require a translator to execute a program. Machine language is the lowest-level programming language, consisting of binary code that is directly executed by the computer's processor. Machine language instructions are encoded as patterns of 1's and 0's, which the processor can interpret directly

Post a Comment

0 Comments

^