1. In which of the following kind of data manipulation, Array is preferred?
A. All B. Data insertion C. Data deletion D. Data accessibility
2. The use of continue statement is - A. to continue from the first line of the program B. to take the program control out of the loop C. to ignore rest of the task and takes program control out of the main function D. to ignore the remaining statements of the loop for that iteration
3. A function definition in a C program A. Must have a return statement B. Must have a body having at least one statement C. Must have arguments D. All
4. In which of the following loop, the continue statement transfers the control to the increment step? A. if condition B. for C. while D. do while
5. The local variables are stored into ___________. A. code segment B. heap C. data segment D. stack
6. Unit Testing typically tests A. Interfaces of the module B. Integration of the module C. Functionality of the module D. Non- functionality of the module
7. In top down programming -- i] Software is collection of modules ii] Module is a collection of functions A. both i] and ii] are not true B. only i] is true C. both i] and ii] are true D. only ii] is true
8. Which among the following statements is correct? A. A function should contain only one return statement and it should be the last statement of the function B. A function should contain only one return statement C. A function can have any number of return statements, but only one among those will get executed in a call D. A function should contain a return statement
9. Variables that are both alive and active throughout the entire program are known as A. Local variable B. None C. static variable D. Global Variable
10. Which one of the following statements about pointer is FALSE? A. Pointer variable is used to hold the address B. Pointer variables do have data types. C. The sizes of all types of pointer variables are different D. No memory is allocated for pointer variable
11. Static variable A. May change its value but starts with a constant static value every time the function is called B. Is just a name to indicate a global variable C. May change its value but retains its value and starts with its previous value it had before exiting when the function containing it is called successively D. Has a static value which never changes
12. Choose the correct function call from the following information? int Arr[10]; int Max( int a[], int k); //fuction prototype A. int Max(Arr[], 2) B. Max(Arr, 2) C. Max(Arr[], 2) D. Max (Arr[10],2)
13. What is the output of the following program? #include #define N 4 main( ) { int a[N] = { 2, 3 } ; int b[N-5]; } A. compile error: array size cannot be a symbolic constant B. compile error: array cannot have negative subscript C. compile error: array not initialized D. program compiles, but gives a run time error
14. "An integer element k is to be searched in a sorted array of integers of size 1024 using binary search the maximum number of comparisons would be " A. 512 B. 10 C. 2 power 1024 D. 1024
15. Which phase of UI development has Screen Prototypes as the artifact? A. Coding Phase B. Testing Phase C. Requirement Phase D. Design Phase
16. Which option does not come under Code Tuning Techniques? A. Jamming the Loop B. Use if-then-else statements instead of case statements C. Unrolling of Loops D. Using sentinels
17. What does the term 'call-by-reference' refer to? A. Passing address to a variable into a function. B. A function that does not return any values C. Choosing a random value for a variable. D. Passing a copy of a variable into a function.
18. If p and q are assigned the values 2 and 3 respectively. Then the statement p = q++ A. assigns a value 5 to p B. gives an error message C. assigns a value 3 to p D. assigns a value 4 to p
19. The parameters that are used in function call are ____________ parameters and those in the function declaration are called __________________ parameters. A. dynamic, static B. formal, actual C. static, dynamic D. actual, formal
20. Primitive data types supported in C language are A. int, signed int, unsigned int, long int B. int, long int, char, unsigned char C. int , char, string, float D. char, int, float, double
21. Which of the following control statements comes under entry controlled. i ) for ii)while iii)do while A. i ,ii ,iii B. i & iii C. i & ii D. ii & iii
22. Choose the correct alternative: Global Variables are stored in A. register B. static area reserved by compiler C. queue D. stack
23. which of the following statements is false? A. Simple variables can store a single value. B. Pointer variables can point to other variables C. Array variables can store a collection of elements with the same type. D. Simple variables can store a collection of elements with the same type.
24. Which of the following is an illegal value for the case in a switch block? A. 100 B. -200 C. a D. 1
25. Result of the following program is main() { int i=0; for(i=0;i<20;i++) { switch(i) { case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break; } printf("%d,",i);}} A. 5,9,13,17 B. syntax error C. 16,21 D. 12,17,22
26. Function in C has one of the following structure A. type name (number of parameters, formal parameters) { statements} B. name(number of parameters, formal parameters) C. type name (formal parameters) { statements} D. name(number of parameters, actual parameters)
27. What is the output of the following program? #include f() { return 10;
}
void main() { printf("%d",f(10,20,30)); printf("%d",f(10,20)); } A. runtime error B. compilation error C. 0 D. 10, 10
28. What will be the output of following code? 1. int i=23,j=4,c=0; c=i++-++j; printf("%d %d %d",i,j,c); A. 24 4 20 B. 23 5 18 C. 24 5 18 D. 24 5 19
29. What is the output of the following program? #include void main() { int a=10; switch(a) { default: printf(" default case"); break;
case 20: printf("Twenty ");
case 10: printf("Ten ");
case 30:printf("Thirty ");(no space between : and printf . is it Compilation error) } } A. Ten Thirty B. default case C. compile time error D. Ten
30. What is the output of the following program? #include int a = 10; void main() { int a=20; { printf("a= %d " , a); } } A. junk value is printed B. a= 10 C. a= 20 D. a=0
31. Which of the following is a structure that provides faster access to the rows of a table based on the values of one or more columns? A. View B. Table C. Triggers D. Index
32. Age of a student can be calculated from students' date of birth. Age is A. Both Stored attribute and Derived attribute B. Derived attribute C. Arrived attribute D. Stored attribute
33. Dept No is the primary key of the Dept Table. Dept No is ___________ key of the Employee table A. Super Key B. Next key C. Foreign key D. Native key
34. If one employee can become the head of a department, then employee participation in the relation is A. Partial B. Total C. In-Complete D. Complete
35. The concept of locking can be used to solve the problem of A. update B. All of these C. uncommitted dependency D. deadlock
36. "A user 'X' submits 'n' number of tasks together for processing. This kind of Processing is known as" A. Batch processing B. Off line processing C. Group processing D. On line processing
37. In the traditional file based approach of data storage, the same data may have to be stored in more than one place. This is the issue of A. Abstraction B. Polymorphism C. Redundancy D. Duplication
38. In the relationship Prescription connects Doctor, patient, medicine. This is an example of A. Unary relationship B. Binary relationship C. one-to one relationship D. Ternary relationship
39. If every non-key attribute is functionally dependent on the primary key , then the relation will be in A. 3 NF B. BCNF C. 1 NF D. 2 NF
40. The relationship between doctor and patient, the notation used for representing doctor is A. Rectangle B. Circle C. Triangle D. Diamond
41. Database backup and recovery mechanisms are framed by A. Database Administrator B. Programmer C. End user D. Database designer
42. Which data model is independent of both the DBMS software and the hardware? A. External B. Conceptual C. All D. Internal
43. Data items grouped together for storage purposes are called a A. string B. title list C. record D. list
44. Which of the following aggregate functions does not ignore nulls in its result? A. COUNT B. MIN C. COUNT(*) D. MAX
45. File system which stores all files at the same level A. Network system B. Group file system C. Hierarchical system D. Flat file system
46. When each row of a table is joined with each row of the other table, it is called A. Outer Join B. self join C. inner join D. cartesian join
47. A primary key if combined with a foreign key creates A. network model between the tables that connect them B. One-to many relationship between the tables that connect them C. many-to many relationship between the tables that connect them D. parent child relationship between the tables that connect them
48. Redundancy is dangerous as it is a potential threat to data A. Sufficiency B. Integrity C. Consistency D. atomicity
49. "log" registry of DBMS contains A. log in time of users B. Data Base modifications C. creation time of Data Base D. user names
50. The employee salary should not be greater than Rs. 2000. This is A. over-defined constraint B. referential constraint C. feasible constraint D. integrity constraint
51. Which of the following is not a DDL command? A. Commit B. Truncate C. Alter D. Create
52. Which of the following is true of a network structure? A. It is conceptually simple B. It allows a many-to-many relationship C. It will be the dominant database of the future D. It is a physical representation of the data
53. Multi-valued attributes can take A. Many values B. Single instance of many entities C. Multi entities D. Single value
54. Suppose in a relation we want to make sure that at any point of time all values corresponding to some set of attributes are existing in some other tables. This can be achieved using A. Xlocks B. Tuple integrity C. Time stamping D. Referential integrity
55. Concurrency means allowing different transactions to execute A. Differently B. sequentially C. simultaneously D. One after other
56. Which of the following statements are true to view the structure of the table A. Desc table Table_Name B. Desc Table_Name C. Describe Table_Name D. Both Desc table Table_Name and Desc Table_Name
57. A data model is a collection of conceptual tools for describing A. data, data relationship, data semantics and consistency constraints B. All of these C. data and data relationships D. data semantics and consistency constraints
58. Derived attribute is based on another A. tables B. Attribute C. entities D. relations
59. A relation schema is considered to be in 1 NF if all of its attributes are A. Both Primary keys and Single valued B. Multivalued C. Single valued D. Primary keys
60. EMPLOYEE table has the following data EMP_ID EMP_SALARY EMP_COMM ------- --------- -------- 8723 1230 200 4357 2390 null 9823 2000 100 2737 2030 120
What is the result of the following expression Select sum (EMP_SALARY)+sum (EMP_COMM) from EMPLOYEE A. NULL B. 420 C. 8070 D. 7650