Logo

C-and-c- Questions Set 11:

Quiz Mode

What punctuation must be used to end lines of C++ code?

1
2
3
4

Solution:

 The worst case complexity of quick sort is 

1
2
3
4

Solution:

 Identify the user-defined types from the following?

1
2
3
4

Solution:

Which of the following C++ standard library functors is a logical unary functor?

1
2
3
4

Solution:

  

#include<stdio.h> 

int main() 

int a[] = {1, 2, 3, 4, 5, 6}; 

int *ptr = (int*)(&a+1); 

printf("%d ", *(ptr-1) ); 

return 0; 

}

1
2
3
4

Solution:

 

#include <stdio.h>

#include <math.h>

int main ()

{

int param, result;

int n;

       param = 8.0;

       result = frexp (param , &n);

printf ("%d \n", param);

return 0;

}

1
2
3
4

Solution:

In which types of electronic devices are C programs used?

1
2
3
4

Solution:

Which of the following sorting algorithms in its typical implementation gives the best performance when applied on an  array which is sorted or almost sorted

1
2
3
4

Solution:

Choose the correct output of the following code.

#include<bits/stdc++.h> 

int main(){ 

  int a[5]={1,2,3,4,5}; 

  if(binary_search(a,a+5,6))

  cout<<"ABEKUS";

  else 

  cout<<"abekus";

  return 0;

}

1
2
3
4

Solution:

What is a virtual member?

1
2
3
4

Solution: