Select Page
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages
Filter by Categories
nmims post
Objective Type Set
Online MCQ Assignment
Question Solution
Solved Question
Uncategorized

# Multiple choice question for engineering

## Set 1

1. Representation of the different phase of a compound on a two or three dimensional graph is
a) Block diagram
b) Equilibrium diagram
c) Phase diagram
d) None of the mentioned

Answer: c [Reason:] Representation of the different phase of a compound on a two or three dimensional graph is called Phase diagram.

2. A non-condensable gas is found
a) Above the critical point
b) Below the critical point
c) On the critical point
d) None of the mentioned

Answer: a [Reason:] A non-condensable gas is found above the critical point.

3. Incorrect statement about a phase diagram is
a) Phase diagram are based on equilibrium conditions
b) For phase equilibrium, it is assumed that the phase doesn`t remain invariant
c) Phase diagrams enable to view the properties of two or more phases as a function of temperature, pressure and other variable
d) None of the mentioned

Answer: b [Reason:] For phase equilibrium, it is assumed that the phase remains invariant.

4. The one P-T-V combination at which solid, liquid and vapour are in equilibrium, is called
a) Critical point
b) Triple point
c) Saturation point
d) None of the mentioned

Answer: b [Reason:] The one P-T-V combination at which solid, liquid and vapour are in equilibrium, is called Triple point.

5. If the vapour and liquid of a pure component are in equilibrium, the equilibrium pressure is called
a) Partial pressure
b) Vapour pressure
c) Liquid pressure
d) None of the mentioned

Answer: b [Reason:] If the vapour and liquid of a pure component are in equilibrium, the equilibrium pressure is called Vapour pressure.

6. At a given temperature there is only ________ pressure at which the vapour and liquid phases of a pure substances may exist in equilibrium.
a) Three
b) Two
c) One
d) None of the mentioned

Answer: c [Reason:] At a given temperature there is only one pressure at which the vapour and liquid phases of a pure substances may exist in equilibrium.

7. The change of phase from liquid to vapour is called
a) Boiling
b) Melting
c) Condensation
d) None of the mentioned

Answer: a [Reason:] The change of phase from liquid to vapour is called Boiling.

8. __________ is the temperature at which a liquid just start to vaporize.
a) Critical point
b) Bubble point
c) Triple point
d) Saturation point

Answer: b [Reason:] Bubble point is the temperature at which a liquid just start to vaporize.

9. Find the incorrect statement for condensation
a) The change of phase from vapour to liquid
b) Occurs at constant temperature and pressure
c) The process appears as a point in in a P-T diagram
d) All of the mentioned

Answer: d [Reason:] All a, b & c are correct for condensation.

10.______ is the temperature at which the vapour just begins to condense at a specified pressure, that is the value temperature along the vapour pressure curve.
a) Dew point
b) Bubble point
c) Triple point
d) Critical point

Answer: a [Reason:] Dew point is the temperature at which the vapour just begins to condense at a specified pressure, that is the value temperature along the vapour pressure curve.

## Set 2

1. Which of the following block information is odd man out in the below figure ?

a) Scatterplots
b) 5 number summary
c) 2D Graph
d) None of the mentioned

Answer: b [Reason:] 5 number summary is one dimensional graph.

2. Which type of graph is shown in the following figure ?

a) Scatterplot
b) Barplot
c) Overlaying
d) None of the Mentioned

Answer: b [Reason:] A bar plot represents an estimate of central tendency for a numeric variable with the height of each rectangle.

3. Which of the following annotation function is used to add or modify text ?
a) word
b) graph
c) lines
d) all of the Mentioned

Answer: d [Reason:] points and axis are other well known annotation function.

4. Which of the following package is implemented by lattice plotting system ?
a) grDevices
b) grid
c) graphics
d) all of the Mentioned

Answer: b [Reason:] Use grid on to display the major grid lines.

5. Point out the wrong statement:
a) Plot are created with multiple functions only
b) Plots are created with both single and multiple function calls
c) Annotation in plot is not especially intuitive
d) None of the Mentioned

Answer: a [Reason:] Plots are created with single function also.

6. Which of the following parameter defines line type such as dashed and dotted ?
a) lty
b) pch
c) lwd
d) all of the Mentioned

Answer: a [Reason:] lwd is used for line width.

7. The core plotting engine is encapsulated in graphics package.
a) True
b) False

Answer: a [Reason:] graphics package contain plotting functions.

8. Which of the following argument specifies margin size with regards to par function ?
a) las
b) bg
c) mar
d) All of the mentioned

Answer: c [Reason:] par function is used to specify global parameters.

9. How many stages commonly occurs in creation of plot ?
a) 2
b) 5
c) 8
d) All of the Mentioned

Answer: a [Reason:] The base plotting system is highly flexible.

10. Base graphics are used most commonly for creating 2D graphics.
a) True
b) False

Answer: a [Reason:] Base graphics is very powerful system for creating 2D graphics.

## Set 3

1. What kind of linked list is best to answer question like “What is the item at position n?”
d) Array implementation of linked list

2. Linked lists are not suitable to for the implementation of?
a) Insertion sort
c) Polynomial manipulation
d) Binary search

3. Linked list is considered as an example of ___________ type of memory allocation.
a) Dynamic
b) Static
c) Compile time
d) None of the mentioned

Answer: a [Reason:] As memory is allocated at the run time.

4. In Linked List implementation, a node carries information regarding
a) Data
d) None of the mentioned

5. Linked list data structure offers considerable saving in
a) Computational Time
b) Space Utilization
c) Space Utilization and Computational Time
d) None of the mentioned

6. Which of the following points is/are true about Linked List data structure when it is compared with array
a) Arrays have better cache locality that can make them better in terms of performance
b) It is easy to insert and delete elements in Linked List
c) Random access is not allowed in a typical implementation of Linked Lists
d) All of the mentioned

7. What does the following function do for a given Linked List with first node as head?

{
return;
}

a) Prints all nodes of linked lists
b) Prints all nodes of linked list in reverse order
c) Prints alternate nodes of Linked List
d) Prints alternate nodes in reverse order

Answer: b [Reason:] fun1() prints the given Linked List in reverse manner. For Linked List 1->2->3->4->5, fun1() prints 5->4->3->2->1.

8. Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?
a) Insertion Sort
b) Quick Sort
c) Heap Sort
d) Merge Sort

Answer: d [Reason:] Both Merge sort and Insertion sort can be used for linked lists. The slow random-access performance of a linked list makes other algorithms (such as quicksort) perform poorly, and others (such as heapsort) completely impossible. Since worst case time complexity of Merge Sort is O(nLogn) and Insertion sort is O(n2), merge sort is preferred.

## Set 4

1. A linear collection of data elements where the linear node is given by means of pointer is called?
b) Node list
c) Primitive list
d) None of the mentioned

2. Consider an implementation of unsorted singly linked list. Suppose it has its representation with a head pointer only.
Given the representation, which of the following operation can be implemented in O(1) time?
i) Insertion at the front of the linked list
ii) Insertion at the end of the linked list
iii) Deletion of the front node of the linked list
iv) Deletion of the last node of the linked list
a) I and II
b) I and III
c) I, II and III
d) I, II and IV

3. In linked list each node contain minimum of two fields. One field is data field to store the data second field is?
a) Pointer to character
b) Pointer to integer
c) Pointer to node
d) Node

4. What would be the asymptotic time complexity to add a node at the end of singly linked list, if the pointer is initially pointing to the head of the list?
a) O(1)
b) O(n)
c) θ(n)
d) θ(1)

5. What would be the asymptotic time complexity to add an element in the linked list?
a) O(1)
b) O(n)
c) O(n2)
d) None of the mentioned

6. What would be the asymptotic time complexity to find an element in the linked list?
a) O(1)
b) O(n)
c) O(n2)
d) None of the mentioned

7. What would be the asymptotic time complexity to insert an element at the second position in the linked list?
a) O(1)
b) O(n)
c) O(n2)
d) None of the mentioned

8. The concatenation of two list can performed in O(1) time. Which of the following variation of linked list can be used?
d) Array implementation of list

9. Consider the following definition in c programming language

struct node
{
int data;
struct node * next;
}
typedef struct node NODE;
NODE *ptr;

Which of the following c code is used to create new node?
a) ptr = (NODE*)malloc(sizeof(NODE));
b) ptr = (NODE*)malloc(NODE);
c) ptr = (NODE*)malloc(sizeof(NODE*));
d) ptr = (NODE)malloc(sizeof(NODE));

Answer: a [Reason:] As it represents the right way to create a node.

## Set 5

1. The following function reverse() is supposed to reverse a singly linked list. There is one line missing at the end of the function.

struct node
{
int data;
struct node* next;
};

/* head_ref is a double pointer which points to head (or start) pointer
{
struct node* prev   = NULL;
struct node* next;
while (current != NULL)
{
next  = current->next;
current->next = prev;
prev = current;
current = next;
}
}

What should be added in place of “/*ADD A STATEMENT HERE*/”, so that the function correctly reverses a linked list.

Answer: a [Reason:] *head_ref = prev; At the end of while loop, the prev pointer points to the last node of original linked list. We need to change *head_ref so that the head pointer now starts pointing to the last node.

2. What is the output of following function for start pointing to first node of following linked list?

1->2->3->4->5->6
void fun(struct node* start)
{
if(start == NULL)
return;
printf("%d  ", start->data);
if(start->next != NULL )
fun(start->next->next);
printf("%d  ", start->data);
}

a) 1 4 6 6 4 1
b) 1 3 5 1 3 5
c) 1 2 3 5
d) 1 3 5 5 3 1

Answer: d [Reason:] fun() prints alternate nodes of the given Linked List, first from head to end, and then from end to head. If Linked List has even number of nodes, then skips the last node.

3. The following C function takes a simply-linked list as input argument.
It modifies the list by moving the last element to the front of the list and returns
the modified list. Some part of the code is left blank. Choose the correct alternative
to replace the blank line.

typedef struct node
{
int value;
struct node *next;
}Node;

{
Node *p, *q;
q = NULL; p = head;
while (p-> next !=NULL)
{
q = p;
p = p->next;
}
_______________________________
}

c) head = p; p->next = q; q->next = NULL;

4. The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list.
The function is called with the list containing the integers 1, 2, 3, 4, 5, 6, 7 in the given order. What will be the contents of the list after the function completes execution?

struct node
{
int value;
struct node *next;
};
void rearrange(struct node *list)
{
struct node *p, * q;
int temp;
if ((!list) || !list->next)
return;
p = list;
q = list->next;
while(q)
{
temp = p->value;
p->value = q->value;
q->value = temp;
p = q->next;
q = p?p->next:0;
}
}

a) 1, 2, 3, 4, 5, 6, 7
b) 2, 1, 4, 3, 6, 5, 7
c) 1, 3, 2, 5, 4, 7, 6
d) 2, 3, 4, 5, 6, 7, 1

Answer: b [Reason:] The function rearrange() exchanges data of every node with its next node. It starts exchanging data from the first node itself.

5. In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is
a) log 2 n
b) n2
c) log 2 n – 1
d) n

Answer: d [Reason:] In the worst case, the element to be searched has to be compared with all elements of linked list.

6. Given pointer to a node X in a singly linked list. Only one pointer is given, pointer to head node is not given, can we delete the node X from given linked list?
a) Possible if X is not last node
b) Possible if size of linked list is even
c) Possible if size of linked list is odd
d) Possible if X is not first node

Answer: a [Reason:] Following are simple steps.

struct node *temp  = X->next;
X->data  = temp->data;
X->next  = temp->next;
free(temp);

7. You are given pointers to first and last nodes of a singly linked list, which of the following operations are dependent on the length of the linked list?
a) Delete the first element
b) Insert a new element as a first element
c) Delete the last element of the list
d) Add a new element at the end of the list