Explore topic-wise MCQs in Calsoft.

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

1.

Insert into instructor values (10211, 'Smith', 'Biology', 66000); What type of statement is this?

A. Query
B. DML
C. Relational
D. DDL
Answer» C. Relational
2.

To remove a relation from an SQL database, we use the ______ command.

A. Delete
B. Purge
C. Remove
D. Drop table
Answer» E.
3.

If there is more than one key for relation schema in DBMS then each key in relation schema is classified as

A. Prime key
B. Super key
C. Candidate key
D. Primary key
Answer» D. Primary key
4.

The primary key is selected from the:

A. composite keys
B. determinants
C. foreign keys
D. candidate keys
Answer» E.
5.

In SQL, __________ is an Aggregate function.

A. SELECT
B. CREATE
C. AVG
D. MODIFY
Answer» D. MODIFY
6.

Drop table structure is

A. DML Statement
B. DDL Statement
C. Query Statement
D. None of the above
Answer» C. Query Statement
7.

MVD is called as

A. Many Value Dependency
B. More Value Dependency
C. Multi Value Dependency
D. All of the Above
Answer» D. All of the Above
8.

The value of Primary key

A. can be duplicated
B. can be null
C. cannot be null
D. none of these
Answer» D. none of these
9.

If property of class is declare using var then PHP5 will treat the property as?

A. Protected
B. Private
C. Public
D. Final
Answer» D. Final
10.

Which keyword cannot be used while defining property?

A. Public
B. Static
C. Final
D. Private
Answer» D. Private
11.

If class implementing the interface does not use exact same method signatures as are defined in the interface. Will show

A. No Error
B. Fatal Error
C. Warning Error
D. Notice Error
Answer» C. Warning Error
12.

What is input sanitization?

A. Secure user input
B. Converting input into a format that PHP supports
C. Removing or cleaning potentially malicious user input.
D. All of the above
Answer» D. All of the above
13.

What function split an array into chunks?

A. array_chunk()
B. array_split()
C. array_split_chunk
D. array_chunks()
Answer» B. array_split()
14.

What function creates a cookie?

A. create_cookie()
B. set_cookie()
C. setcookie()
D. None of the above
Answer» D. None of the above
15.

Which of the following data structure is linear type?

A. Strings
B. Queue
C. Lists
D. All of the above
Answer» E.
16.

The statement printf("%c", 100); will print?

A. prints 100
B. print garbage
C. prints ASCII equivalent of 100
D. None of the above
Answer» D. None of the above
17.

The "C" language is

A. Context free language
B. Context sensitive language
C. Regular language
D. None of the above
Answer» B. Context sensitive language
18.

The worst case time complexity of AVL tree is better in comparison to binary search tree for

A. Search and Insert Operations
B. Search and Delete Operations
C. Insert and Delete Operations
D. Search, Insert and Delete Operations
Answer» E.
19.

In which tree, for every node the height of its left subtree and right subtree differ almost by one?

A. Binary search tree
B. AVL tree
C. Threaded Binary Tree
D. Complete Binary Tree
Answer» C. Threaded Binary Tree
20.

Which of the following sorting algorithms does NOT have a worst-case running time of O(n2)?

A. Insertion sort
B. Merge sort
C. Quicksort
D. Bubble sort
Answer» C. Quicksort
21.

Which data structure type is NOT linear from the following?

A. Doubly Link List
B. 2D Array
C. Binary Search Tree
D. Queue
Answer» D. Queue
22.

What is the purpose of getc()?

A. read a character from STDIN
B. read a character from a file
C. read all file
D. read file randomly
Answer» C. read all file
23.

Which of the following is not an iterative statement?

A. while
B. do while
C. switch
D. for
Answer» D. for
24.

Which is an invalid name of identifier?

A. world
B. addition23
C. test-name
D. factorial
Answer» D. factorial
25.

Which of these assignments is invalid?

A. short s = 48;
B. float f = 4.3;
C. double d = 4.3;
D. int I = `1`;
Answer» E.
26.

The do...while looping statement

A. is executed only once if the condition is true.
B. is also known as entry-controlled loop.
C. is executed at least once if the condition is false.
D. is unconditional looping statement.
Answer» D. is unconditional looping statement.
27.

 The value of j at the end of the execution of the following C program. int incr (int i)  {  static int count = 0;  count = count + i;  return (count);  }  main ()  {  int i,j;  for (i = 0; i <=4; i++)      j = incr(i);  }   

A. 10
B. 4
C. 6
D. 7
Answer» B. 4
28.

Consider the following three C functions : [PI] int * g (void)  {  int x = 10;  return (&x);  }  [P2] int * g (void)  {  int * px;  *px = 10;  return px;  }  [P3] int *g (void)  {  int *px;  px = (int *) malloc (sizeof(int));  *px = 10;  return px;  }   

A. Only P3
B. Only P1 and P3
C. Only P1 and P2
D. P1, P2 and P3
Answer» D. P1, P2 and P3
29.

What is the output of following program? #include <iostream>  using namespace std;  int max(int& x, int& y, int& z)  {      if (x > y && y > z) {          y++;          z++;          return x++;      } else {          if (y > x)              return y++;          else             return z++;      }  }  int main()  {      int A, B;      int a = 10, b = 13, c = 8;      A = max(a, b, c);      cout << a++ << " " << b-- << " " << ++c << endl;      B = max(a, b, c);      cout << ++A << " " << --B << " " << c++ << endl;      return 0;  }   

A. 10 14 8 or 14 13 8
B. 10 13 8 or 11 14 9
C. 10 14 9 or 14 12 9
D. 11 12 8 or 13 14 8
Answer» D. 11 12 8 or 13 14 8
30.

What is the output of following program? #include <iostream>  using namespace std;  #include <iostream>  using namespace std;  int main()  {      int i, x[5], y, z[5];      for (i = 0; i < 5; i++) {          x[i] = i;          z[i] = i + 3;          y = z[i];          x[i] = y++;      }      for (i = 0; i < 5; i++)          cout << x[i] << " ";      return 0;  }   

A. 3 4 5 6 7
B. 4 5 6 7 8
C. 2 3 4 5 6
D. none of above
Answer» B. 4 5 6 7 8
31.

What is the output of following program? #include <iostream>  using namespace std;  int main()  {      char m;      switch (m) {      case 'c':          cout << "Computer Science";      case 'm':          cout << "Mathematics";          break;      case 'a':          cout << "Accoutant";          break;      default:          cout << "wrong choice";      }      return 0;  }   

A. Computer Science, Mathematics
B. Mathematics
C. wrong choice
D. error
Answer» D. error
32.

What is the output of following program? #include <iostream>  using namespace std;  int main()  {      int i, j, k;      int sum[2][4];      for (i = 0; i < 2; i++) {          for (j = 0; j < 3; j++)              sum[i][j];      }      cout << sum[i][j];      return 0;  }   

A. 3 3
B. 2 0
C. garbage value
D. 2 3
Answer» D. 2 3
33.

Which one of the following computer network is built on the top of another network?

A. prior network
B. chief network
C. prime network
D. overlay network
Answer» E.
34.

Who is the father of PHP?

A. Rasmus Lerdorf
B. Willam Makepiece
C. Drek Kolkevi
D. List Barely
Answer» B. Willam Makepiece
35.

An expression involving byte, int, and literal numbers is promoted to which of these?

A. int
B. long
C. byte
D. float
Answer» B. long
36.

wtmp and utmp files contain:

A. Temporary system data
B. User login-logout log
C. The user’s command execution log
D. The user’s su and sudo attempts
Answer» C. The user’s command execution log
37.

Which of the following is “NOT” a UNIX variant ?

A. Solaris
B. AIX
C. IRIX
D. AS400
Answer» E.
38.

If #include is used with file name in angular brackets.

A. The file is searched for in the standard compiler include paths
B. The search path is expanded to include the current source directory
C. Both a & b
D. None of the mentioned
Answer» B. The search path is expanded to include the current source directory
39.

#include is called

A. Preprocessor directive
B. Inclusion directive
C. File inclusion directive
D. None of the mentioned
Answer» B. Inclusion directive
40.

which of the following is used to implement the c++ interfaces?

A. absolute variables
B. abstract classes
C. constant variables
D. none of the mentioned
Answer» C. constant variables
41.

How many kinds of classes are there in c++?

A. 1
B. 2
C. 3
D. 4
Answer» D. 4
42.

How many specifiers are present in access specifiers in class?

A. 1
B. 2
C. 3
D. 4
Answer» D. 4
43.

What is the output of this program? #include < stdio.h > using namespace std; int main() { char str[5] = "ABC"; cout << str[3]; cout << str; return 0; }

A. ABC
B. ABCD
C. AB
D. None of the mentioned
Answer» B. ABCD
44.

What is a array?

A. An array is a series of elements of the same type in contiguous memory locations
B. An array is a series of element
C. An array is a series of elements of the same type placed in non-contiguous memory locations
D. None of the mentioned
Answer» B. An array is a series of element
45.

Which of the following data structure is used to convert infix notations to postfix notations ?

A. Branch
B. Queue
C. Tree
D. Stack
Answer» E.
46.

When is a copy constructor invoked?

A. A function returns by value
B. A function returns by reference
C. An argument is passed by reference
D. None of these
Answer» B. A function returns by reference
47.

What is the significance of & symbol?

A. Process the commands in order one after the otherqq
B. Process these commands first
C. Process these commands last
D. The second command fails if the first command fails
Answer» B. Process these commands first
48.

What command combines the content of one file with another?

A. ADD
B. CONCAT
C. APPEND
D. RESTORE
Answer» D. RESTORE
49.

Which of the following information is not provided by data dictionary?

A. Data location
B. Size of the disk storage device
C. The owner of the data
D. Security limitations
Answer» C. The owner of the data
50.

Which of the following is a type of DBMS software?

A. Utilities
B. query Language
C. Report writer
D. All of these
Answer» E.