Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following statement is used to copy data from one table and insert into another ?(A) SELECT AND INSERT INTO(B) INSERT INTO AND SELECT(C) SELECT FROM AND INSERT INTO(D) INSERT INTO SELECT

Answer»
2.

What will be the output of the below C program:int calc(int i){while(++i > 10); // statement 0i++;return i;}int main() {int i = 2;printf("%d", calc(i));return 0;}Also, if we replace pre-increment operator by post-increment operator in statement 0, then what will be the output of the new program?(A) 11 and 12(B) 12 and 11(C) 4 and 5(D) 4 and 4

Answer»
3.

Consider the following page reference string:4, 3, 2, 1, 2, 1, 5, 6, 1, 2, 7, 6, 3, 1, 4, 2Which of the following options, gives the correct number of page faults related to LRU page replacement algorithms with 04 page frame and if there is an increment in page frame i.e. 05 page frame then what will be the correct number of page faults, assuming all frames are initially empty?(A) 10 and 10(B) 11 and 10(C) 10 and 11(D) 11 and 11

Answer»
4.

Select the statements that are true about default and copy constructors in C++:Compiler doesn’t create a default constructor if the user writes any constructor except the copy constructor.Compiler creates a copy constructor if the user doesn’t write its own copy constructor.Compiler doesn’t create a default constructor if the user writes any constructor even if it is copy constructor.(A) 1 and 2(B) Only 3(C) Only 2(D) 2 and 3

Answer»
5.

How does DHCP server dynamically assigns IP address to requesting host?(A) Dynamically, IP address is leased to requesting host for finite lease duration by DHCP server.(B) Dynamically IP address is leased to requesting host for an Infinite lease duration by DHCP server.(C) Dynamically, Static IP address is leased to requesting host for a finite lease duration by DHCP server.(D) Statically, dynamic IP address is leased to requesting host for an Infinite lease duration by DHCP server.

Answer»
6.

What is the probability of getting a Saturday in a Week?(A) 1(B) 1/7(C) 1/2(D) 2/7(E) 0

Answer»
7.

What will be the remainder when 7100 is divided by 5?(A) 0(B) 1(C) 2(D) 3

Answer»
8.

A C++ class can contain a member of SELF type if the member is.StaticPointerNon-static(A) Only 3(B) Both 2 and 3(C) Both 1 and 2(D) Only 1

Answer»
9.

In an experiment, one red dice and one black dice(both are fair) are rolled. What is the probability that,The number on black dice will divide the number on red dice.Number on black dice is multiple of the number on red dice.(A) 22 / 36 and 14 / 36 respectively(B) 12 / 36 and 18 / 36 respectively(C) 14 / 36 and 14 /36 respectively(D) 6 / 36 and 8 / 36 respectively

Answer»
10.

What will be the output of the below C++ program?#include<iostream>using namespace std;int main(){int a[] = {10,20,30,40,50};cout<<(*(&a+1)-a);return 0;}(A) 10(B) 0x7ffc7185f754(C) 50(D) 5

Answer»