Unit - 1
Unit - 1
Which of the following is the functionality of ‘Data Abstraction’? Reduce Complexity Binds together code a Parallelis None of the mentioned A
1
2 Type of program which can be run on different types of computer by making little changes portable program fixed program Any prog compiled program A
3 ……..language good for symbolic computing FORTRAN Pascal Cobol LISP D
The von Neumann model used in ……… Traditional sequential c None of t A
4 Traditional parallel com Both a and b
5 Which of the following language is a declarative language? Algol Java C++ Prolog D
What are the benefits of procedural programming language. Simplicity Code reusability. strongly mall of the above D
6
7 ...................is a way to compartmentalize and reuse code by creating collections of attribu Inheritance encapsulation abstractioscoping A
8 Which of the following is most oriented to scientific programming FORTRAN COBOL BASIC PL/1 A
9 Which of the following is an example of problem oriented language BASIC PL/1 FORTRA All of above D
10 Programming language 'FORTRAN' stands for formula translator. formula translation. free tran free translation. A
11 Which of the following is machine independence program? High level language Low level language Assembly Machine language A
12 Which of the following is called low level languages? Machine language Assembly language Both of t None of above C
13 High level language is also called Problem oriented languBusiness oriented langMathema All of the above D
14 The rules of a language are called its __________. Structure Code Syntax Rigidity C
15 The rules of a language are called its . Structure Code Syntax Rigidity C
16 A ___ is commonly used to locate faults in a program and remove them. Debugger Linker Loader Error generator A
17 Pascal is a ___ language. Procedural object-oriented Function Structure-oriented A
18 LISP was designed and written in 1940-45 1954-55 1956-62 1981-85 C
19 PROLOG was developed by K. Iverson J. McCarthy J. Backu A. Colmerauer D
20 Syntax of a language is defined by two sets of rules as ___ and ___. Lexical rules, semantic Semantic rules, symb Lexical r Lexical rules, syntactic rules D
21 The symbol "::=" stands for Not equals to is defined as Both A a None of these C
22 Importance of studying PL ability to express ideasability to learn new lanability to d all the above D
23 Java has its origin in C PERL COBOL OAK D
24 ASCII code of D 067 004 068 065 C
From the point of view of the programmer what are the major advantages of using a high- Program portability Efficiency abstraction B
25 Easy development
In high level programming language Pascal, each program statement ends with the comma semicolon double qusingle quotation marks B
26
Function is basic building blocks in which language: Imperative Languages Applicative LanguagesRule-bas Object-oriented programming B
27
language have adopted which features that aid separate compilation: Extern Breaking point featureExecutionNone of the above A
28
In testing/ debugging assertion means: Control expression Conditional expressionBoth a & B
29 None of the above
B
30 Looping in a program means Jumping to the specifie Repeat the specified l Both of a None of above
C
31 If default constructor is not defined, then how the objects of the class will be created? The compiler will generError will occur at run- Compiler None of these
D
32 The variable which can be accessed by all modules in a program , are called -------- Local variables Internal variables External vGlobal variables
all of the above C
33 Discriminated unions are supported by---- C C++ ML
Chose the correct statement B
34 I. Array of references can be created Only I is correct Only II is correct Both I andNeither I and II is correct
B
35 Choose the correct statement A reference is not a co Reference is automati Both a & None of these
B
36 Explicit type conversion is known as ------ Conversion Casting SeparatioNone of these
The scope of a variable refer to----- The length of the varia The name of the varia The acce The lifetime of the variable C
37
38 A factor in the selection of a source language is programming writability language availability program all of the above D
39 Programming languages may enforce a certain programming style is called as . Programming languag Software development program None of these C
40 From the point of view of the programmer what are the major advantages of using a high-level language ratProgram portability Easy dev Efficiency B
41 Which of the following is logical programming language LISP C COBOL PROLOG D
42 Static binding is Translation Time Language ImplementaLanguageAll of the above D
43 Is a program that processes a program just before the program is compiled preprocessor Interpreter compiler Assembler A
44 Execution time is actually_______________ Dynamic Binding Static Binding None of these A
45 _________ is defined by programmer,loader or translator Execution time Translation Time LanguageLanguage Implementation Time B
46 Importance of studying PL ability to express ideas ability to learn new la ability to dall the above D
47 The computer aided program development tools have increased programming productivityReducing chances of eReducing time to locatAll of the None of the above C
48 ____________ emphasizes the computation of values by the use of expressions and fun Procedural programminFunctional programm Abstract dModule based programming B
49 ____________ is the programming style, where programs are decomposed into computa Procedural programminFunctional programm Abstract dModule based programming A
50 Which one of the following is NOT performed during compilation? Dynamic memory allocaType checking Symbol T Inline Expression A
51 The class(es) of binding times is/are . Execution time Translation Time both A anNone of these C
52 Which languages necessarily need heap allocation in the runtime environment? Those that support rec Those that use dynamThose thaThose that use global variables C
53 Variable names resolving is based on: Source language Assembler and loader Compiler None of these C
54 The set of rules used in context free grammer are called as____________ terminals non terminals productio start symbol C
55 Syntax of a program means- Format of a program Meaning of the prograSimply co None of these A
Unit-2
1 Which among the following best defines abstraction? Hiding the Showing the important Hiding Hiding D
2 In Logically-Controlled Loops repetition control is based on counter Boolen experssion combinat None of the B
3 In which type subscript ranges are statically bound, but the allocation is done at declaration Fixed stack-dynamic Stack-dynamic array Fixed Heap-dyna A
4 An unordered collection of data elements that are indexed by an equal number of values called rectangular array Jagged Arrays record Associative D
5 Heterogeneous Arrays supported by which language C C++ Python Ada C
6 …………… have Large number of floating-point computations Scientific applications Business applications Systems all of the A
8 Which of the following is not the built in data types of Pascal? Integer Real Char Float D
9 Which is the subtypes of Pascal and Ada Data Types Unstucture Pointers Structureall of these D
10 Which is the subtypes of unstructured types of Pascal Data Types Built –in enumeration Subrang all of these D
11 Which is the subtypes of structured type of Pascal Data Types Cartesian Product(ReArray (finite mapping) Set (powall of these D
12 Which is the subtypes of fundamental data type of C++ Integral floating Both A and B C
13 Which is the subtypes of derived data type of C++ Array Class Structureall of these D
14 Which of the following are structured dta types in Ada? Cartesian Product(ReArray(Finite mapping, Tagged all of these D
15 Which of the following subtypes of scalar data types of Ada Discrete Real Both A and B C
16 Which of the following are subtypes of discrete and real data types of Ada? Enumeration (Char,BoInteger (Signed integeFloating pall of these D
17 What will be the output of following code? #include<iostream> using namespace std; 0 1 2 1 2 3 Syntax ErroNone of These C
18 What will be the output of the follwing code? #include<iostream> using namesp Matching Non Matching Syntax ErroNone of These B
19 What will be the output of the following code?int main() { char ch; ch=129; printf("%d\n",ch); retu 129 -129 -127 Syntax Error C
20 What is the output of following code? #include<iostream> using namespace std; int main() { int Syntax Error 3 4 5 6 7 2 3 4 N 5 one of These B
21 Identify the built-in data type__________________. struct class int enum C
22 What will happen if null pointer is converted to boolean___________. The boolean value is eval The boolean value is evaerrror is ra None of these B
23 In which language ADT is not implemented by using class C++ Java VB Ada D
24 What is the role of compiler by templates? Probability type-safe de eliminat Allof These B
25 A mathematical model with a collection of operations defined on that model is called__________. Data Structure Abstract Data Type lt in Data TNone of These B
26 illegal operation that manipluate the data object is called type system type error type safet all of these B
27 When variable used in the program is a whole number,then variable is stored as ___________. String data type integer data type Negative wPositive whole number B
28 Class is _______. template which associateData abstraction implement object oriented D
29 which type of error occure in program language error Applicaton error all of theseSyntax Error C
30 In intensional mapping range type values are directly associated with domain type values TRUE FALSE A
31 Extensional mapping is a routine in which the range type values are associated as data aggregate TRUE FALSE A
32 What is the output of the folloeing code? int main() { dou 2.2 2 2 conversion from double to int is not pos B
33 What will be the output of the following code? #include<iostream.h> using namespace std; a 0.0 97 Syntax Error C
34 Explicit type conversion is known as_____. conversion casting separationNone of These B
35 What is strong type system? The type system in whic The type system in whicA type sys None of These C
36 When the type conversion is required? The value to be stored The value supported i To reduce All of these D
37 A strict type system in which one operand type A is allowed to perform operation with another opeType Compatibility Type equivalence Type confoAll of these D
38 The type system which gives gurantees of typr safety and not to generate type error is ca strong type system Weak type system strong typweak type language A
39 subtype is nothing but subset of the values to whoich the type is associated with TRUE FALSE A
40 Language that support subtypes must define a way to define subsetCompatibility rules bet both 1 and 2 C
41 Which of the following is strict as applied to record type---------- name equivalence sructural equivalence subtype aassignment compability A
42 choose the correct property of static type system_______ only built in dta types aall variables are clearefor all opeall of these D
43 Type system is nothing but collection of rules to becollection of various p collection none of these A
44 Using a template the function is written oit will take long time to duplicate None of These A
45 Generic types derived from Primitive data types Built-in Data types Abstract dNone of These C
46 ………………..is one of the most important criteria for judging a programming language is the Readability Orthogonality Writabilit all of the A
47 ………………..are the Language Evaluation Criteria Orthogonality Readability Writabilit all of the D
48 …………….. was the first to have block structure, recursion, and a formal definition. Python Algol 60 Ada LISP B
49 ………..used for business-oriented computations Ada LISP Cobol Algol 60 C
50 ………….was the first in history language of personal computing. Basic Algol 60 LISP Ada A
51 A programming paradigm can be understood as an …………………………………….. of a abstraction inheritance encapsul None of the A
52 …………………….. is simplifying complex reality by modeling classes appropriate to the Abstraction encapsulation inheritan all of the A
53 ………………………….avoids state changes and mutable data. Object Oriented Functional Both a None of the B
54 Iteration in functional languages is usually accomplished via ……………………………... recursion Abstraction inheritan None of the A
55 A type system in which every object belongs to one and only one type Monomorphic Polymorphic None of These A
56 functions that work uniformly for an infinitenset of types, all of which have some common s universal polymorphismAd-hoc None of These A
57 _____the same function name can be used in different contexts to denote different functio overloading coercion None of These A
58 An operation that converts the types of function to the type expected by function Inclusion Prametric coercion C
59 Use of interface in java is To define members andTo define members an call to deTo define members and methods th A
60 What is the output of the folloeing code? int main() { dou 2.2 2 2 conversion from double to int is not pos B
61 Which of the following is the operator notations Infix Postfix Prefix All of these D
62 Which of the following is the type of operator depends on arity of operaror ? Unary Binary n-ary All of these D
63 which Conditional statement use in all language if case Both 1 anNone of these A
64 How many types of standard exceptions are in C++ 2 5 6 7 B
65 compound statement is nothing but_________ group of statement tha group of statement group of statement that executed over and over a A
66 repeat ……….until is the iteration used in Ada Pascal C++ c B
67 #include<iostream> using namespace std; int main() { int a= 10 20 11 20 10 21 11 21 C
68 The statements that are executed repeatedly is _____________ iteration Function routine loops C
69 throw statement can be replaced by_________ break return exit None of these B
70 Procedure returns the value TRUE FALSE A
71 Two variables to be aliases if they share or denote same entity durin unit activation TRUE FALSE A
72 Exception handling is for_______. Handling runtime er Handling syntax errHandlingall of these A
73 Exception occurs due to________. Operating system proHardware Problem Syntax e runtime error D
74 The code of statements that can cause abnormal termination of the program shouldtry block catch block catch all finally bock A
75 Which keyword is used to check exception in the code? throw try catch exception C
76 Exception handler are declared with _____keyword. try catch finally none of these B
77 Exception is thrown using the keyword________. throw throws thrown throwing A
78 Choose the current statement _________. Function can throw a A function can throwFunction None of these B
79which of the following is used to replace throw statement? break return exit none of these B
What is the output of the following code?Void Division (const double a, const dCheck Operators
80 Error! Division by z 0 Syntax error C
81what will happen if thrown exception is not handled in c++? It will call terminateThe compiler will c The progNone of these A
What will happen when a program throws any other type ofexception other th Program will crash arise an error
82 Program none of these B
83 activity is typically written within the try block constant reference static memory alloc dynami None of these C
84Which is the valid catch statement? catch() {//function bocatch(….){//functioncatch(clanone of these B
What happens if several handlers match the type of the thrown object?
85 All handlers will be program will crashThe firstnone of these C
What will happen when we move try block far away from catch block?
86 Reduces the amountIncreases the amou Don’t al None of the mentioned A
In C++ which operator is used in catch-all handler?
87 ellipses operator ternary operator string opunary operator A
How many parameters does the throw expression can have?
88 1 2 3 4 A
Most of the programming language support following type of routine______. function
89 procedure both a a none of thes C
Pascal supports following type of routine________.
90 only procedure Only functions Both pr Neither procedure nor function C
……………………………………..can be categorized by whether they use strict (eager) or
91 Functional languageObject Oriented ProLogical PNone of the above A
……………………………………... is a specific type of a more general class: production
92 Functional languageObject Oriented ProLogical PNone of the above C
............... is the purest object-oriented language ever designed.
93 FORTRAN Pascal Cobol smalltalk D
Importance of Studying Programming Languages is/are:
94 Increased capacity toImproved backgrouOverall All of this D
What are the three main types of computer programming languages?
95 machine language, aimperative languag COBOL, all of the above A
Q.No. Question Option 1 Option 2 Option Option 4 Correct
1 What are the types of requirements ? Availability Usability Reliability All Of the me D
2 Select the developer-specific requirement? Portability Maintainability Availability Portability & D
3 Which one of the following is not a step of requirement engineering? Elicitation Design Analysis Documentati B
4 FAST stands for : Functional Application S Fast Application Specifi Facilitated None of the m C
5 QFD stands for: quality function design quality function developmquality fun None of the m C
6 A Use-case actor is always a person having a role that different people may play. TRUE FALSE B
7 Which is one of the most important stakeholder from the following ? Entry level personnel Middle level stakeholde Managers Users of the s D
8 Which one of the following is a functional requirement? Maintainability Portability RobustnesNone of the m D
9 Which one of the following is a requirement that fits in a developer's module? Availability Testability Usability Flexibility B
10 What is the first step of requirement elicitation ? Identifying Stakeholder Listing out Requirement RequiremeAll Of the me A
11 Starting from least to most important, choose the order of stakeholder i)managerii)entry level persoi, ii, iv, lii i, ii, iii, iv ii, iv, i, iii All Of the me C
12 What are the types of requirement in Quality Function Deployment (QFD)? known, Unknown. UndreaUser, Developer Functiona Normal Expe D
13 Why is Requirements Elicitation a difficult task? Problem of scope Problem of understandinProblem o All Of the me D
14 How many Scenarios are there in elicitation activities? one two three four D
15 Who controls the FAST (Facilitated Application Specification Techniques) meeting? System Analyst scribe Facilitator Manager C
16 Traceability is not considered in Requirement Analysis. TRUE FALSE B
17 Requirements analysis is critical to the success of a development project. TRUE FALSE Depends uNone of the m A
18 Requirements Analysis is an Iterative Process. TRUE FALSE A
19 The process to gather the software requirements from client, analyze and docuFeasibility Study Requirement Gathering RequiremeSystem Requ C
20 It is the process in which developers discuss with the client and end users and Requirements gatheOrganizing Require Negotia Documenta A
21 In which model, limited set of customer's requirements are implemented quickly and are deThe waterfall model Incremental process mEvolution The speciali B
22 Which of the following is not Evolutionary Process Models? The waterfall model The Concurrent devel The ProtoThe Spiral m A
23 Which of the following is not the Phases of Unified Process? Inception phase Elaboration phase Construct Translation ph D
24 Which of the following is not agile method? scrum spiral Extreme crystal B
UNIT-3
1 Which of the following is not the feature of OOPs? Data Encapsulation Inheritance PolymorpNone of the above D
2 The wrapping up of data and functions into a single unit is Data Abstraction Data Encapsulation Both (a) &None of the above B
3 Which of the following feature supports reusability and extensibility of classes? Inheritance Overloading PolymorpNone of the above A
4 ________ is the ability for a message or data to be processed in more than one form. Class Abstraction PolymorpNone of the above C
5 ________Provides a value for a variable Declaration statement Assignment statement DefinitionNone of the above B
7 Which of the following is not true? An interface can extendA class which is implemAn interfaAn interface (e) None of the above. C
8 Among these expressions, which is(are) of type String? “0” “ab” + “cd” ‘0’ (d) Both (A) and (B) above D
9 What is the default value of short variable? 1 0 null not defined B
10 Which will legally declare, construct, and initialize an array? int [] myList = {"1", "2", "int [] myList = (5, 8, 2); int myLis int myList [] = {4, 3, 7}; D
11 What will be the output of the program? 2 3 4 5 C
12 public class While There is a syntax There are syntax There There is a D
13 An expression involving byte, int, and literal numbers is promoted to which of these? int long byte float A
14 class average { public static void main(String args[]) { double num[] = {5.5, 10.1, 11, 12.8,
15 What is the output of this program? 38 43 (b) 39 44 (c) 295 (d) 295.04 b
16 Which of these operators is used to allocate memory to array variable in Java? malloc calloc new new malloc c
17 What will this code print? 0 value stored in 1000 Garbage D
18 What is the output of this program? 02468 13579 01234 1234567 a
19 Which of these selection statements test only for equality? if if switch switch None c
20 Which of these statement is correct? Switch statement is Two case constants in Switch It is b
21 What is the output of this program? 5 6 14 Compilatio b
22 What is the output of this program? 301.5656 301 301.56 301.5656 a
23 class jump_statments { 1357 2468 13579 1234567 c
24 What is the stored in the object obj in following lines of code? Memory address of NULL Any Garbage b
25 What is the output of this program? 9 8 Compil Runtime C
26 Which of the following statements is correct? Public method is Public method is Public Public a c
27 Which of the following statements are incorrect? 1 2 Garbage Runtime a
28 Which of the following personality is called as father of Java Programming language - Larry Page Bjarne Stroustrup James None of c
29 class area { 00 56 65 55 C
30 What is the return type of Constructors? int void float None D
31 Method Overloading is an example of Static Binding. Dynamic Binding. Both of None A
32 Which function is used to perform some action when the object is to be destroyed? finalize() delete() main() None of the A
33 Can command line arguments be converted into int automatically if required? Yes No CompilerOnly ASCII characters can be con B
34 What will be the output of the following Java program, Command line execution is done as This java Output This is a This is a Compilation Error c
35 How many arguments can be passed to main()? Infinite 1 System 3 A
36 Which of these is an incorrect Statement? It is necessary to use Array can be initializArray ca None of the mentioned A
37 With x = 0, which of the following are legal lines of Java code for changing the value of x to 1, 2 & 3 1 & 4 1, 2, 3 & 3 & 2 D
38 The following statement forces the next iteration of the loop to take place Break Continue Goto None of the above B
39 An entity representing some characteristics and behaviour is object Function Method None of the above A
40 Java has ______ primtive types of data. 4 5 8 7 C
41 The name of the class file is created automatically when youcompile the program with the TRUE FALSE A
42 If an object is passed by reference, the changes made in the function ___________ Are reflected to the Are reflected only Are Are A
43 What is an array of objects? An array of An array of An An array a
44 class selection_statements 1 2 3 4 B
45 What will be the output of the following Java program? Hello run time error Hello wo compile time error D
46 What would be the output of the following code snippet if variable a=10? 12 23 13 3 D
47 class test 10 20 20 10 20 40 40 20 B
48 Which of these is used as a default for a member of a class if no access specifier is used for
private public public, w protected A
49 What happens if constructor of class A is made private? Any class can Objects of class A Inherit classes B
50 How many copies of static and class variables are created when 10 objects are crea 1, 10 10, 10 10, 1 1, 1 A
51 Java is made useful for distributed system. It is possible Inheritance RMI API Polymorphism B
52 Which type of literal is written in pair of single quote? Float boolean integer Character D
53 Following is the human readable in Java Programming Language. .class .obj .jar .java D
54 Which of the following converts human readable file into platform JRE Compiler JVM Applet watcher B
Q.No Question Option 1 Option 2 Option Option 4 Correct
1 Project planing is an imporatant activity performed by the project manager to estimate The resources requireThe Cost Of the ProjeThe scheAll of the abo D
2 Three major categories of software engineering resources Portability, Feasibility, APeople, Reusable,So People. PPortability, M B
3 We use following two types of Decomposition Techniques:1.problem decomposition an TRUE FALSE A
4 Which of the following are parameters involved in computing the total cost of a software Hardware and softwa Effort Costs Travel an All of the me D
5 It is often difficult to estimate size atan early stage in a project when only a specification TRUE FALSE A
6 Which model assumes that systems are created from reusable camponents, scripting Anapplication-compos A postarchitecture moA reuse mAn early de A
7 Which of the following uses empirically derived formulas to predict effort s a function of FP-Based Estimation Process-Based Estim COCOM Both FP-Ba D
8 COCOMO stands for: Constructive cost mo Comprehensive cost Construc Complete co A
9 Which version of COCOMO states that ance requirements have beer suabilized, the baEarly design stage moPost architecture-stagApplicatioAll of the me D
10 Which one is not a size measure for software product? LOC Halsceads Program LFunction Cyclomatic D
11 COCOMO was developed initially by : B.Beizer Rajiv Gupta B.W.Boh Gregg Rothe C
12 COCOMO-11 was developed at: University of Texas University of SouthernMIT IIT-Kanpur B
13 Software cost and effort estimation will never be an exact science. TRUE FALSE A
14 For achieving reliable software project estimation,which of the following technique is usedelay the estimation u Use baseline metrics use simpAll of the abo D
15 Which model was used during the early stages of software engineering, when prototypi Early design stage moPost architecture-stagApplicatioAll of the me C
16 Estimation of size for a project is dependent on : cost Time Schedule None of the D
17 Which of the following is not the approach to the sizing problem : Fuzzy logic sizing Function point sizing Standard crystal sizin D
18 Which model assumes that systems are created from reusable components, scripting An application-composPost architecture-stagA reuse man early des A
19 Which of the following states that work expands to fill the time avallable ? CASE Tools pricing to win ParkinsoExpert judge C
20 What is related to the overall functionality of the delivered software? Function-related m Product-related me Size-relaNone of th A
21 Which technique (5 applicable when other projects in the same st o ad? analogy applicaAlgorithmic cost mode Expert judgement Estimatio Parkinson's C
22 Which model assumes that systems are created from reusable camponents, scripting An application-composA post architecture m A reuse man early des A
23 Which of the folowing s not sizing options or COCOMOII models? Process point Object points Function Lines of sou A
24 The traceability tables are used as : Requirements databasElaboration database Construc Transition d A
25 Which of the following is not an example of traceability table? Features traceability taSource traceability ta Depende Crystal trace D
UNIT-4
Sr. No. Questions Option 1 Option 2 Option Option 4 Answer
1 Inheritance is feature of C++ Java C++ C 3
2 An exception is thrown using keyword in throws throw threw thrown 1
3 Inheritance means Wrapping of data Aquiring Focus Diving 2
4 Exception handlers are declared with try catch finally None 2
5 Base class is called as Super class Sub class Derive Main 1
6 Catch handler can have multiple parameters. TRUE FALSE not say none 1
7 Derived class is called as Super class Sub class Derive Basic 2
8 Which of the following statements are true about Catch \handler ? Only 1, 4, 5 Only 1, 2, 3 Only 1, Only 1, 2 3
9 Which language does not support multiple inheritance C C++ Java Perl 3
10 Method overriding means Method with same Method with same Metho All the 1
11 A try block can be nested under another try block – Yes No Not Say None 1
12 Java inheritance uses ____________ keyword public private extend impleme 3
13 In nested try block, if inner catch handler gets executed, then Program execution Outer catch Compil Compiler 4
14 Which keyword is used to have Java interface ? public extends imple protected 3
15 Irrespective of exception occurrence, catch handler will always get executed. TRUE FALSE 2
16 Which keyword prevents inheritance from being deriving the subclss? extends implements super final 4
17 Which object-oriented feature of Java allows the creation of hierarchical Encapsulation Polymorphism Inherit Abstracti 3
18 Java does not support inheritance. Single multiple multile Hierarchi 2
19 Throwing an unhandled exception causes standard library function to be stop() aborted() termin abandon( 3
20 Which is correct about Java interface ? Java interface Java interface We can Java 1
21 keyword prevents overriding. extends implements final this 3
22 How can we restrict a function to throw certain exceptions? Defining multiple Defining generic Definin It is not 3
23 Which keyword is used in Inheritance of interfaces? extends implements this super 1
24 Java package consists of ____________ Java classes only Java interfaces Both methods 3
25 Which keyword is used to declare Java package? class interface void package 4
26 Attempting to throw an exception that is not supported by a function call indeterminate() unutilized() unexpe unpredict 3
27 Which is default package present in Java files? java.io java.util java.la java.sql 3
28 CLASSPTH is used in ________________ inheritance interface packag class 3
29 Return type of uncaught exception() is int bool char * double 2
30 Which keyword is used to use package in Java file? include import packag export 2
31 Which keyword is used to create abstract class in Java? interface abstract overrid extends 2
32 Which of the following data types are available in Java? Primitive Reference Both None of 3
33 A package hving Object class. java.lang java.io java.a java.util 1
34 act as container. packages interfaces both methods 3
35 Which is correct with respect to size of the datatypes? char > int > float int > char > float char < double > 3
36 Java provides ____________ access modifiers private public protect All the 4
37 Java supports . built-in package User-defined both None of 3
38 Pick the odd one out. integer, character, enumeration, integer arrays, 3
39 The members of an interface are always _____________ private public protect All the 2
40 Exception handling in Java uses __________ keyword/s. try catch finally All the 4
41 The ---- package contains the File class in java java.io java.file java.uti java.lang 1
42 Exception Base class is present in package named . java.lang java.io java.a java.appl 1
43 ___________ keyword is used in Java exception handling. final finally finalize all of the 2
44 ____________ keyword is used throw exception manually. throw throws throwa throwing 1
45 To perform static type checking operation, the arguments, expressions, TRUE FALSE cannot none 1
46 is the base class of Exception. IOException RuntimeException Error Throwabl 4
47 _____________ is the base class of RuntimeException. IOException Exception Error Throwabl 2
48 The main purpose of a type system is to Assign a property to reduce only A Both A 4
49 block comprises the code where there are chances of exceptions. try catch finally All the 1
50 specifies the exception type that we wish to catch. try catch finally All the 2
51 Which of the following variables cannot be inherited? public static private protected 3
52 ___________ block will be excecuted after try/catch block. final finally throws Throwabl 2
53 Whether or not runtime error/ exception occures, block will try catch Error finally 4
54 Which of these keywords is used to refer to member of base class from Upper Super this extent 2
55 We cannot have multiple ____________ and single __________ catch clause. try, catch catch, try try, finally, 1
56 We can have nested ___________ block/s in Java exceptions handling. try catch try and Throwabl 3
57 In java, multiple inheritance can be achieved using------ interface abstraction inherit polymorp 1
58 Byte stream handle data in Bytes of size 8 bits 16 bits 32 bit 48 bits 1
59 Character stream handle data in ___________ Unicode. 8 bits 16 bits 32 bits 48 bits 2
60 The stream that is used for general Input and Output not usually character Byte stream Character stream Reader Writer 1
61 ByteStream comprises . InputStream OutputStream InpuSt BufferedS 3
62 is the name of the abstract base class for streams dealing with character InputStream OutputStream Reader Writer 3
UNIT-5
Sr. No. Question Option 1 Option2 Option3 Option4 Answer
1 What is multithreaded programming? It’s a process in which It’s a process in which It’s a It’s a B
2 In java multi-threading, a thread can be created by Extending Thread class Implementing Using None of the
c
3 Which of these are types of multitasking? Process based Thread based Process None of the
C
4 Which method is called internally by Thread start() method? execute() run() launch() main() B
5 Thread priority in Java is? Integer Float double long A
6 What is maximum thread priority in Java 10 12 5 8 A
7 What will happen if two thread of the same priority are called to be processed simultaneously? Anyone will be Both of them will be None of It is D
8 Which of these statements is incorrect? By multithreading CPU By multitasking CPU Two A thread D
9 Number of threads in below java program is 0 1 2 3 C
10 In java multi-threading, a thread can be created by Extending Thread class Implementing Using None of the
C
11 Which method is called internally by Thread start() method? execute() run() launch() main() B
12 What will be the output of the following program? 10, 5, 0, 20, 0 10, 30, 20 60, 5, 0, 60, 30, 0,D
13 What is maximum thread priority in Java 10 12 5 8 A
14 Thread are light weight process. TRUE FALSE A
15 _____ is used to find and fix bugs in the Java programs. JVM JRE JDK JDB D
16 Does Thread implements their own Stack Yes No A
17 Which method must be implemented by a Java thread? run() execute() start() main() A
18 Servlet are used to program which component in a web application? client server Tomcat applet B
19 In java multi-threading, a thread can be created by Extending Thread class Implementing Using None C
20 Which method is called internally by Thread start() method? execute() run() launch() main() B
21 Which component can be used for sending messages from one application to another? server client Mq webapp C
22 What is maximum thread priority in Java 10 12 5 8 A
23 What is the name of the thread in the following Java Program? Main Thread system None of the A
24 Which method must be implemented by a Java thread? run() execute() start() None A
25 What is the priority of the thread in the following Java Program? 4 5 0 1 B
26 What is true about threads? Threads consumes Threads enables multi Multi All D
27 A thread can acquire a lock by using which reserved keyword? volatile synchronized locked None B
28 What will happen if two thread of the same priority are called to be processed simultaneously? Anyone will be Both of them will be None of It is D
29 How many threads can a process contain? 1 2 Multiple None C
30 Which of these statements is incorrect? By multithreading CPU By multitasking CPU Two A thread D
31 What is sometimes also called a lightweight process? Thread Process JVM none A
32 When start() method is called on thread it enters ______ state. running runnable new waiting C
33 What is multithreaded programming? It’s a process in which It’s a process in which It’s a It’s a B
34 In pre-emptive scheduling a thread can be in one of the three states: Start, Ready, Resume Running, Ready, Running, Running, B
35 wait(), notify() & notifyAll() are methods of which class or interface? Thread class Runnable interface Object None C
36 How are java web applications packaged? jar war zip Both jar & D
37 What is time slicing in threads In time slicing, a thread Thread in runnable Both A none C
38 How can we take input text from user in HTML page? input tag inoutBufferedReader meta tag scanner tag A
39 What is name of thread which calls main method mainThread Thread Thread-0 main D
40 Which of the below is not a javascript framework for UI? Vaadin AngularJS KendoUI Springcore D
41 Significance of synchronized variable synchronized variable synchronized variable Prevents None A
42 Evaluate the following Java expression, if x=3, y=5, and z=10: 24 23 20 25 A
43 Which method can make Thread to go from running to waiting state wait() resume() notify() alive() A
44 What will be the output of the following program? 15 times *** 15 times +++++ 8 times Both will C
45 How Can we acquire lock on class? By acquiring lock on By acquiring lock on By By acquiring C
46 Can multiple threads exist on one object? Multiple threads can Multiple threads Only 2 None A
47 What is deadlock in java? Deadlock is a situation Deadlock is a situation None A
48 Which is thread safe? StringBuffer StringBuilder All None A
49 Which of these is not a Thread state? New Runnable sleep terminated C
50 Which method can be used to find whether Thread hasn't entered dead state? isAlive() isRunning() isNotDea All A
51 How many ways a thread can be created in Java multithreading? 1 2 3 4 B
52 Which method is used to get current running thread object? runningThread() currentThread() runnable None B
53 Daemon thread runs in Background Foreground Both A None A
54 Which method is used to create a daemon thread? setDaemon(boolean setThread(boolean createDa makeDeam A
55 Which method is used to wait for child threads to finish in Java? wait() sleep() join() isAlive() C
56 If a priority of a java thread is 3 then the default priority of its child thread will be 0 1 5 3 D
57 Which method is used to check if a thread is running? isAlive() run () alive () keepAlive() A
58 Min and Max priority of a thread in Java multithreading are 1, 10 0, 10 0, 255 1, 256 A
59 Which method we implement from Runnable interface? Run () Start () Execute call () A
60 The life cycle of a thread in java is controlled by JRE JDK JVM None C
61 Which of the following creates a List of 3 visible items and multiple selections abled? new List(false, 3) new List(3, true) new new List(3, B
62 What are valid points about thread Thread are subdivision One or more Threads Threads All D
63 What are valid point about processes Processes have their Threads have direct Process All of these D
64 What is pre-emptive scheduling in threads In pre-emptive In pre-emptive In Anyone A
65 What will happen if two threads try to read same resource without synchronization in java It is not allowed in java It doesn't create any Will None B
66 Which method of the Class.class is used to determine the name of a class represented by the getClass() intern() getName toString() C
67 How can we create Thread By Extending Thread Implementing By using All D
Q.No. Question Option 1 Option 2 Option Option 4 Correct
1 Risk management is one of the most important jobs for a: Client Investor Product Project Project
2 Which of the following is not category of software risk? Project risk Product risk Busines Resource Resource
3 Which of the following is not a risk component or risk driver? Performance Cost Suppor Process Process
4 Which of the following risk is the failure of purchased component to perform as Product risk Project risk Busines Programm Product
5 What acess the risk and your plan for risk mitigation and revise these when you Risk monitoring Risk planning Risk Risk Risk
6 Which of the following risks are derived from the software or hardware Managerial risk Technology risks Estimati Organizati Technolog
7 Which of the following strategies means that the impact of the risk will be Avoidance Minimization Conting All of the
8 Risk management is now recognized as one of the most important project TRUE FALSE TRUE
9 one of the following is Risk management responsibility Project team Investor Develo Customer Project
10 ……model is used to project risk factor Prototyping model Waterfall model Spiral None of Spiral
11 RE indicates………. Risk exposure Related expense Risk Risk Risk
12 Which is a software configuration management concept that helps us to control Baselines Source code Data None of
13 Software configuration management can be administered in several ways, these A single software A separate Softwar All of the A single
14 What combines procedures and tools to manage different versions of Change control Version control SCIs None of Version
15 What complements the formal technical review by assessing a configuration Software Software Baselin None of Software
16 Which of the following option is not tracked by configuration management tools? Tracking of change Storing versions of Tracki None of None of
17 Which of the following is not a Software Configuration Management Activity? Configuration item Risk management Release Branch Risk
18 The definition and use of configuration management standards is essential for ISO 9000 CMM CMMI All of the All of the
19 SCM stands for: Software Control Software Softwar None of Software
20 Which of the following is not a main phase in Configuration Management (CM) CM Planning Executing the CM CM None of None of
21 What allows different projects to use the same source files at the same time? Version Control Access control CM Version Version
22 Which of the following is not a change management process? Log the changes Estimate impact on Review None of None of
23 What is one or more software configuration items that have been formally Baseline Cumulative CM Change Baseline
24 How are baselines verified? By reviews By inspections By All of the By testing
25 Which of the following is a example of Configuration Items ? SCM procedures Source code Softwar All of the All of the
UNIT-6
1 Which of the following is the basic building blocks of S-expressions? Lists Atoms Number Predicates B
2 Is LISP a case sensitive language? No Yes A
3 Which of the following is part of basic syntax in LISP programming? + #include NULL Primitive D
4 A single LISP program has ........ arguments. Two Three Four Any number of arguments D
5 Can LISP programs be nested? Yes No A
6 Which language is the right to learn for symbol manipulation? LISP Java Pearl Ruby A
7 Identify the type of manipulation in which language works with words and sentences? List manipulation Symbol manipulation Object Ma None of the above B
8 Identify the functional programming languages from the given programming languages as per optio Java,C#,python Prolog,DataLog Lisp, Java Ruby,Perl C
9 Identify the basic building blocks of Symbolic-expressions also called as S-expression? Numbers Atoms PredicatesFunctions B
10 what will be the output of the following expression executed with Lisp as (car (cdr (cdr '(1 2 3 4 5 6 1 2 3 7 C
11 what will be the output of the following expression executed with Lisp as (equal '(LISP) '(PROLOG T () NIL Error in expression C
12 Identify the basic LISP primitive used for assigning values to symbols. setf() setc() setq() sets() A
13 what will be the output of the following expression executed with Lisp as (setf (car '(1 2 10)) 9) 2 10 1 9 D
14 (first ‘(a b c)) and (car ‘(a b c) will produce the same output. Select the correct output with both of a b c T A
15 Identify the Lisp's basic numeric types. integer ratio floating po all of the above D
16 What will be the output of the following expression (car (cdr '(a (b c) d e))) bc de ac ad A
17 Which anonymous function is used to interface functions to argument lists.? Numeric function Lambda function String function none of the above B
18 The lambda special form can be used to define which functions in Lisp.? numeric String Mathemat Anonymous D
19 Which keyword is used to define the function in LISP? defun def define defvar A
20 Which provides a way to write simple counting-oriented iteration procedures do dotimes dolist both dotimes and dolist D
21 Select the programming paradigm which is based on facts and rules. Procedural Object Oriented Functiona Logic / Rule Based D
22 Identify the application of prolog which requires formal reasoning. expert systems natural lanuguage proce Robotics all of the above D
23 .............. is the notation used for writing LISP Syntax. Infix Prefix Postfix None of above B
24 ............. is the notation used for writing LISP Syntax. Infix Prefix Postfix None of above B
25 What does Lisp stands for? Like Processing List Processing Light Pr None of above B
26 In lisp, what is meant by symbolic expression? List Atoms Words Atoms and list D
27 Lisp data and procedures have the same form on lisp. TRUE FALSE A
28 likes(Rahul,Object Oriented Programming).This entire expression before a period is called as? Predicate Fact Relation Primitive A
29 Which language permits to describe facts as symbolic relationships? Lisp Prolog HTML Java B
30 Variables in prolog can be of which types at any given time ? A.Local B.Free C.Bound D.Both B and C D
31 What does the query noFriend(john) return for the following Prolog program TRUE FALSE Infinite loo Error A
32 brother(Ram,Lakshman). What this clause declares? fact relation relationsh Both fact and realtion D
33 Mark all the TRUE statements about Prolog a.Prolog programs can be extended by simply a and b a,b,c c,d a,b and d D
34 Which primitve is used to attach a property value to a symbol? setf set get put A
35 Identify the correct sequence of the following statement translated into Prolog rules. haschild(Ram). haschild(Rahul).hap haschild( Happy(X):-h C
36 Identify the valid variables in Prolog. a. X b. Object2 c._P25 d. Fname_Mname only a only a,b only b,c,d all a,b,c,d D
37 Identify the given type of data object as date(19,June,2021) variable constant number structure D
38 what is Procedural meaning of Prolog procedure? . Executing atoms Executing relations Executing executing a list of goals with respect t D
39 In Prolog, If the given matching operation succeed,what will be the resulting instantiations of D=1,M=June D=D1,M=June,Y1=202M=June,YD=D1,M=June B
40 Which primitive evaluates the single argument and prints it on a new line? print write format None of the above A
41 Which keyword is used to access the elements of array in LISP? aref ref setf setq A
42 How to initialize the array elements in LISP ?Identify the keyword. initial-content content initial-ele initial A
43 which keyword is used to assign a global value to a variable as well as to declare a variable to be defun var defvar car C
44 Which of the following is number predicate? null endp atomp plusp D
45 Which primitve retrieve a property value to a symbol? get put set setf A
46 LISP stands for List Handling List List ProceList manipulation C
47 What will be the output of the following lisp expression as given (first' (p h w)) p h () w A
48 Which language is used when computer intelligence is not involved? Java C Lisp C++ C
49 What will be the output of the following lisp expression as given (rest ' (b k p h)) k b ph kph D
50 What will be the output of the following lisp expression as given (first' (p h ) ( b k)) bk () (ph) error C
51 Lisp data and procedures have the same form on lisp. TRUE FALSE A
52 How many types of arguments are available in lisp? 2 3 4 5 C
53 The Lisp facilitates .................. in computer science learning. Data abstraction Procedure abstracti Both ProNone of above C
54 What is called the symbol manipulation in LISP? Lists Atoms List procNone of above C
55 Which are the general-purpose dialects of LISP? Clojure Common LISP CommonAll of the Above D
Q.No. Question Option 1 Option 2 Option Option 4 Correct
1 Which methodology is used to performed Maintenance testing? Breadth test and Confirmation Retestin Sanity Breadth
2 Which of the following is not part of the Test document? Test Case Requirements Test Project Project
3 Which of the following is not a valid phase of SDLC (Software Development Life Testing Phase Requirement Phase Deploy Testing Testing
4 Which of the following testing is also known as white-box testing? Structural testing Error guessing Design None of Structural
5 Which of the following testing is related to the boundary value analysis? White box and White-box testing Black None of Black box
6 Functional testing is a ------? Test design Test level SDLC Test type Test type
7 What are the different levels of Testing? Integration testing Unit testing System All of the All of the
8 White box testing techniques are? Statement coverage Decision coverage Data All of the All of the
9 In which environment we can performed the Alpha testing? User's end Developer's end User's None of Developer'
10 What is the best time to perform Regression testing? After the software As frequently as When Both Both
11 Cyclomatic complexity is? White-box testing Black box testing Grey All of the White-box
12 Which testing technique is used for usability testing? White-box testing Grey box testing Black Combinati Black Box
13 Which is not the right approach of Incremental testing approach? Big bang approach Top-down Functio Bottom-up Big bang
14 In which environment we can performed the Beta testing? User's and Developer's end User's None of User's end
15 The test levels are performed in which of the following order? Unit, Integration, It is based on the Unit, Unit, It is based
16 Which of the below testing is related to Non-functional testing? Unit Testing Black-box Testing Perfor None of Performan
17 Which of the below testing is related to black-box testing? Boundary value Code path analysis Basic None of Boundary
18 What is component testing? White-box testing Grey box testing Black Both a & c White-box
19 Does the customer get a 100% bug-free product? roduct is old Developers are The All of the The testing
20 Exploratory testing is a -----? Experience-based White Box Test Black Grey Box Experience