Q1) Which of the following language provided the basis for the development
- B
- C++
- Pascal
- 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:
- Source code
- Object code
- Syntax
- 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:
- Compiling
- Executing
- Linking
- 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:
- Statements
- Mnemonics
- Directives
- 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
- High Level Language
- Low Level Language
- Assembly Language
- 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:
- Linker
- Loader
- Compiler
- 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:
- Interprets
- Period
- Comma
- 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:
- 160-70
- 1965-75
- 1972-88
- 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
- Compiler
- Text edit
- Debugger
- 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:
- 1962
- 1969
- 1970
- 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
- Windows Operating System
- Unix Operating System
- Solaris Operating System
- 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
- Shift+F9
- Alt + F9
- Ctrl + F9
- Alt + F4
Answer:Alt + F9
Explanation:Alt + F9
Q13) Which of the key is used to load a program in memory to run
- Shift+F9
- Alt + F9
- Ctrl + F9
- Alt + F4
Answer:Ctrl + F9
Explanation:Ctrl + F9
Q14) Preprocessor directive are commands for
- Language Processor
- Microprocessor
- Loader
- 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
- Loader
- stfio.h
- conio.h
- 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?
- Fortran
- Machine
- Visual Basic
- C
Answer:C
Explanation:C
Q17) An IDE consists of:
- Text editor
- Compiler
- Debugger
- All of These
Answer:All of These
Explanation:All of These
Q18) Which of the following key is used to save a file?
- F2
- F3
- F6
- F12
Answer:F2
Explanation:F2
Q19) Turbo C++ can compile:
- Assembly program
- Source Programs
- Machine program
- C & C++ program
Answer:C & C++ program
Explanation:C & C++ program
Q20) The extension of C Program file is:
- txt
- .obj
- .h
- .c
Answer:.c
Explanation:.c
Q21) The output of the compiler is:
- Library code
- Linked code
- Object code
- 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?
- #
- @
- %
- &
Answer:#
Explanation:#
Q23) The extension of header file is:
- .c
- .txt
- .hf
- .h
Answer:.h
Explanation:.h
Q24) Every C program must have:
- scanf function
- getche function
- main function
- print function
Answer:main function
Explanation:main function
Q25) C-Language programs are divided into units called:
- Section
- Syntax
- Function
- 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:
- Bug
- Debugging
- Preprocessor
- 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:
- Bug
- Debugging
- Preprocessor
- 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
- {}
- []
- ()
- ""
Answer: {}
Explanation: {}
Q29) A program syntax error is detected by:
- Linker
- Compiicr
- Loader
- 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?
- Runtime error
- Logical error
- Execution Error
- 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
- C
- C++
- Machine Language
- 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:
- Pascal
- Assembly Language
- Java it
Answer:Assembly Language
Explanation:Assembly Language
Q33) Which of the following language is the native language
- Assembly language.
- c pomputer
- Machine Language
- 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
0 Comments