Programming and Data Structure MCQ Quiz in मल्याळम - Objective Question with Answer for Programming and Data Structure - സൗജന്യ PDF ഡൗൺലോഡ് ചെയ്യുക

Last updated on Mar 8, 2025

നേടുക Programming and Data Structure ഉത്തരങ്ങളും വിശദമായ പരിഹാരങ്ങളുമുള്ള മൾട്ടിപ്പിൾ ചോയ്സ് ചോദ്യങ്ങൾ (MCQ ക്വിസ്). ഇവ സൗജന്യമായി ഡൗൺലോഡ് ചെയ്യുക Programming and Data Structure MCQ ക്വിസ് പിഡിഎഫ്, ബാങ്കിംഗ്, എസ്എസ്‌സി, റെയിൽവേ, യുപിഎസ്‌സി, സ്റ്റേറ്റ് പിഎസ്‌സി തുടങ്ങിയ നിങ്ങളുടെ വരാനിരിക്കുന്ന പരീക്ഷകൾക്കായി തയ്യാറെടുക്കുക

Latest Programming and Data Structure MCQ Objective Questions

Top Programming and Data Structure MCQ Objective Questions

Programming and Data Structure Question 1:

Consider the following C program:

#include

int main ( )

{

int a[ ] = {2, 4, 6, 8, 10};

int i, sum = 0, *b = a + 4;

for (i = 0; i < 5; i++)

sum = sum + (*b - i) - *(b - i);

printf (“ % d \ n”, sum);

return 0;

}

The output of the above C program is ________.

Answer (Detailed Solution Below) 10

Programming and Data Structure Question 1 Detailed Solution

integer pointer b points to 5th element of an static array a

*b = 10 / dereferencing

sum = 0 / initially

Values in loop

 sum = sum + (*b - i) - *(b - i);

i = 0

 sum = 0 + (10 - 0) - *(address_of_5th integer - 0)

 = 10 - *(address_of_5th integer)

 = 10 - 10 = 0

i = 1

 sum = 0 + (10 - 1) - *(address_of_5th integer - 1)

 = 0 + (10 - 1) - *(address_of_4th integer)

 = 9 - 8 = 1

i = 2

 sum = 1 + (10 - 2) - *(address_of_5th integer - 2)

 = 1 + (10 - 2) - *(address_of_3rd integer)

 = 9 - 6 = 3

i = 3

 sum = 3 + (10 - 3) - *(address_of_5th integer - 3)

 = 3 + (10 - 3) - *(address_of_2nd integer)

 = 10 - 4 = 6

i = 4

 sum = 6 + (10 - 4) - *(address_of_5th integer - 4)

 = 6 + (10 - 4) - *(address_of_1st integer)

 = 12 - 2 = 10

Programming and Data Structure Question 2:

Who is credited with developing the “C” language?

  1. Bill Gates
  2. Steve Rogers
  3. Dennis Ritchie
  4. Yashwant Kanetkar

Answer (Detailed Solution Below)

Option 3 : Dennis Ritchie

Programming and Data Structure Question 2 Detailed Solution

The correct answer is Dennis Ritchie.

Key Points

  • C programming is a general-purpose, procedural, imperative computer programming language created by Dennis M. Ritchie at Bell Telephone Laboratories in 1972 to help build the UNIX operating system.
  • The most extensively used computer language is C. Dennis Ritchie created C, a successor to the programming language B, at Bell Labs between 1972 and 1973 to build tools that ran on Unix.
  • It was used to re-implement the Unix operating system's kernel.
  • Dennis MacAlistair Ritchie was a computer scientist from the United States.
  • He designed the C programming language, as well as the Unix operating system and the B programming language, alongside long-time collaborator Ken Thompson. 

Additional Information

  • William Henry Gates III (Bill Gates) is a business entrepreneur, software developer, investor, author, and philanthropist from the United States. He and his late boyhood buddy Paul Allen co-founded Microsoft.
  • Yashavant Kanetkar is a computer science author from India well known for his publications on programming languages. He has written multiple books on programming in C, C++, VC++, C#,.NET, DirectX, and COM.

Programming and Data Structure Question 3:

Which image below represents the Quick Analysis tool command?

  1. new 16433517864081
  2. new 16433517864102
  3. new 16433517864103
  4. new 16433517864114

Answer (Detailed Solution Below)

Option 3 : new 16433517864103

Programming and Data Structure Question 3 Detailed Solution

The first one is the icon for summation that is used to add the contents in the chosen dataset.

Programming and Data Structure Question 4:

Automatic variables use which data structure for space allocation in memory?

  1. stack
  2. queue
  3. priority queue
  4. All the above

Answer (Detailed Solution Below)

Option 1 : stack

Programming and Data Structure Question 4 Detailed Solution

Memory of a computer is organized for running program into three segments: the text segment, stack segment, heap segment.

Stack and heap is where storage is allocated for data storage. Stack is where memory is allocated for automatic variables within functions.

Programming and Data Structure Question 5:

Which one of the following is not an example of computer language?

  1. ALGORITHM
  2. FORTRAN
  3. PASCAL
  4. COBOL

Answer (Detailed Solution Below)

Option 1 : ALGORITHM

Programming and Data Structure Question 5 Detailed Solution

The correct answer is ALGORITHM.

Key Points

  • An algorithm is a specific procedure for solving a well-defined computational problem.
  • The development and analysis of algorithms are fundamental to all aspects of Computer Science like AI, databases, graphics, networking, OS, etc.
  • Algorithm development is more than just programming.
    • It requires an understanding of the alternatives available for solving a computational problem.
    • It includes the hardware, networking, programming language, and performance constraints that accompany any particular solution.

Additional Information

  • An official language comprising a collection of instructions that produce different kinds of output is a programming language.
  • In computer science, programming languages are used to implement algorithms.
  • Most of the languages of programming consist of computer instructions.
Pascal
  • Pascal language is mostly a teaching language and few industries use this language to write the programs.
  • This language tends to use keywords instead of symbols and braces in the C language.
  • So this language is very easy for beginners to understand than a programming language like C, C++. 
Fortron
  • It is a computer programming language.
  • It was created in 1957 by John Backus.
  • The name produced from the two words FORmula TRANslation.
  • It is commonly used for numeric and scientific computing.
Cobol
  • COBOL stands for Common Business Oriented Language.
  • It is first developed in 1960 by the CODASYL Committee (Conference on Data Systems Languages).
  • It is primarily designed for use in business-oriented applications.

Programming and Data Structure Question 6:

The property or the ability to take more than one form is called as

  1. Encapsulation
  2. Polymorphism
  3. Inheritance
  4. Data transform

Answer (Detailed Solution Below)

Option 2 : Polymorphism

Programming and Data Structure Question 6 Detailed Solution

Polymorphism:-

  • The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form.
  • A real-life example of polymorphism is when two people have distinct characteristics at the same time. At the same time, he is a father, a spouse, and an employee. As a result, the same person behaves differently in different settings. 
  •  Polymorphism is considered one of the important features of Object-Oriented Programming.

Polymorphism is mainly divided into two types:

  • Compile-time Polymorphism
  • Runtime Polymorphism

Compile-time polymorphism

This is achieved by function overloading or operator overloading.

  • Function Overloading - When there are multiple functions with the same name but different parameters then these functions are said to be overloaded
  • Operator overloading - When there are multiple operations that can be performed by using a single operator is called operator overloading for example operator ‘+’ when placed between integer operands, adds them, and when placed between string operands, concatenates them.

Run Time Polymorphism

It is achieved by Function Overriding

Additional Information

Encapsulation

  • It is the process or method to contain the information.
  • Wrapping of data and function into a single unit is called data encapsulation
  • Encapsulation is a method to hide the data in a single entity or unit along with a method to protect information from outside.
  • It can be implemented using by access modifier.  


Inheritance

The capability of a class to derive properties from another class is called Inheritance

  • The class that inherits properties from another class is called Subclass or Derived Class.
  • The class whose properties are inherited by a subclass is called Base Class or Superclass.

Syntax for Inheritance

class derived_name : access_mode base_class

{

/body of the derived class

};

Programming and Data Structure Question 7:

What is the output of the following C code:

int main( ) 

{

int p=8,q=-3,r=0;

int x,y,z; 

x = p && q && r ;

y = p || q && r ;

z = p && q || r ;

printf ("%d", x+y+z) ; 

return 0;

}

  1. -1
  2. 0
  3. 1
  4. 2

Answer (Detailed Solution Below)

Option 4 : 2

Programming and Data Structure Question 7 Detailed Solution

Working of logical operators:

x

y

x||y

x&&y

0

0

0

0

0

Non-zero

1

0

Non-zero

0

1

0

Non-zero

Non-zero

1

1

 

Precedence order of && is higher than ||.

Logical operators will result in 0 or 1 always.

x + y + z = 0 + 1 + 1 = 2

Programming and Data Structure Question 8:

What is the shortcut for navigating to the next sheet?

  1. Ctrl+PageUp
  2. Ctrl+PageDown
  3. Ctrl+Home
  4. Ctrl+End

Answer (Detailed Solution Below)

Option 2 : Ctrl+PageDown

Programming and Data Structure Question 8 Detailed Solution

Ctrl+PageUp is used to navigate to the previous sheet

Ctrl+Home is used to bring the control(cursor) to the first cell of the active worksheet

Ctrl+End does nothing (self created)

Programming and Data Structure Question 9:

What is the minimum size of char in C? 

  1. 8 bit
  2. 16 bit
  3. 4 bit
  4. 32 bit

Answer (Detailed Solution Below)

Option 1 : 8 bit

Programming and Data Structure Question 9 Detailed Solution

The correct answer is 8 bit.

 Key Points

  • The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.
  • The Size of the char data type is 1 byte or 8bit.

 Additional Information

Type

Storage size

Value range

char

1 byte

-128 to 127 or 0 to 255

unsigned char

1 byte

0 to 255

signed char

1 byte

-128 to 127

int

2 or 4 bytes

-32,768 to 32,767 or -2,147,483,648 to 2,147,483,647

unsigned int

2 or 4 bytes

0 to 65,535 or 0 to 4,294,967,295

short

2 bytes

-32,768 to 32,767

unsigned short

2 bytes

0 to 65,535

long

8 bytes or (4bytes for 32 bit OS)

-9223372036854775808 to 9223372036854775807

unsigned long

8 bytes

0 to 18446744073709551615

Programming and Data Structure Question 10:

What is the time complexity of a removing middle element from a doubly linked list?

  1. O(1)
  2. O(n)
  3. O(log n)
  4. O(n2)

Answer (Detailed Solution Below)

Option 2 : O(n)

Programming and Data Structure Question 10 Detailed Solution

If deletion is done at the head or tail then time complexity is O(1). The time complexity is O(n) if an element is removed from anywhere else since there is a need to reach that position by traversing the linked list linearly.
Get Free Access Now
Hot Links: teen patti joy official yono teen patti teen patti master gold download