var myQuestions = [
{
"question": "Which of the following operations is not supported by C?",
"answers": {
"A": "float division",
"B": "float multiplication",
"C": "float addition",
"D": "float power"
},
"correctAnswer": "D"
},
{
"question": "Given `int a = 3 + 21;` at which time the addition computing will be done?",
"answers": {
"A": "Compiling time",
"B": "Execution time"
},
"correctAnswer": "A"
},
{
"question": "Given `int a = 3; int b = 21; int c = a+b;` the computation of a+b will be done at which time?",
"answers": {
"A": "Compiling time",
"B": "Execution time"
},
"correctAnswer": "B"
},
{
"question": "Given: `int a = 3.5 + 2.5;` the value of a will be",
"answers": {
"A": "4",
"B": "5",
"C": "6"
},
"correctAnswer": "C"
},
{
"question": "Given: `int a = 3.3 + 2.5;` the value of a will be",
"answers": {
"A": "4",
"B": "5",
"C": "6",
"D": "5.8"
},
"correctAnswer": "B"
},
{
"question": "Which of the following can lead to a wrong result of multiplication of two int type values?",
"answers": {
,"A": "underflow",
"B": "overflow",
"C": "casting",
"D": "all of these"
},
"correctAnswer": "B"
},
{
"question": "Given `int a = 3 || 2;` what is the value of a?",
"answers": {
"A": "1",
"B": "2",
"C": "3",
"D": "5"
},
"correctAnswer": "A"
},
{
"question": "Given `int a = 3 | 2;` what is the value of a?",
"answers": {
"A": "1",
"B": "2",
"C": "3",
"D": "5"
},
"correctAnswer": "C"
},
{
"question": "Given `int a = 3 ^ 2;` what is the value of a?",
"answers": {
"A": "9",
"B": "3",
"C": "2",
"D": "1"
},
"correctAnswer": "D"
},
{
"question": "Given `int a = 3 << 2;` what is the value of a?",
"answers": {
"A": "3",
"B": "6",
"C": "12",
"D": "24"
},
"correctAnswer": "C"
},
{
"question": "Given `int a = 3, b=++a;` what is the value of b?",
, "answers": {
"A": "3",
"B": "4",
"C": "2",
"D": "1"
},
"correctAnswer": "B"
},
{
"question": "Which of the following pair of statements is not equivalent?",
"answers": {
"A": "b = a++; <=> b = a; a=a+1;",
"B": "b = a++; <=> b = a+1;",
"C": "b = ++a; <=> a=a+1; b = a;",
"D": "b = ++a; <=> b = a+1; a=a+1;"
},
"correctAnswer": "B"
}
];
var myQuestions = [
{
"question": "The main function in a program defines the starting point of flow control.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},
{
"question": "Calling a function will transfer the flow control to the function block.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},
{
"question": "Passing by value will make a copy of the value to the function call stack.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},
{
"question": "Passing by reference will make a copy of the address of a variable to function call stack.",
"answers": {
"A": "True",
{
"question": "Which of the following operations is not supported by C?",
"answers": {
"A": "float division",
"B": "float multiplication",
"C": "float addition",
"D": "float power"
},
"correctAnswer": "D"
},
{
"question": "Given `int a = 3 + 21;` at which time the addition computing will be done?",
"answers": {
"A": "Compiling time",
"B": "Execution time"
},
"correctAnswer": "A"
},
{
"question": "Given `int a = 3; int b = 21; int c = a+b;` the computation of a+b will be done at which time?",
"answers": {
"A": "Compiling time",
"B": "Execution time"
},
"correctAnswer": "B"
},
{
"question": "Given: `int a = 3.5 + 2.5;` the value of a will be",
"answers": {
"A": "4",
"B": "5",
"C": "6"
},
"correctAnswer": "C"
},
{
"question": "Given: `int a = 3.3 + 2.5;` the value of a will be",
"answers": {
"A": "4",
"B": "5",
"C": "6",
"D": "5.8"
},
"correctAnswer": "B"
},
{
"question": "Which of the following can lead to a wrong result of multiplication of two int type values?",
"answers": {
,"A": "underflow",
"B": "overflow",
"C": "casting",
"D": "all of these"
},
"correctAnswer": "B"
},
{
"question": "Given `int a = 3 || 2;` what is the value of a?",
"answers": {
"A": "1",
"B": "2",
"C": "3",
"D": "5"
},
"correctAnswer": "A"
},
{
"question": "Given `int a = 3 | 2;` what is the value of a?",
"answers": {
"A": "1",
"B": "2",
"C": "3",
"D": "5"
},
"correctAnswer": "C"
},
{
"question": "Given `int a = 3 ^ 2;` what is the value of a?",
"answers": {
"A": "9",
"B": "3",
"C": "2",
"D": "1"
},
"correctAnswer": "D"
},
{
"question": "Given `int a = 3 << 2;` what is the value of a?",
"answers": {
"A": "3",
"B": "6",
"C": "12",
"D": "24"
},
"correctAnswer": "C"
},
{
"question": "Given `int a = 3, b=++a;` what is the value of b?",
, "answers": {
"A": "3",
"B": "4",
"C": "2",
"D": "1"
},
"correctAnswer": "B"
},
{
"question": "Which of the following pair of statements is not equivalent?",
"answers": {
"A": "b = a++; <=> b = a; a=a+1;",
"B": "b = a++; <=> b = a+1;",
"C": "b = ++a; <=> a=a+1; b = a;",
"D": "b = ++a; <=> b = a+1; a=a+1;"
},
"correctAnswer": "B"
}
];
var myQuestions = [
{
"question": "The main function in a program defines the starting point of flow control.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},
{
"question": "Calling a function will transfer the flow control to the function block.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},
{
"question": "Passing by value will make a copy of the value to the function call stack.",
"answers": {
"A": "True",
"B": "False"
},
"correctAnswer": "A"
},
{
"question": "Passing by reference will make a copy of the address of a variable to function call stack.",
"answers": {
"A": "True",