SNJB's KBJ COE, Chandwad Department of Computer Engineering
SNJB's KBJ COE, Chandwad Department of Computer Engineering
PART I: Structuring of Data- Built in and primitive types, Data aggregates and
type constructors, Cartesian product, Finite mapping User-defined types and
abstract data types, Type systems, Static versus dynamic program checking.
((MARKS)) 1
(1/2/3...)
((QUESTIO Which of the following data types are available in Java?
N)) (GATE CS 2000)
((OPTION_ Primitive Datatypes
A))
((MARKS)) 1
(1/2/3...)
((QUESTIO The format identifier ‘%i’ in C is also used for _____ data
N)) type?
((OPTION_ char
A))
1
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
((OPTION_ Int
B))
((OPTION_ Float
C))
((OPTION_ Double
D))
((CORRECT B
_CHOICE))
(A/B/C/D)
((EXPLANA Both %d and %i can be used as a format identifier for int
TION)) data type
(OPTIONAL
)
((MARKS)) 1
(1/2/3...)
((QUESTIO Which is correct with respect to size of the datatypes?
N))
((OPTION_ char > int > float
A))
((OPTION_ int > char > float
B))
((OPTION_ char < int < double
C))
((OPTION_ double > char > int
D))
((CORRECT C
_CHOICE))
(A/B/C/D)
((EXPLANA char has lesser bytes than int and int has lesser bytes than
TION)) double in any system
2
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
(OPTIONAL
)
((MARKS)) 1
(1/2/3...)
((QUESTIO Which of the following is data type stores longest
N)) _____________ floating point number.
((OPTION_ Float
A))
((OPTION_ Double
B))
((OPTION_ Boolean
C))
((OPTION_ Long
D))
((CORRECT B
_CHOICE))
(A/B/C/D)
((EXPLANA None
TION))
(OPTIONAL
)
((MARKS)) 1
(1/2/3...)
((QUESTIO ______________constructs the aggregates of similar type
N)) of elements
((OPTION_ Vector
A))
((OPTION_ Array
3
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
B))
((OPTION_ Struct
C))
((OPTION_ Union
D))
((CORRECT B
_CHOICE))
(A/B/C/D)
((EXPLANA None
TION))
(OPTIONAL
)
((MARKS)) 1
(1/2/3...)
((QUESTIO Types of Type constructor are :
N))
((OPTION_ Cartesian Product
A))
((OPTION_ PowerSet
B))
((OPTION_ Union
C))
((OPTION_ All of Above
D))
((CORRECT D
_CHOICE))
(A/B/C/D)
((EXPLANA None
TION))
(OPTIONAL
4
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
((MARKS)) 1
(1/2/3...)
((QUESTIO Pick the odd one out
N))
((OPTION_ array type
A))
((OPTION_ character type
B))
((OPTION_ boolean type
C))
((OPTION_ integer type
D))
((CORRECT A
_CHOICE))
(A/B/C/D)
((EXPLANA Array type is not the basic type and it is constructed using
TION)) the basic type.
(OPTIONAL
)
((MARKS)) 1
(1/2/3...)
((QUESTIO Identify the user-defined types from the following?
N))
((OPTION_ enumeration
A))
((OPTION_ classes
B))
5
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
((MARKS)) 1
(1/2/3...)
((QUESTIO When a language has the capability to produce new data
N)) type mean, it can be called as
((OPTION_ overloaded
A))
((OPTION_ extensible
B))
((OPTION_ encapsulated
C))
((OPTION_ reprehensible
D))
((CORRECT B
_CHOICE))
(A/B/C/D)
((EXPLANA Extensible is used to add new features to any language.
TION))
(OPTIONAL
)
6
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
((MARKS)) 1
(1/2/3...)
((QUESTIO Pick the odd one out.
N))
((OPTION_ integer, character, boolean, floating
A))
((OPTION_ enumeration, classes
B))
((OPTION_ integer, enum, void
C))
((OPTION_ arrays, pointer, classes
D))
((CORRECT C
_CHOICE))
(A/B/C/D)
((EXPLANA Option a consists of all fundamental types, option b
TION)) consists of user-defined types and option d consists of
(OPTIONAL derived types but option c is a mixture.
)
((MARKS)) 1
(1/2/3...)
((QUESTIO Type system majorly is associated with following:
N))
((OPTION_ Type
A))
((OPTION_ Data Object
B))
((OPTION_ Both and b
C))
((OPTION_ None
7
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
D))
((CORRECT C
_CHOICE))
(A/B/C/D)
((EXPLANA This is defined as the set of rules by the language to
TION)) structure and organize its collection of types
(OPTIONAL
)
((MARKS)) 1
(1/2/3...)
((QUESTIO To perform static type checking operation, the arguments,
N)) expressions, variables must be given a data type.
((OPTION_ True
A))
((OPTION_ False
B))
((OPTION_ Cannot Say
C))
((OPTION_ None
D))
((CORRECT A
_CHOICE))
(A/B/C/D)
((EXPLANA
TION))
(OPTIONAL
)
((MARKS)) 1
(1/2/3...)
8
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
((MARKS)) 1
(1/2/3...)
((QUESTIO The main purpose of a type system is to
N))
((OPTION_ Assign a property called type to various constructs
A))
((OPTION_ to reduce possibilities for bugs in computer programs by
B)) proper type checking
((OPTION_ Only A
C))
((OPTION_ Both A and B
D))
9
SNJB’s KBJ COE, Chandwad Department of Computer Engineering
((CORRECT D
_CHOICE))
(A/B/C/D)
((EXPLANA None
TION))
(OPTIONAL
)
10