12.
What will be the output of the following C++ code?
#include <iostream>  
#include <algorithm> 
#include <vector> 
 
using namespace std;
 
int main () 
{
  vector<int> v = {4,2,10,5,1,8};
  if (binary_search(v.begin(), v.end(), 4))
    cout << "found.\n"; 
  else 
  	cout << "not found.\n";
  return 0;
}

15.
What is the syntax of defining lambda expression?

16.
What happens when both of the following C++ programs are compiled and executed?
===== Program 1 =====
#include <iostream>
#include <array>
 
using namespace std;
 
int main()
{
	array<int,5> arr1;
	arr1.fill(5);
	cout<<get<5>(arr1);
	return 0;
}
=====================
===== Program 2 =====
#include <iostream>
#include <array>
 
using namespace std;
 
int main()
{
	array<int,5> arr1;
	arr1.fill(5);
	cout<<arr1.at(5);
	return 0;
}
=====================

17.
What will be the output of the following C++ code?
#include <stdio.h>
#include <ctype.h>
int main ()
{
    int i;
    char str[] = "jobs...";
    i = 0;
    while ( isalnum(str[i] )) 
        i++;
    printf (" %d\n",i);
    return 0;
}

18.
What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
	cout<<rank<int[10]>::value;
	cout<<rank<char[10][10]>::value;
	cout<<rank<string[10][10][10]>::value;
	return 0;
}