Q121
Open questionSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
138
Questions
7/7
Page
Pick an option on a question to see the right answer and solution.
Q121
Open questionSelect an option to see the answer and solution.
Q122
Open question#include<stdio.h>
int main(int argc, char const *argv[])
{
char a = 'a';
printf("%d\n", (int)sizeof(a));
return 0;
}Select an option to see the answer and solution.
Q123
Open questionSelect an option to see the answer and solution.
Q124
Open questionSelect an option to see the answer and solution.
Q125
Open question#include<iostream>
using namespace std;
int main ()
{
int cin;
cin >> cin;
cout << "cin: " << cin;
return 0;
}Select an option to see the answer and solution.
Q126
Open questionint *p = malloc(10);Select an option to see the answer and solution.
Q127
Open questionSelect an option to see the answer and solution.
Q128
Open questionSelect an option to see the answer and solution.
Q129
Open questionSelect an option to see the answer and solution.
Q130
Open questionSelect an option to see the answer and solution.
Q131
Open questionSelect an option to see the answer and solution.
Q132
Open questionSelect an option to see the answer and solution.
Q133
Open question#include<stdio.h>
struct STRUCT
{
int a;
int func()
{
printf("HELLO THIS IS STRUCTURE\n");
}
};
int main()
{
struct STRUCT s;
s.func();
return 0;
}Select an option to see the answer and solution.
Q134
Open question#include<stdio.h>
struct STRUCT
{
private:
int a;
};
int main()
{
printf("%d\n", (int)sizeof(struct STRUCT));
return 0;
}Select an option to see the answer and solution.
Q135
Open question#include <stdio.h>
int main(void)
{
const int j = 20;
int *ptr = &j;
printf("*ptr: %d\n", *ptr);
return 0;
}Select an option to see the answer and solution.
Q136
Open question================code 1=================
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
cout<<"Hello World";
return 0;
}
========================================
================code 2=================
#include <iostream>
int main(int argc, char const *argv[])
{
std::cout<<"Hello World";
return 0;
}
========================================Select an option to see the answer and solution.
Q137
Open question#include <stdio.h>
int main()
{
const int x;
x = 10;
printf("%d", x);
return 0;
}Select an option to see the answer and solution.
Q138
Open questionfor(I;II;III)
{IV}Select an option to see the answer and solution.