This section contains carefully selected MCQs and Previous Year Questions with explanations to help students understand concepts and prepare effectively for examinations, interviews, and competitive tests.
Q: 1
Match Set—A with Set—B:
| Set—A | Set—B |
|---|---|
| a. Java | P. Ken Thompson |
| b. Google | Q. Bjarne Stroustrup |
| c. C | R. Guido Van Rossum |
| d. Facebook | S. Dennis Ritchie |
| e. BCPL | T. Martin Richards |
| f. C++ | U. Rasmus Lerdorf |
| g. Python | V. Mark Zuckerberg |
| h. B | W. James Gosling |
| i. PHP | X. Larry Page |
Option D
| TECHNOLOGY | DESCRIPTION |
|---|---|
| Java | Java was developed by James Gosling at Sun Microsystems. |
| Google was founded by Larry Page along with Sergey Brin. | |
| C | The C programming language was created by Dennis Ritchie at AT&T Bell Labs in 1972. |
| Facebook was created by Mark Zuckerberg in 2004. | |
| BCPL | BCPL (Basic Combined Programming Language), which influenced B and C, was created by Martin Richards. |
| C++ | C++ was developed by Bjarne Stroustrup, adding Object-Oriented features to C language. |
| Python | Python was created by Guido Van Rossum. |
| B | The B programming language was developed by Ken Thompson. |
| PHP | PHP (PHP Hypertext Preprocessor) was originally created by Rasmus Lerdorf in 1994. The PHP originally stood for Personal Home Page. |
Q: 2A computer program that converts an assembly language program into equivalent machine language program is called
Option B
A computer program that converts an assembly language program into its equivalent machine language is called an assembler.
Assembly language uses symbolic instructions like MOV, ADD, SUB etc. called mnemonics, which are easier for humans to understand but must be translated into binary machine code for the computer to execute.
Q: 3Which one of the following tools generates parser from BNF notation?
Option B
YACC (Yet Another Compiler Compiler) is a tool used to generate a parser from grammar specifications written in BNF (Backus–Naur Form).
It takes the grammar rules of a programming language as input and produces a Syntax Analyzer (Parser) that checks whether the input program follows those rules.
Q: 5Which of the following is not a procedural language?
Option D
A procedural language tells the computer how to do something step by step. These languages follow a clear set of instructions.
Q: 6Generally, the syntax errors are occurred during?
Option A
Syntax Errors occur during Compile Time because the compiler checks the code for correct syntax before converting it into machine code. If there is any violation of syntax rules like missing comma, missing semicolon, missing quotes, wrong brackets, or misspelled keywords, the compiler immediately reports the error and does not allow the program to run until these errors are fixed.
Q: 7Which language is better for writing structured code?
Option A
Structured code means writing programs in an organized way using sequence, selection, loops, and functions or procedures. This style makes a program easier to read, understand, and maintain.
PASCAL is considered the best for writing structured code because it was specially designed for teaching good programming practices. It strongly supports structured programming and encourages programmers to divide the program into clear, logical parts.
Q: 8Which one of the following is not performed during the compilation of a program?
Option C
Compilation is the process of converting source code into machine code. It can do things like syntax checking, type checking, and keeping track of symbols such as variables and functions in the symbol table.
But Dynamic Memory Allocation happens at run time, not during compilation. Memory is requested while the program is executing.
Q: 9In a modular programming approach problem is further divided into ___________.
Option C
Modular Programming is a programming approach in which a large program is divided into smaller and manageable parts called Modules. Each module performs a specific task independently. This approach makes programs:
For example, a student management system may contain separate modules for admission, fee management, result processing, and report generation.
Q: 10Which geometrical figure represents for Input/Output operation of an algorithm?
Option D
In flowchart representations of algorithms, the Parallelogram is used to represent Input-Output operations.
| SYMBOL | USED FOR | DESCRIPTION |
|---|---|---|
| Oval | Start / End | Represents the beginning or termination of a process. |
| Rectangle | Process | Represents a process, task, or operation to be performed. |
| Parallelogram | Input / Output | Represents input or output operations, such as reading data or displaying results. |
| Diamond | Decision | Represents a conditional or decision-making step. |
| Connector | Small Circle | Connects different parts of the flowchart. |
| Arrow | Flowline | Shows the direction of flow from one step to another. |
| Rectangle with wavy base | Document | Represents a document or report. |
| Rectangle with double-struck sides | Predefined Process | Represents a subroutine or predefined process. |
Q: 11The __________ provides pictorial representation of given problem.
Option B
A flowchart uses symbols and arrows to show the steps of a problem visually. It is a pictorial (diagrammatically) representation of how a program works.
Q: 12What does COBOL stands for?
Option A
COBOL is one of the oldest high-level programming languages, mainly created for handling business-related tasks such as banking, payroll, and financial records. The full form of COBOL is Common Business Oriented Language. It was developed by CODASYL (Conference on Data Systems Languages) in the year 1959.
Q: 13Which feature of the C language primarily contributed to its widespread adoption in the development of UNIX?
Option B
Q: 14Which of these statements about the standardization of C is incorrect?
Option B
New Features Added in C99:
E.g.:
#include<stdio.h>
void main()
{
int n,i;
printf("Enter Array Size : ");
scanf("%d",&n);
int arr[n];// size decided at runtime.
printf("Enter %d Array Elements
",n);
for(i=0;i<n;i++)
scanf("%d",&arr[i]);
printf("The Array Elements Are
");
for(i=0;i<n;i++)
printf("%d ",arr[i]);
}
OUTPUT
Enter Array Size : 5
Enter 5 Array Elements
11
22
33
44
55
The Array Elements Are
11 22 33 44 55In Short,
Q: 15The assembly language is
Option B
Assembly Language is considered a low-level language because it is closely related to the machine language instructions executed by the computer hardware.
It uses mnemonic codes such as MOV, CALL, ADD, or SUB instead of binary machine instructions, making it slightly easier for humans to read but still very hardware-specific.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.