Home / Engineering / Principles of Programming Languages MCQs / Page 1

Principles of Programming Languages MCQs | Page - 1

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

Mr. Dubey • 51.43K Points
Coach

Q. 1) In C, reference is declared using the symbol

(A) *
(B) &
(C) &&
(D) !
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 2) The default parameter passing method used in C++ is ____________.

(A) call by reference
(B) call by value
(C) call by name
(D) none of these
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 3) The difference between memory and storage is that memory is __________________ and storage is __________.

(A) temporary, permanent
(B) permanent,temporary
(C) slow,fast
(D) all of above
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 4) What is relationship between reliability and failure?

(A) direct relation
(B) inverse relation
(C) no relation
(D) varying relationdepending upon the situation
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 5) Language efficiency can be achieved by ___________.

(A) maximum speed
(B) less memory consumption
(C) reusability
(D) all of these
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 6) Programming language FOTRAN stands for:

(A) free translator
(B) formula translator
(C) formula translation
(D) free translation
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 7) The full form of BNF is_____________.

(A) beginning normal form
(B) backus naur form
(C) best normal form
(D) none of these
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 8) Semantic of a program means-

(A) format of a program
(B) meaning of a program
(C) simply content of a program
(D) none of these
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 9) What is the output of the following code?
Int main(void)
{
char name = 'P';
'P' = 10;
return 0;
}

(A) name will contain value 10
(B) p will contain 10
(C) syntax error
(D) none of these
View Answer Discuss Share

M

Mr. Dubey • 51.43K Points
Coach

Q. 10) Which of the following represents correct syntax for function declaration?

(A) int sum(int,int);
(B) int sum(int,int){}
(C) int sum;
(D) both a and c
View Answer Discuss Share