Principles of Programming Languages MCQs | Page - 2
Dear candidates you will find MCQ questions of Principles of Programming Languages here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
M
Q. During execution of a program the compiler demands for block of memory to operating system.This block is called as _____________.
M
Q. What is relationship between reliability and failure?
M
Q. #include <stdio.h>
#define count 10;
void main()
{
printf("%d", count);
}
M
Q. When variable used in the program is a whole number,then variable is stored as ___________.
M
Q. What will be the output of following code? #include <iostream> using namespace std;
int main()
{
enum color
{
blue, orange, green
};
enum fruit
{
apple, guava, orange
};
int i = 0;
for (i = blue; i <= green; i++)
printf("%d", i);
return 0;
}
M
Q. What is the output of following code?
#include <iostream>
using namespace std;
int main()
{
int I;
enum test
{
a = 1, b, c, d, e, f, g, h
};
for (i = c; i <= g; i++) cout << " " << I;
return 0;
}
M
Q. Which size should be used when double precision is required?
M
Q. #include <iostream>
using namespace std;
int main()
{
float a = 22.22;
double b = 22.22;
if (a == b) cout << "Matching";
else cout << "Not Matching";
return 0;
}
M
Q. Explicit type conversion is known as_____.
Jump to