Sie sind auf Seite 1von 29

MOCK TEST OF OPERATING SYSTEM [1] Which of the following computer system components provides interface for user

interaction? Choice a terminal Choice b computer Choice c processor Choice d file [3]________ processes help to organize manpower that carry out the system development work for system efficiency & effectiveness. Choice a formal Choice b management Choice c informal Choice d ad-hoc [4]The creation of a new system in business involves which of the following activities Choice a choosing the right problem to solve Choice b proposing a feasible way to solve Choice c describing solution in a system specification Choice d all of the above [5]A system can be made of any number of ________ Choice a supersystems Choice b subsystems Choice c processors Choice d system boundaries [6]An important principle in system behavior is ________ Choice a goal setting Choice b system boundary Choice c feedback Choice d system output [7]________ is a set of interacting components that operate together to accomplish a purpose. Choice a System Choice b processing Choice c programming

Choice d printing [8]_______ principle defines the components that make up the system Choice a system boundary Choice b system input Choice c system output Choice d goal-setting [9]A computer system is made up of which of the following components Choice a a computer Choice b a file Choice c a terminal Choice d all of the above [10]_______ approaches are used to build simple informational support needs like address book or spreadsheet for accounting. Choice a formal Choice b informal Choice c ad-hoc Choice d none of the above [11]Which of the following computer system components is used for data storage? Choice a computer Choice b terminal Choice c file Choice d processor [12]Anything outside the system boundary is known as the _________. Choice a system input Choice b system output Choice c Goal-setting Choice d system environment [13]A system which provides information to people in an organisation is called _________ Choice a processing system Choice b information system Choice c communication system Choice d priviledged system

[14]________ approach is needed to develop larger systems, which are becoming increasingly complex. Choice a formal Choice b informal Choice c ad-hoc Choice d none of the above [15]The _________ acts as input to the system and the_________ acts as output to the computer system. Choice a terminal, data storage Choice b data storage, terminal Choice c processor, terminal Choice d terminal, processor [16]________ principle defines exactly what the system is supposed to achieve Choice a system input Choice b system output Choice c Goal-setting Choice d system boundary [17] An information system that uses computers is __________ system. Choice a information system Choice b computer-based information system Choice c communication system Choice d processing system [18] A computer based information system (CBIS) involves which of the following elements Choice a procedures Choice b data Choice c both 1 & 2 Choice d processes [18]A computer based information system (CBIS) involves which of the following elements Choice a procedures Choice b data Choice c both 1 & 2 Choice d processes

[20]________ information system application captures and processes data about business transactions Choice a MIS Choice b EIS Choice c TIS Choice d DSS [21]Workgroup is a group of people ---Choice a working to a common goal. Choice b at the lowest level of hierarchical structure. Choice c working at the strategic level. Choice d Having same skill sets. [22]Before learning the process of building information systems you would need to understand the _______ that you are trying to build Choice a product Choice b process Choice c project Choice d all of the above [23]How does the subsystems communicate with each other Choice a through DMA Choice b through processor Choice c by passing messages between themselves Choice d all of the above [24]A _______ are the physical objects & information that cross the boundary to enter it from its environment Choice a Goal-setting Choice b systems inputs Choice c system boundaries Choice d system environment [25]_________ help us to understand complex system in nature Choice a System theory Choice b project theory Choice c process theory Choice d information theory [26]Which of the following are the principles of systems which are with system

structure and system behavior? Choice a Goal-setting Choice b System boundary Choice c systems inputs Choice d all of the above [27]_______ is the idea of monitoring the current system output and comparing it to the system goal Choice a feedback Choice b goal-setting Choice c message passing Choice d system environment [28]Which of the following functions are common to the various types of information systems Choice a Communication system Choice b Collaboration System Choice c Office Automation Systems Choice d all of the above [29]In an information system the business process is devoted to Choice a capturing Choice b transmitting Choice c storing data as input Choice d all of the above [30]Documents include Choice a system specifications Choice b actual programs Choice c designs Choice d all of the above MOCK TEST SOFTWARE ENGINEERING [1] Which of the following phase produces the executable program? Choice a Design Choice b Testing Choice c Implementation Choice d Mentainence

[2] Which software developemnt phase produces a Functional Specification Document? Choice a Requirement phase Choice b Design phase Choice c Coding phase Choice d Feasibility specification phase [3] Which organisation conined or introduced the term Software Engineering? Choice a IEEE Choice b NATO Choice c ISRO Choice d ISRO [4] When does the Testing Phase start in the software Development? Choice a Along with Requirment Pahse Choice b After Requirment Pahse Choice c After Design Pahse Choice d Along with Coding Pahse [5] In Software engineering, which of the following provides an automated support for the process and methods? Choice a Quality focus Choice b Process Choice c Methods Choice d Tools [6] While describing the Software Process it said that software process gives . . . . . . . . . . to organizational activity. Choice a structure and quality Choice b focuse and performance Choice c stability and control Choice d structure and control [7] . . . . . . . . . . is taks of precisely describing the software to be written possibly in regirous way. Choice a Specification Choice b Requirment gathering Choice c Requirment design Choice d Requirment processing [8] Project Management framework is built on how many knowledge functional areas as defined by PMI? Choice a FOUR Choice b SIX Choice c NINE Choice d TEN

[9] The project Management framwork as identified by PMI as one functional area as communicaion. The communication Management includes capturing. . . . . . . . . . ., . . . . . . . . . . Choice a Project related data and Project activities Choice b Project Quality and Risk. Choice c Project related data and Project Boundaries [10] Initiating Process -. . . . . . . . . . . . . . . . the project. Choice a is started by Sponsors and Customers for Choice b is started by Suppliers and Developers for Choice c Starts and Defines Choice d Defines and Authorizes [11] The Process is a set of . . . . . . . . . . . . . . . . . . that are performed to achive a presepecified set of product, result or services. Choice a interdepender action on modules Choice b interrelated actions and activities Choice c interdependent activities and functions Choice d implemented functions and modules [12] Choose correct type of person responsible for managing the project. Choice a Customer Choice b Sponsor Choice c Supplier Choice d Project manager [13] The Monitering groups function is to . . . . . . . . . . . . . . . . . project plan, Choice a measure and quality check Choice b monitor and develop Choice c control and measure Choice d measure and moniter [2] Which software developemnt phase produces a Functional Specification Document? Choice a Requirement phase Choice b Design phase Choice c Coding phase Choice d Feasibility specification phase [3] Which organisation conined or introduced the term Software Engineering? Choice a IEEE Choice b NATO Choice c ISRO Choice d ISRO [4] When does the Testing Phase start in the software Development? Choice a Along with Requirment Pahse

Choice b After Requirment Pahse Choice c After Design Pahse Choice d Along with Coding Pahse [5] While describing the Software Process it said that software process gives . . . . . . . . . . to organizational activity. Choice a structure and quality Choice b focuse and performance Choice c stability and control Choice d structure and control [6] In Software engineering, which of the following provides an automated support for the process and methods? Choice a Quality focus Choice b Process Choice c Methods Choice d Tools [7] . . . . . . . . . . is taks of precisely describing the software to be written possibly in regirous way. Choice a Specification Choice b Requirment gathering Choice c Requirment design Choice d Requirment processing [8] Project Management framework is built on how many knowledge functional areas as defined by PMI? Choice a FOUR Choice b SIX Choice c NINE Choice d TEN [9] The Process is a set of . . . . . . . . . . . . . . . . . . that are performed to achive a presepecified set of product, result or services. Choice a interdepender action on modules Choice b interrelated actions and activities Choice c interdependent activities and functions Choice d implemented functions and modules [10] Initiating Process -. . . . . . . . . . . . . . . . the project. Choice a is started by Sponsors and Customers for Choice b is started by Suppliers and Developers for Choice c Starts and Defines Choice d Defines and Authorizes [11] Choose correct type of person responsible for managing the project. Choice a Customer

Choice b Sponsor Choice c Supplier Choice d Project manager [12] The project Management framwork as identified by PMI as one functional area as communicaion. The communication Management includes capturing. . . . . . . . . . ., . . . . . . . . . . Choice a Project related data and Project activities Choice b Project Quality and Risk. Choice c Project related data and Project Boundaries Choice d Projetct Scope and Budjet. [13] The Monitering groups function is to . . . . . . . . . . . . . . . . . project plan, Choice a measure and quality check Choice b monitor and develop Choice c control and measure Choice d measure and moniter [14] While explaining metrics and measurment The Measurement data is most reliable when it is generated as . . . . . . . . . . Choice a byproduct of producing a product or service Choice b process generated product. Choice c direct product of process and design Choice d methoeds used specification [15] A metric is derived (calculated or composite) unit of measurment that cannot be directly observed . Choice a but is to give one measured parameter result. Choice b but is created by combining or relating two or more measures. Choice c by combining the two measuers like LOC and SIZE. Choice d by combining the tthree measuers like LOC, SIZE and Function Point. [16] In Function Point Analysis - How many characteristics are used to calculate function point count? Choice a FIVE Choice b SIX Choice c TWELVE Choice d FOURTEEN [17] In Preliminary estimates for the project we are required to determine . . . . . . . . . of a project. Choice a Top-Down Estimation Choice b Expert Judgment Choice c The feasibility Choice d Project planning

[18] While measuring the software product during development which TWO Direct measurment techniques can be used ? Choice a Function Point, Budgeting Choice b Size of code Choice c Module number size Choice d Process Measurment, Finction Point [19] SCM manages the versions along with change descriptions to . . . . . . . . . . . . between the versions. Choice a help to match between the versions. Choice b help to differentiate Choice c establish standard norms Choice d establish function maping [20] SCM maintains different . . . . . . . . . . . . . . . . . of the Software system for the software developer. Choice a Plan Choice b Activity Choice c Versions Choice d Products [21] What is another popular name for Software Configuration Management ? Choice a Selection and control Model Choice b Configuration and Measrurment Process Choice c Change Control Management Choice d Software Setting Process [22] SCA meas : . . . . . . . . . . . . . . . . . Choice a Software Configuration Analysis Choice b Software Configuration Audit Choice c Selected Configuration Analysis Choice d Software Control Audit [23] Real Time software . . . . . . . . . . real world events as they occure. Choice a Operates / Process / Manages Choice b Process / Controls Choice c Controls and Manages Choice d Moniters / Analyzes / Controls [24] Artificial Intelligence software makes use of . . . . . . . . . . . . . . .to solve complex problems that are not amenable to computation or straight forward analysis. Choice a Object Orineted Programs and Structured Analysis Choice b Object Orineted Programs and Structured Design Choice c Non Numerical Algorithms Choice d Numerical Algorithms and Logic Programming

[25] Choose correction option by selecting correct process. Software engineering comprises of . . . . . . . . . . . . . . . . . i) Quality focus ii) Process iii) functions iv) Methods v) Tools Choice a i, ii, iii, iv Choice b ii, iii, iv, v Choice c i, ii, iv, v Choice d i, ii, iii, v [26] Choose correction option by selecting correct group of interacting in the software process. i) Users and designers ii) Customer and Users iii) Designers and evolving tools iv) Users and evolving tools Choice a i, ii, iii Choice b ii, iii, iv Choice c i, ii, iv Choice d i, iii, iv [27] While describing the Five Maturity levels of CMM. The level 1 is defined as : The software process is characterized as . . . . . . . . .. Choice a Repeatable and estabilished process. Few processes are defined, and success depends on individual effort and heroics. Choice b ad hoc, and occasionally even chaotic. Few processes are defined, and success depends on individual effort and heroics Choice c Key process are not defined and followed and and success depends on individual effort and heroics. Choice d None of the above [28] Choose correction option by selecting correct activities required for Project managements application to meet project requirements. i) Knowledge ii) Skills iii) methodes iv) Tools v) Techniques vi) process Choice a i, ii, iii, iv Choice b ii, iii, iv, vi

Choice c i, ii, iv, v Choice d ii, iii, v, vi [29] Choose correction option by selecting correct measutment techniques give below : Measurement can be used . . . . . . . . . . . . . . . . . i) To Gauge The Status ii) Effectiveness iii) As tool for management iv) Customer Satisfaction v) Product Quality vi) Efficiency Of Processes Choice a i, ii, iii, iv, v Choice b ii, iii, iv, v, vi Choice c i, ii, iv, v, vi Choice d ii, iii, iv, v, vi [30] Choose correction option by selecting correct measutment techniques give below : The metrics and models are used to estimate and . . . . . . . , . . . . . . . . . ., and . . . . . . .... i) Predict product costs ii) Modularization iii) Schedules iv) To measure productivity v) Product Quality vi) Cohesion Choice a i, ii, iii, iv Choice b ii, iii, iv, vi Choice c i, iii, iv, v Choice d ii, iii, v, vi MOCK TEST ASP.NET [1] Which of the following statements are correct about the C#.NET code snippet given below? int i ; int j = new int( ) ; i = 10 ; j = 20 ; String str ; str = i.ToString( ) ; str = j.ToString( ) ; Choice a This is a perfectly workable code snippet (a) Choice b Since int is a primitive, we cannot use new with it. Choice c Since an int is a primitive, we cannot call the method ToString( ) using it. Choice d i will get created on stack, whereas j will get created on heap [2] By which property of checkbox HTML server control we can get to know whether the checkbox is selected or not? Choice a OnSubmit Choice b Value

Choice c Checked (A) Choice d Selected [3] Which of the following is the correct syntax for the GridView? Choice a Choice b Choice c (A) Choice d [4] What does HTMLTable Control do? Choice a It creates the Table within the form. Choice b It deletes the Table within the form. Choice c It selects the Table within the form. Choice d It modifies the Table within the form. [5]Which of the following statements are true about compilation of .aspx pages in ASP.NET? Choice a All .aspx pages are compiled when the application starts. Choice b An .aspx page is compiled for every request. Choice c An .aspx page gets compiled when first request is made for it.(a) Choice d All .aspx pages get compiled when the session state starts. [ 6]Which is the correct syntax for include directive in ASP.NET? Choice a (a) Choice b <% @ include attribute="attr1" %> Choice c <% #include pathtype = filename %> Choice d <% @include pathtype = filename %> [8] In ASP.NET which of the following properties is used for ascertaining whether the page is being loaded in response to a client postback, or is it being loaded and accessed for the first time? Choice a Page.IsReusable Property Choice b Page.IsValid Property Choice c Page.Request Property Choice d Page.IsPostBack Property(a) [9] How we can control the vertical alignment of the cell in the HTML table control? Choice a ColSpan Choice b NoWrap Choice c VAlign (a) Choice d HAlign [10] What does AccessDataSource do? Choice a It is used for connecting to SqlServer 2005 Choice b It is used for connecting to Oracle DB Server Choice c It is used for connecting to SqlServer

Choice d It is used for connecting to MS Access Database [11] Which of the following statements are correct?I. An event is a way for a class to provide notifications.II. Events use delegates to provide type-safe encapsulation of the methods that will be called when triggered. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [12]Which of the following keyword is used with an event to make the event available to callers at any time, even if no instance of the class exists? Choice a public Choice b static Choice c virtual Choice d abstract [13] Which WebForm Validator control will you use if you want to ascertain whether the values in two different WebForm controls are same or not? Choice a CheckValidator Control Choice b CompareValidator Control Choice c RangeValidater Control Choice d RequiredFieldValidator Control [14] Which of the following statements are correct?I. XML provides a way to describe structured data. II. XML tags are used to control the display and appearance of data. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [15] Which of the following statements are correct?I. We can define an limited set of XML tags. II. As XML tags are adopted throughout an organization and across organizations, data from all kinds of different data stores will be easier to exchange and manipulate. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [16] What is the correct syntax for Connection String? Choice a Data Source=.\SQL;Initial Catalog=Customers;Integrated Security=True; Choice b Data Source=.\SQLEXPRESS;Initial Catalog=Customers;Integrated Security=False;

Choice c Data Source=.\SQLServer;Initial Catalog=Customers;Integrated Security=True; Choice d Data Source=.\SQLEXPRESS;Initial Catalog=Customers;Integrated Security=True [17] What one of the following keyword is used in connection string for attaching to a file? Choice a DBFile Choice b AttachDBFilename Choice c DBFilename Choice d DBFilename= [18] Which of the following models correctly represents the scenario given below? - Connect to database server - Process data - Close connection Choice a Disconnected model Choice b Connected model Choice c ODBC model Choice d Data Access Object model [19] Malicious user input can be used to launch the attacks named Choice a SQL Virus Choice b SQL Injection Choice c SQL Injuries Choice d SQL Damage [20] Which of the following method is used in data binding expression syntax when data can be modified? Choice a Eval Choice b Bind Choice c Bind or Eval Choice d None of the above [21] What are the types of server controls that participate in declarative data binding model? Choice a DataBind controls and Data-bound controls Choice b Data source controls and Data-bound controls Choice c Data source controls and DataGrid controls Choice d Data source controls and Data-Ubound controls [22] Which control allows you to edit, delete, and insert records? Choice a GridView Choice b FormView Choice c DetailsView Choice d TagView

[23] Which of the following statements are correct? Choice a A. Procedural Programming paradigm is different than structured programming paradigm. Choice b B. Object Oriented Programming paradigm stresses on dividing the logic into smaller parts and writing procedures for each part. Choice c Classes and objects are corner stones of structured programming paradigm. Choice d Object Oriented Programming paradigm gives equal importance to data and the procedures that work on the data. \ [24] Which of the following statements are correct about the C#.NET code snippet given below? sample c ; c = new sample( ) ; Choice a It will create an object called sample. Choice b It will create a nameless object of the type sample. Choice c It will create an object of the type sample on the stack. Choice d It will create an object of the type sample either on the heap or on the stack depending on the size of the object. [25] Which of the following control searches the current naming container for the specified server control? Choice a GetType Choice b FindControl Choice c GetHashCode Choice d GetControl [26] What data types do the RangeValidator controls support in ASP.NET? Choice a Integer, Decimal, Double Choice b Date, Decimal Choice c Integer, String, Date Choice d String, Decimal [27] Which of the following statements are correct? I. XML Schemas support reusable types and allow to create new types using inheritance. II. XML Schemas does not allow to group elements to control the recurrence of elements and attributes. III. While creating XML Schemas the individual elements and attributes are defined and valid types are assigned to them. Choice a Only I and II are correct. Choice b Only I and III are correct. Choice c Only II and III are correct. Choice d I, II and III are correct.

[ 28] Suppose multiple clients access multiple business components which in turn access or modify the data stored in different databases. Which of the following application type perfectly models this scenario? Choice a N-Tier Application Choice b Single Tier Application Choice c Two Tier Application Choice d Three Tier Application [29] A derived class can stop virtual inheritance by declaring an override as Choice a Inherits Choice b extends Choice c sealed Choice d NotInheritable

MOCK TEST STATISTICAL TECHNIQUES [1] The scale of measurement for the variable weight of new born babies is________________ Choice a Ordinal Choice b Nominal Choice c Interval Choice d Ratio [2] The scale of measurement for the variable eye color is________________ Choice a Ordinal Choice b Nominal Choice c Interval Choice d Ratio [3] 3) The most appropriate diagram to represent data on blood glucose level of 100 patient is____ Choice a Bar chart Choice b Histogram Choice c Multiple bar chart Choice d Pie chart [4] Cumulative frequency distribution are represented in graphic form by __________ Choice a Histogram Choice b bar chart Choice c Ogive curves Choice d scatter plot

[5] For following data on survival times,1.4, 1.7, 2.3, 2.5, 3.2, 3.8, 38.which average is appropriate?______________. Choice a Mean Choice b Mode Choice c Median Choice d geometric mean [6] The relative measure of dispersion is Choice a Range Choice b coefficient of range Choice c SD Choice d variance [7] The mean systolic blood pressure of 100 individuals is 128 and SD is 16. then percent coefficient of variation equals Choice a 0.16 Choice b 0.125 Choice c 12.5 Choice d None of these [8] In variance, the average distance of the individual observations is calculated from Choice a A.M. Choice b Median Choice c Mode Choice d SD [9] Data is recorded on diagnoses of patient seen in emergency department of city hospital. In this case which average is appropriate?_________ Choice a Mean Choice b Mode Choice c Median Choice d Combined mean [10] The average of 5 observations is 20. When a constant c is added to each observation the average changes to 24. It gives that value of c is ___________. Choice a 20 Choice b 4 Choice c -4 Choice d 24 [11] Distribution of ages of college students has mean 23 years and sd 3. The second number namely 3, is measured in units of Choice a years Choice b squared years

Choice c nothing, it is a pure number and no units are needed Choice d depends on the value [12] For the data set {9, 7, 8, 10, 40, 5, 6, 8, 9, 8}, median equals Choice a 40 Choice b 8 Choice c 22.5 Choice d 8.5 [13] The average of numbers x, y and z is 7 and average of x and y is 5. Value of z is Choice a 7 Choice b 8 Choice c 11 Choice d 4 [14] Consider the following table. Data on time spent by a fox at a food source Time in minutes Frequency 11-20 2 21-30 15 31-40 12 41-50 10 51-60 7 61-70 3 71-80 1 Total 50 Frequency curve of the above data is best described as Choice a unimodal Choice b symmetric Choice c bimodal and asymmetric Choice d unimodal and skewed to the right [15] Data was recorded on number of seeds per fruit for two new varieties V-1 and V-II. For determining better variety the appropriate measure is . Choice a Mean Choice b CV Choice c Mode Choice d Range [16] The average wage of 100 workers in a factory running in two shifts of 60 and 40 workers is 38. The average wage of 60 workers in morning shift is 40. Then the average wage of 40 workers in the evening shift is Choice a 35 Choice b 38

Choice c 36 Choice d 27 [17] The average of 10 observations is 35.5.Later it was found that an observation 45 was misread as 54. The corrected average is Choice a 34.6 Choice b 43.6 Choice c 35.5 Choice d 45 [18] A library has 800 books. The average cost of 600 books is $4 and the average cost of remaining books is $5. Average cost of a book is Choice a 4 Choice b 4.25 Choice c 4.5 Choice d none of a, b and c [19] Standard deviation of 20 observations is 25, if each observation is increased by 10 then SD will change to Choice a 35 Choice b 5 Choice c 2.5 Choice d 25 [20] To compare consistency of two players A and B, use of -------- is appropriate Choice a A.M and mode Choice b A.M and S.D Choice c r(A, B) Choice d mean deviation [21] Find the odd man out Choice a range, s.d., C.V. Choice b mean, median, mode Choice c mean, correlation coefficient, mode Choice d nominal, interval, ratio [22] Study the following statements: Statement A: As x increases, y increases Statement B: As x decreases, y decreases Statement C: As x increases, y decreases Statement D: As x decreases, y increases Which of the following is true? Choice a Statement A is true, but statement B is false Choice b Statement A is false but statement B is true. Choice c Both statements A and B are true. Choice d Both statements A and B are false

[23] I have a frequency distribution of students by their religion. It makes no sense to prepare Choice a cumulative frequency table Choice b cumulative relative frequency table Choice c percentile rank table Choice d any of the above [24] Statistics is a science of study of characteristics of Choice a an individual Choice b an average behaviour of all individuals in the sample Choice c population characteristics using sample data. Choice d all of these [25] For two data sets of 10 and 20 observations values of mean and standard deviations are respectively 100,15 and 120, 20. Combined variance of the two data sets will be approximately Choice a 18.33 Choice b 2250 Choice c 341.67 Choice d 306.25 [26] A car runs for t1 hours at v1kmph, t2 hours at v2 kmph. The average speed of the car for entire journey is Choice a (v1t1 + v2t2)/2 Choice b (v1+v2)/2 Choice c (v1t1 +v2t2)/(t1+t2) Choice d (v1+v2) /(t1+ t2) [26] A car runs for t1 hours at v1kmph, t2 hours at v2 kmph. The average speed of the car for entire journey is Choice a (v1t1 + v2t2)/2 Choice b (v1+v2)/2 Choice c (v1t1 +v2t2)/(t1+t2) Choice d (v1+v2) /(t1+ t2) [27] If everyone paid income tax equal to 10% of income, value f r for income and tax paid will be close to Choice a 0.00 Choice b -1.00 Choice c 1.00 Choice d none of the above [29] Decide without calculations which set has largest variability (all have the same mean namely 50) Choice a 40, 40, 50,60,60 Choice b 40,45,50,55,60

Choice c 40,43,50,58,60 Choice d 40,49,50, 51,60 [30] Which of the following is NOT a similarity between correlation coefficient and standard deviation? Choice a based on all observations Choice b range of possible values is limited Choice c widely useful Choice d none of the above MOCK TEST J2EE [1] Which of the following statements are correct? I. We can operate on chars as if they are integers. II. Java has a simple data type boolean for logical values. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [2] Which of the following statements are correct? I. Java manages the meaning of the high-order bit by adding an unsigned right shift operator. II. The Java run-time environment is free to use whatever size it wants, as long as the types behave as user declared them. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [3] Which of the following statements are correct? I. In Java octal values are denoted by a leading zero. II. In Java, the value 09 produces an error. Choice a Only I is correct. Choice b Only II is correct Choice c Both I and II are correct. Choice d Both I and II are incorrect. [4] Which of the following statements are correct? I. boolean data type is returned by all relational operators. II. When a boolean value is output by println( ), 1 or 0 gets displayed. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect.

[5] Which of the following statements are correct? I. The Java compiler checks all expressions and parameters to ensure that the types are compatible. II. In Java, we can assign a floating-point value to an integer. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [6] Which of the following statements are correct? I. In Java an int is always 32 bits regardless of the particular platform. II. Java supports unsigned, positive-only integers. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [7] Which of the following statements are correct? I. The long data type is the most versatile and efficient type. II. Data type determines behavior and not size. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [8] Which of the following statements are correct? I. The simple data types are defined to have an explicit range and mathematical behavior. II. In Java all data types have a strictly defined range. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [9] Which of the following statements are correct? I. The type float specifies a single-precision value that uses 64 bits of storage. II. Java uses Unicode to represent characters. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [10] Which of the following statements are correct? I. In Java, char is 8-bit type. II. We have negative chars in Java. Choice a Only I is correct.

Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [11] Which of the following statements are correct? I. Floating-point numbers are used when evaluating expressions that require fractional precision. II. Java implements the standard set of floating-point types and operators. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [12] Which of the following statements are correct? I. Integer literals create an int value. II. In Java, when a literal value is assigned to a byte or short variable, an error is generated even if the literal value is within the range of the target type. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [13] Which of the following statements are correct? I. In Java, a byte is a signed 8-bit type entity. II. The smallest integer data type is short. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [14] Which of the following statements are correct? I. In Java, variables of type int are commonly employed to control loops and to index arrays. II. Any time we have an integer expression involving bytes, shorts, ints and literal numbers, the entire expression is promoted to int before the calculation is done. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [15] Which of the following statements are correct? I. In Java, an integer literal cannot be assigned to a long variable. II. To specify a long literal, user needs to explicitly tell the compiler that the literal value is of type long by appending an upper or lowercase L to the literal. Choice a Only I is correct.

Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [16] Which of the following statements are correct? I. The operands of the arithmetic operators need not be always of numeric types. II. We can use arithmetic operators on boolean types. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [17] Which of the following statements are correct? I. Arithmetic operators can be used on char types. II. The minus operator has a unary form which negates its single operand. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [18] Which of the following statements are correct? I. Any type in Java including integers, floating-point numbers, characters and Booleans can be compared using the equality test and the inequality test. II. Only boolean types can be compared using the ordering operators. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [19] Which of the following statements are correct? I. For each left shift, the high-order bit is shifted out and lost and a zero is brought in on the left. II. When a left shift is applied to an int operand, bits are lost once they are shifted past bit position 63. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [20] Which of the following statements are correct? I. When the division operator is applied to an integer type, there will be a fractional component attached to the result. II. In Java, modulus operator cannot be applied to floating-point types. Choice a Only I is correct. Choice b Only II is correct.

Choice c Both I and II are correct. Choice d Both I and II are incorrect. [21] Which of the following statements are correct? I. The outcome of a left shift on a byte or short value will be long. II. When a negative byte or short value is promoted to int, the high-order bits will be filled with 0s. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [22] Which of the following statements are correct? I. The outcome of the relational operations is always a boolean value. II. The relational operators are used in the expressions that control the if statement and the various loop statements. Choice a Only I is correct. Choice b Only II is correct. Choice c Both I and II are correct. Choice d Both I and II are incorrect. [23] What will be the output of the code snippet given below? public class Main { public static void main ( String[ ] args ) { char z = 'A' + 55 ; System.out.print ( z ) ; } } Choice a W Choice b x Choice c y Choice d z [24] What will be the output of the code snippet given below? public class Main { public static void main ( String[ ] args ) { double a = 3.0, b = 4.0 ; double c = Math.sqrt ( a * a + b * b ) ; System.out.println ( c ) ; }

} Choice a 5.00 Choice b 5 Choice c 5.0 Choice d 5.000000 [25] What will be the output of the code snippet given below? public class Main { public static void main ( String[ ] args ) { int x ; x = 10 ; if ( x == 10 ) { int y = 20 ; System.out.println ( x + " " + y ) ; x=y*2; } System.out.println ( x ) ; } } Choice a 10 20 10 Choice b 10 20 40 Choice c 40 20 40 Choice d 20 20 10 [26] What will be the output of the code snippet given below? public class Main { public static void main ( String[ ] args ) { boolean b ; b = false ; b = true ; if ( b ) System.out.println ( "This is executed." ) ; b = false ; if ( b ) System.out.println ( "This is not executed." ) ; System.out.println ( 10 > 9 ) ; }

} Choice a This is not executed. false Choice b This is executed. 1 Choice c This is executed. true Choice d This is not executed. 0 [27] What will be the output of the code snippet given below? public class Main { public static void main ( String[ ] args ) { double pi, r, a ; r = 10.8 ; pi = 3.1416 ; a = pi * r * r ; System.out.println ( a ) ; } } Choice a 366.436224 Choice b 366.44 Choice c 366.43 Choice d 366.430000 [28] What will be the output of the code snippet given below? public class Main { public static void main ( String[ ] args ) { int x = 10, y = 20 ; boolean a, b ; a=!(x>y); b=x<y; System.out.print ( a + " " + b ) ; } } Choice a 0 1 Choice b false true Choice c 1 1 Choice d true true [29] What will be the output of the code snippet given below? public class Main {

public static void main ( String[ ] args ) { int i, j, k ; for ( i = 0 ; i <= 3 ; i++ ) { for( j = 0 ; j <= 3 - i ; j++ ) System.out.print ( "*" ) ; for ( k = 0 ; k <= i ; k++ ) System.out.print ( i ) ; } } } Choice a **********0123 Choice b **********0112223333 Choice c ****0***11**222*3333 Choice d 0112223333********** [30] Which of the following is the correct statement that you will add to the code snippet given below to print a character corresponding to value d + 1? public class Main { public static void main ( String[ ] args ) { double d = 98 ; // Add statement here } } Choice a System.out.println ( ( char ) ++d ) ; Choice b System.out.println ( ( unsigned char ) ++d ) ; Choice c System.out.println ( ++d ) ; Choice d System.out.println ( ++d.ToChar ) ;
ASp = http://sdrv.ms/12ouzwV J2ee = http://sdrv.ms/10KNvcV Statistics = http://sdrv.ms/12ov5v8 OS = http://sdrv.ms/12ovgGH soft engineering= http://sdrv.ms/12ovxt8