Você está na página 1de 10

Co-Teach Post Know Yourself - Foundation Program

Question 1 Marks: 1 Aggregation is a kind of relation ship Choose one answer. a. uses- a b. is-a c. to-a d. has-a Question 2 Marks: 1 Which of the following can detect Software Errors ? i. Examining the functional user interface ii. Unit testing iii. Code Review Choose one answer. a. only iand ii b. only i c. only ii and iii d. All the three Question 3 Marks: 1 Which of the following is true about Muliple Inheritance: a) A class derives the attributes and methods from more than one class. b) Multiple inheritance is supported by all OO languages as it allows designers to create complex classes. c) A class derived out of muliple inheritance cannot be used as a super class in any case. d) Muliple Inheritance is only a concept and it is not implementable. Choose one answer. a. Only d b. Only b c. Both b and c d. Only a Question 4 Marks: 1 SQL was developed as an integral part of Choose one answer. a. A hierarchical database b. A data warehouse

c. A flat file database d. Relational Database Question 5 Marks: 1 Find the output of the following program: #include<stdio.h> void fnCompute(int aiTemp[]) { int iCount; for (iCount=0;iCount<3;iCount++) { aiTemp[iCount] = aiTemp[iCount] + 50; } } main(int argc, char **argv) { int aiArray[]={100,200,350}; int iValue; fnCompute(aiArray); for (iValue=0;iValue<3;iValue++) { printf("%d ",aiArray[iValue]); } return 0; } Choose one answer. a. 150 250 400 b. 100 200 350 c. 0 0 0 d. Prints three garbage values Question 6 Marks: 1 For testing a function that should take an integer between 3 and 7 as the input, the tester uses the following test cases - One integer less than 3, one integer between 3 and 7 and one integer greater than 7. The test cases are generated using __________ Choose one answer. a. Boundary Value Analysis b. Random Generation c. Equivalence Class Partitioning d. Error Guessing Question 7 Marks: 1

Consider the following code snippet: class Animal { public void move() { System.out.println("Animals can move"); } } class Cat extends Animal { public void move(){ System.out.println("Cats can run"); } public void meow(){ System.out.println("Cats can meow"); } } public class TestCat { public static void main(String args[]){ Animal a = new Animal(); Animal b = new Cat(); a.move(); b.move(); b.meow(); } } Will there be any compile time error produced by this code? If yes, which are the line(s) producing that error? Choose one answer. a. Compilation error will be caused by the following lines: b.move(); b.meow(); b. Compilation error will be caused by the following line: b.meow(); c. There will not be any compilation error d. Compilation error will be caused by the following lines: a.move(); b.move(); b.meow(); Question 8 Marks: 1 Which is NOT a Pre-Requisites for the code Review? Choose one answer. a. The code must be readable b. The code should compile and execute with zero errors and warnings c. The source file should contain proper documentation d. System testing should have been completed Question 9 Marks: 1 Unit Testing typically tests

Choose one answer. a. Non- functionality of the module b. Integration of the module c. Functionality of the module d. Interfaces of the module Question 10 Marks: 1 Which of the following select statement is correct to find out the name, position, and salary from the employee table with the highest salary. Choose one answer. a. Select name, position, max (salary) from employee group by name, position; b. Select name, position, salary from employee where salary=(select max(salary) from employee); c. Select name, position, max (salary) from employee group by name d. Select name, position, max (salary) from employee Question 11 Marks: 1 Identify the entity relationship types - An employee can work on more than one project, and a project can have more than one employee assigned. You may choose to create a table with both the Employee Number and the Project Number in the same table. Choose one answer. a. Many-to-Many b. Many-to-One c. One-to-One d. One-to-Many Question 12 Marks: 1 Table Trans( key_no, transaction_no, transaction_amt); What is the output of the following query? Select key_no, transaction_no, Sum(Transaction_amt) from Trans; Choose one answer. a. All unique combination of key_no and transaction_no with sum of transaction amount b. Error c. All the rows from the table d. No rows at all Question 13 Marks: 1

Assume that Table A is joined to Table B. A one to one join (an inner join or equijoin) Choose one answer. a. Displays all rows (records) for table A and only those in table B that have a matching value b. Is when table B contains only one matching record for each key in table A. c. Displays rows (records) only when the values of the Key in table A and the foreign key in table B are equal d. Displays all rows (records) for table B and only those in table A that have a matching value Question 14 Marks: 1 User acceptance test plan and System test plan can be written immediately after___________ is complete. Choose one answer. a. Requirements gathering b. Testing c. Problem Defintion d. Analysis Question 15 Marks: 1 Which among these is NOT in the Software Development Process Lifecycle ? Choose one answer. a. Design of Systems (Architectural & Infrastructure Design, Detailed Design, etc) b. Configuration Management c. Requirements (Elicitation, Analysis & Specification) d. Implementation & Maintainance Question 16 Marks: 1 There are two Lists. The first list is a class that describe the implementation objects. The second list is a list of operations. Select the operations that make sense for objects in that class. Class : Variable length array ordered collections of object, indexed by an integer, whose size can vary at run time Operations : a) Add add an object to end of the list b) Copy make a copy of a collection c) Count return the number of elements in a collection d) Intersect determine the common members of two collections. Choose one answer. a. only a b. All a b c and d

c. Only c d. a and c Question 17 Marks: 1 Which of the following is is prepared towards the end of the design phase and is used for unit testing the software or code ? Choose one answer. a. Defect tracking system b. Debugging c. Integration test plan d. Unit test plan Question 18 Marks: 1 The ER model is meant to Choose one answer. a. replace relational design b. enable detailed descriptions of data query processing c. enable low level descriptions of data d. be close to a users perception of the data Question 19 Marks: 1 _________ register keeps track of the address of the next instruction to be executed. Choose one answer. a. XR (Index Register) b. AC (Accumulator) c. PC (Program Counter) d. AR (Address Register) Question 20 Marks: 1 The Class in UML contains a) Class name b) Data c) Member functions Choose one answer. a. Only a b. Only b c. a and c

d. All a,b and c Question 21 Marks: 1 What would be the output of following code? #include <stdio.h> void fnDisplay(int iValue) { if(iValue > 0) fnDisplay(iValue-2); printf("%d ",iValue); } int main(int argc, char **argv) { fnDisplay(10); return 0; } Choose one answer. a. 2 4 6 8 10 b. 0 2 4 6 8 10 c. 10 8 6 4 2 d. 10 8 6 4 2 0 Question 22 Marks: 1 Which of the following refers to the different set of activities to ensure that Software that has been built is traceable to the customer requirements? Choose one answer. a. Verification & Validation b. Verification c. Validation d. None of the options Question 23 Marks: 1 Which one of the following terms must relate to "polymorphism" a) Static allocation. b) Static typing. c) Dynamic binding. d) Dynamic allocation. Choose one answer. a. Option d b. Option c

c. Option a d. Option b Question 24 Marks: 1 Sequence of instructions, which manipulated global data and as size increases, code becomes more complex to maintain is a)Unstructured b)Procedural programming c)Object oriented programming Choose one answer. a. Only b b. Both a & b c. Both b &c d. Only a Question 25 Marks: 1 Which of the following memory management technique do NOT need contiguous physical memory space for loading a complete program in the main memory? Choose one answer. a. Variable partition b. Fixed Partition c. Compaction d. Paging Question 26 Marks: 1 Assume that you have created a table student and if you want to return all the records having student name starting letter a. which of the following are correct statement. Choose one answer. a. select * From student where name like = %a; b. Select * From student where name = %a%; c. Select * From student where name like = _a%; d. Select * From student where name = ?a%; Question 27 Marks: 1 Consider the following schema Lending-schema=(Branch-name, branch-city, assets, customer-name, loan-number, amount) The functional dependency is

Branch-name ---> assets branch-city Loan-number ---> amount branch-name check if the above relations is in BCNF, if not decompose the above relation so that it is in BCNF. Choose the correct decomposed table, which is in BCNF. Choose one answer. a. Branch-schema (branch-name, branch-city, assests) Loan-schema (loan-number, branchname, amount) b. Branch-schema (branch-name, branch-city, assests) Loan-schema (loan-number, branchname, amount) Borrower-schema (customer-name, loan-number) c. Branch-schema (branch-name, branch-city, assests) Loan-info-schema(branchname,customer-name,loan-number,amount) d. The schema is in BCNF Question 28 Marks: 1 class Operators { public static void main(String[] args) { test("four"); test("tee"); test("to"); } public static void test(String str) { int check = 4; if (check = str.length()) { System.out.print(str.charAt(check -= 1) +", "); } else { System.out.print(str.charAt(0) + ", "); } } } Choose one answer. a. r,t,e b. Compilation fails due to Incompatible types c. r, t, t, d. r, e, o Question 29 Marks: 1 Calculate the average waiting time with respective to preemptive Shortest Job First (SRT) Scheduling algorithm. (Use FCFS in case of tie) Process Arrival Time CPU Time P1 2 4

P2 0 10 P3 3 2 Choose one answer. a. 4 b. 3.5 c. 3.33 d. 2.66 Question 30 Marks: 1 Find the output of the following program: #include <stdio.h> typedef struct _date { int iDay =10 ; int iMonth = 05 ; int iYear =2005 ; }date; int main(int argc, char **argv) { date sDob; printf("%d-%d-%d",sDob.iDay,sDob.iMonth,sDob.iYear); return 0; } Choose one answer. a. 0-0-0 b. Error. The members of a structure cannot be initialized within structure declaration c. 25-6-2005 d. Garbage Value-Garbage Value-Garbage Value Time Remaining

Você também pode gostar