Insem PPL

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 28

Que No

1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

60

61
62
63
64
65
66

67

68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

99

100
101
102
103
104
Question
Which of the following is most oriented to scientific programming
Which of the following is an example of problem oriented language
Programming language 'FORTRAN' stands for
High level language is also called
The rules of a language are called its __________.
Syntax of a language is defined by two sets of rules as ___ and ___.
.____________ emphasizes the computation of values by the use of expressions

What is the only language that a computer understands directly?

What are the three main types of computer programming languages?


Programming language which is used for scientific purposes and work is to be done in b
Technique of using fixed words for machine code functions is classified as
Who invented C Language.?
Which of the following language is a declarative language?
Which was the first purely object oriented programming language developed?
Which Feature of OOP illustrated the code reusability?
what are the Sector Where Prolog Programming Language Is Used?
A rule-based system can be simply created by using?
These _______ are actually the assertions and should be anything relevant to the beginn
of the system.
___________consists of set of instruction
Which of the following is first generation computer
FORTRON is
Programming language 'BASIC' is used for the
Which of the following is not a data type?
Which one of the following is derived data type?
Which are the correct array initialization statements?
Which
In whichone
ofof the following
following is not a types
mechanisms, derived
of data type? and expressions are fixed at co
all variables
time.
In which of the following mechanisms, types of all Variables and expressions are not kn
until runtime.
Among the following, which one is a ternary operator?
Which of the following is not a compound assignment operator?
The default case is compulsory in the switch case statement.
The parameters used at the time of function call are called _________
An ________ parameter represents a value or address used in the subprogram call statem
Vars that are defined inside subprograms are called _____vars
Which of the following is not a basic data type in C language?
Values that are passed between program and it’s called subroutine are classified as
Variables that can be accessed by all modules in the program are called as
Which of the following is not the built in data types of Pascal?
Which is the subtypes of Pascal and Ada Data Types
Which is the subtypes of unstructured types of Pascal Data Types
Which is the subtypes of structured type of Pascal Data Types

Which is the subtypes of fundamental data type of C++


Which is the subtypes of derived data type of C++
Which of the following are structured dta types in Ada?

Which of the following subtypes of scalar data types of Ada


Which of the following are subtypes of discrete and real data types of Ada?
Identify the built-in data type__________________.
What will happen if null pointer is converted to boolean___________.
In which language ADT is not implemented by using class
What is the role model
A mathematical of compiler
with abycollection
templates?of operations defined on that model is
called__________.
illegal operation that manipluate the data object is called
When variable used in the program is a whole number,then variable is stored as _____
Class is _______.
which type of error occure in program
In intensional
Extensional mapping
mapping is range typeinvalues
a routine which are
the directly associated
range type withassociated
values are domain type valu
as data
aggregates
Explicit type conversion is known as_____.
What is strong type system?

When the type conversion is required?

A strict type system in which one operand type A is allowed to perform operation with
operand with type B.This feature of type system is called _____________.
The type system which gives gurantees of typr safety and not to generate type error is
subtype is nothing but subset of the values to which the type is associated with
Language that support subtypes must define
Which of the following is strict as applied to record type----------
choose the correct property of static type system_______

Type system is nothing but ___________

Using a template
Generic types derived from
A type system in which every object belongs to one and only one type
functions that work uniformly for an infinitenset of types, all of which have some comm
structure
_____the same function name can be used in different contexts to denote different fun
An operation that converts the types of function to the type expected by function
Use of interface in java is______
Which of the following is the operator notations
Which of the following is the type of operator depends on arity of operaror ?
which Conditional statement use in all language
How many types of standard exceptions are in C++
compound statement is nothing but_________

repeat ……….until is the iteration used in ___________


The statements that are executed repeatedly is _____________
throw statement can be replaced by_________
Procedure returns the value
side effects may be because
Two variables to be aliases if they share or denote same entity durin unit activation
Exception handling is for_______.
Exception occurs due to________.
The code of statements that can cause abnormal termination of the program should be w
__________.
Which keyword is used to check exception in the code?
Exception handler are declared with _____keyword.
Exception is thrown using the keyword________.

7 Choose the current statement _________.


which of the following is used to replace throw statement?
what will happen if thrown exception is not handled in c++?
What will happen when a program throws any other type ofexception other than specifie
______activity is typically written within the try block
Which is the valid catch statement?

What happens if several handlers match the type of the thrown object?
Choose the correct statement_________.I. The catch must be placed immediately after t
T.II. There must be only one catch handler for every try block.III. There can be multiple
handlers for a try block T.IV. It can have multiple parameters.
What will happen when we move try block far away from catch block?
In C++ which operator is used in catch-all handler?
How many parameters does the throw expression can have?
Most of the programming language support following type of routine______.
Pascal supports following type of routine________.
Option A
FORTRAN
BASIC
formula translator
Problem oriented language
Structure
Lexical rules, semantic rules
Procedural programming

English, as spoken in Boston, Mass.


machine language, assembly language, high
level language
PASCAL
mnemonics
Charles Babbage
Algol
Java
Polymorphism
Automated reasoning
assertions

 set of facts
Software
EDSAC
File Translation
beginners
Symbolic Data
Integer
int A[3]={1,2,3};
Integer
Dynamic Binding/ late binding

Dynamic Binding/ late binding


+
/=
true
Formal parameters
actual
Local
float
parameter.
Local variables
Integer
Unstucture
Built –in
Cartesian Product(Record, Variant record
and discriminated union
Integral
Array
Cartesian Product(Record, Variant record
and discriminated union
Discrete
Enumeration (Char,Boolean other enum)
struct
The boolean value is evaluated to true
C++
Probability
Data Structure
type system
String data type
template which associates code and data
language error
1
1
conversion
The type system in which only built-in data
types are allowed.
The value to be stored is in the form not
supported by data type
Type Compatibility

strong type system


1
a way to define subset of a given type
name equivalence
only built in dta types are allowed

collection of rules to be followed to defined


and manipulate program data
the function is written only once and it will
be used for different types
Primitive data types
Monomorphic
universal polymorphism
overloading
Inclusion
To define members and methods that are
not defined
Infix
Unary
if
2
group of statement that is treated as single
statement
Ada
iteration
break
1
Non-local
1
Handling runtime error
Operating system problem

try block
throw
try
throw

Function can throw any type of exception


break
It will call terminate function
Program will crash
constant reference
catch() {//function body}
All handlers will be executed and the
messages will be displayed

Only I
Reduces the amount of code in cache
ellipses operator
1
function
only procedure
Option B
COBOL
PL/1
formula translation
Business oriented language
Code
Semantic rules, symbolic rules
Functional  programming
BASIC, the Beginners' All-purpose
Symbolic Instruction Code
imperative language, functional language,
declarative language
FORTRAN
mechanics
Grahambel
Java
C++
 Abstraction
Machine learning
 rules

 set of rules
Hardware
IBM-1401
Format Translation
commercial programs
Alphanumeric Data
Union
int A[3]={123};
Structure
Weak Typing

Weak Typing
:
 +=
 False
Actual parameters
formal
Global
Int
argument.
Internal variables
Real
Pointers
enumeration
Array (finite mapping)

floating
Class
Array(Finite mapping,Sequence(string))

Real
Integer (Signed integer, Modular integer)
class
The boolean value is evaluated to false
Java
type-safe
Abstract Data Type
type error
integer data type
Data abstraction
Applicaton error
0
0
casting
The type system in which only user
defined data types are allowed.
The value supported is beyond the max
limit
Type equivalence

Weak type system


0
Compatibility rules between a subset
and its supertype
sructural equivalence
all variables are cleared with associated
type

collection of various primitive data types

it will take long time to execute


Built-in Data types
Polymorphic
Ad-hoc
coercion
Prametric
To define members and methods that
are defined
Postfix
Binary
case
5
group of statement
Pascal
Function
return
0
Parameter passinn by reference
0
Handling syntax error
Hardware Problem
catch block
try
catch
throws
A function can throw exception of some
specific type
return
The compiler will crash
arise an error
static memory allocation
catch(….){//function body}

program will crash

All of these
Increases the amount of code in cache
ternary operator
2
procedure
Only functions
Option C
BASIC
FORTRAN
free translator
Mathematically oriented language
Syntax
Lexical rules, symbolic rules
Abstract data type programming

machine language, different for every type of CPU

COBOL, Fortran-77, C++


LOGO
compiler
Dennis Ritchie
C++
SmallTalk
Encapsulation
Robot planning
set of assertions

termination criterion
Program
CDC-1604
Formula Translation
household user interface
Numeric Data
Character
int A[3]=”123”;
Character
Strong Typing

Strong Typing
-
%=
None of these
Real parameters
compex
Both A & B
real
global values.
External variables
Char
Structure
Subrange
Set (power set)

Both A and B
Structure and Function
Tagged

Both A and B
Floating point
int
errror is raised
VB
code elimination
Built in Data Type
type safety
Negative whole number
implementation of abstract data type
all of these

separation
A type system that guarantees not to generate type errors.

To reduce the memory in use associated with that value

Type conformance

strong type language

both 1 and 2
subtype agreement
for all operation the type of operands as well as type of result is
clearly mentioned

collection of various user defined data types

duplicate code get increased


Abstract data types

coercion
call to define members and methods of class

Prefix
n-ary
Both 1 and 2
6
group of statement that executed over and over again

C++
routine
exit

function

Handling logical error


Syntax error

catch all block


catch
finally
thrown

Function can never throw an exception


exit
The program will go in continues loop
Program will still execute
dynamic memory allocation
catch(class_name){//function body}
The first matching exception handler after the try block is executed

I and II
Don’t alter anything
string operator
3
both a and b
Both procedure and functions
Option D
PL/1
All of above
free translation.
All of the above
Rigidity
Lexical rules, syntactic rules
Module based programming

None of above

None of above
COMAL
translator
Steve Jobs
Prolog
Kotlin
 Inheritance
all of the above
All of the above

None of the above


None of the above
ICL-2900
Floppy Translation
student applications
Alphabetic Data
Boolean
All
Both A and C
Static Binding/ early binding

Static Binding/ early binding


?:
==
Both A and B
Complex parameters
none of this
None of this
char
both a and b.
Global variables
Float
all of these
all of these
all of these

all of these

all of these

all of these
enum
None of these
Ada
Allof These
None of These
all of these
Positive whole number
object oriented
Syntax Error

None of These
None of These

All of these

All of these

weak type language

assignment compability
all of these

none of these

None of These
None of These

To define members and methods that are defined


All of these
All of these

c
loops
None of these

aliasing

all of these
runtime error
finally bock

exception
none of these
throwing

None of these
none of these
None of these
none of these
None of these
none of these

none of these

I and III
None of the mentioned
unary operator

none of thes
Neither procedure nor function is allowed in Pascal
Answer weightage Unit
A 1 Unit1
D 1 Unit1
A 1 Unit1
D 1 Unit1
C 1 Unit1
D 1 Unit1
B 1 Unit1

C 1 Unit1

A 1 Unit1
A 1 Unit1
A Unit1
C 1 Unit1
D 1 Unit1
C 1 Unit1
D 1 Unit1
D 1 Unit1
C 1 Unit1
1
A Unit1
C 1 Unit1
A 1 Unit1
C 1 Unit1
A 1 Unit1
A 1 Unit1
B 1 Unit1
A 1 Unit1
D 1 Unit1
D 1 Unit1
A
1 Unit1
D 1 Unit1
D 1 Unit1
B 1 Unit1
B 1 Unit1
A 1 Unit1
A 1 Unit1
C 1 Unit1
D 1 Unit2
D 1 Unit2
D 1 Unit2
D 1 Unit2
D 1 Unit2
D 1
Unit2
C 1 Unit2
D 1 Unit2
D
1 Unit2
C 1 Unit2
D 1 Unit2
C 1 Unit2
B 1 Unit2
D 1 Unit2
B 1 Unit2
B 1 Unit2
B 1 Unit2
B 1 Unit2
D 1 Unit2
C 1 Unit2
A 1 Unit2
A 1 Unit2
B 1 Unit2
C
1 Unit2
D 1
Unit2

D
1 Unit2
A 1 Unit2
A 1 Unit2
C
1 Unit2
A 1 Unit2
D
1 Unit2
A 1
Unit2

A 1
Unit2
C 1 Unit2
A 1 Unit2
A
1 Unit2
A 1 Unit2
C 1 Unit2
A 1
Unit2
D 1 Unit2
D 1 Unit2
A 1 Unit2
B 1 Unit2
A 1
Unit2
B 1 Unit2
C 1 Unit2
B 1 Unit2
A 1 Unit2
5 1 Unit2
A 1 Unit2
A 1 Unit2
D 1 Unit2
A
1 Unit2
C 1 Unit2
B 1 Unit2
A 1 Unit2
B
1 Unit2
B 1 Unit2
A 1 Unit2
B 1 Unit2
C 1 Unit2
B 1 Unit2
C
1 Unit2

D
1 Unit2
A 1 Unit2
A 1 Unit2
A 1 Unit2
C 1 Unit2
C 1 Unit2

You might also like