You are on page 1of 3

Principle of programming language

1. Procedural programming and abstract data type processing are answer:( Programming
language paradigm)
Programming language paradigm
Programming language style
Software style
None of these
2. FORTRAN was defind as tool for solving answer: ( numeric scientific problems)
Numeric scientific problems
Business data processing
Array processing
String processing
3. ALGOL 60 was designed as tool for solving answer: ( numeric scientific problems)
Numeric scientific problems
Business data processing
Array processing
String processing
4.Syntax of a language is defined by two sets of rules as …….. and ….. answer:( lexical
rules,semantic rules)
lexical rules,semantic rules.
semantic rules,symbolic rules.
lexical rules,symbolic rules
lexical rules,semantic rules
5. what is BNF? answer: (Backus Naur Form)
boycee cod Normal Form
Backus Naur Form
Backlog Normal Form
Backward Normal Form
6.the Symobl “::=” stands for answer: (Both A and B)
Not Equal to
is defined as
Both A and B
None of these
7.Procedures and functions collectively called as answer: (Routines)
Programming Language
Programming Pardigum
Subroutines
Routines
8.Programming languge are used in the …. Phase answer: (Implementation
Software Design)
Implementation
Requirement analysis
Maintences
9.To perform dynamic type checking operation. The checking is done before program
execution answer:( False)
True
False
10.which of the following data types are available in JAVA? answer: (Both)
Primitive Datatypes
Reference Datatypes
Both
None of above
11.the ……… Syntax of programming language is defined by a context free grammar
answer: ( Concrete)
Abstract
Concrete
Both
None
12.what is the stored in the object obj in following lines of code answer: (NULL)
Box obj;
Memory address of allocated memory of object
NULL
any arbitrary pointer
Garbage
13. Which from the following is not a correct way to pass a pointer to functions? answer: (all
of the above)
Non constant pointer to non constant data
a non constant pointer to constant data
a constant pointer to non-constant data
all of the above
14.which member can never be accessed by inherited classes? answer: (Private member
function)
Private member function
Public member function
Protected member function
all can be accessed
15.which variable has the longest scope in the following C code? answer: (both a and b)
#include<stdio.h>
Int b;
Int main()
{
Int c;
Return 0;
}
Int a;
A
b
c
both a and b
16.the sequence of objects that have the same type,is called answer:(Array)
Function
Operators
Array
Stack
17.which from the following functions dose not extract the delimiter character from the input
stream? Answer: ( get())
get()
getline()
getchart()
All of them
18.the keyword ‘break’ cannot be simply used within answer: (.if-else)
do-while
if-else
for
while
19.which keyword is used to come out of a loop only for that iteration? Answer: (continue)
break
continue
return
none of the mentioned
20. How do define the user-defined exceptions? Answer: (Inherting & overriding exception
class functionality)
Inherting & overriding exception class functionlity
Overriding class functionlity
Inherting class functionlity
None of the above

You might also like