Tuesday, October 06, 2020

GATE 2021 - IIT BOMBAY


GATE 2021 - Important Dates

Activity

Day

Date

GATE Online Application Processing System (GOAPS) Website Opens

Monday

14th September 2020

Closing Date of REGULAR online registration / application portal

Wednesday

30th September 2020

Extended closing date of REGULAR online registration / application portal

Wednesday

7th October 2020

End of EXTENDED period for online registration / application
(with additional late fee of 500)

Monday

12th October 2020

Last date of intimation to Registered Candidates after Scrutiny

Wednesday

21st October 2020

Re-opening of GOAPS Portal for Successfully Registered Candidates to change Category / City / Exam paper
(Change of City is FREE and extra 500 for Category and Paper Change)

Wednesday

28th October 2020

Last Date for change of Category, City & Exam Paper

Friday

13th November 2020

Availability of Admit Card on the Online Application Portal
(for download and printing)

Friday

8th January 2021

GATE 2021 Examination
Forenoon:  9:00 AM to 12:00 Noon (Tentative)
Afternoon: 3:00 PM to 6:00 PM (Tentative)

Friday
Saturday
Sunday
Friday
Saturday
Sunday

5th February 2021
6th February 2021
7th February 2021
12th February 2021
13th February 2021
14th February 2021

Announcement of results in the Online Application Portal

Monday

22nd March 2021

 

Important Note



The health and safety of the candidates are of utmost priority. Due to current COVID-19 pandemic situation, dates mentioned here are subject to change.
In rare cases, it may be necessary to postpone the GATE 2021 examination because of situations beyond the control of GATE committee.
All updates will be available on this website.

GATE 2021 - Tentative List of Examination Cities

Zone No.

Zonal GATE Office

Tentative List of Examination Cities/Towns

Zone-1

Chairperson, GATE,
IISc Bangalore,
Bengaluru - 560 012
http://gate.iisc.ac.in

Ananthapuramu (AP), Angamaly (KL), Bagalkot (KA), Belagavi (Belgaum) (KA), Ballari (Bellary) (KA), Bengaluru South (KA), Bengaluru North (KA), Bidar (KA), Chikkamagaluru (KA), Davanagere (KA), Hasaan (KA), Hubballi (Hubli) (KA), Hyderabad (TS), Kalaburagi (Gulbarga) (KA), Kannur (KL), Kasaragod (KL), Kolar (KA), Kozhikode (KL), Kurnool (AP), Malappuram (KL), Mangaluru (KA), Manipal (KA), Mysuru (Mysore) (KA), Palakkad (KL), Payyanur (KL), Port Blair (AN), Shivamogga (Shimoga)(KA), Thrissur (KL), Tumakuru (KA), Vatakara (KL) - (30 Cities).

Zone-2

Chairperson, GATE,
IIT Bombay, Powai,
Mumbai - 400 076
https://gate.iitb.ac.in

Ahmedabad (GJ), Ahmednagar (MH), Amravati (MH), Anand (GJ), Aurangabad (MH), Baramati (MH), Bhavnagar (GJ), Bhuj (GJ), Chandrapur (MH), Gandhinagar (GJ), Goa (GA), Jalgaon (MH), Kolhapur (MH), Mehsana (GJ), Mumbai-Navi Mumbai-Thane (MH), Nagpur (MH), Nanded (MH), Nashik (MH), Pune (MH), Raigad (MH), Rajkot (GJ), Ratnagiri (MH), Sangli (MH), Satara (MH), Solapur (MH), Surat (GJ), Vadodara (GJ) - (27 Cities).

Zone-3

Chairperson, GATE,
IIT Delhi, HauzKhas,
New Delhi - 110 016
http://gate.iitd.ac.in

Ajmer (RJ), Alwar (RJ), Bikaner (RJ), Faridabad (HR), Greater NOIDA (UP), Gurugram (HR), Hisar (HR), Indore (MP), Jaipur (RJ), Jammu-Samba (JK), Jodhpur (RJ), Kota (RJ), Mathura (UP), New Delhi (DL), Rohtak (HR), Sikar (RJ), Sonepat (HR), Srinagar (JK), Udaipur (RJ), Ujjain (MP) - (20 Cities).

Zone-4

Chairperson, GATE,
IIT Guwahati
Guwahati - 781 039
http://iitg.ac.in/gate-jam

Agartala (TR), Aizawl (MZ), Asansol-Durgapur (WB), Bokaro Steel City (JH), Burdwan (WB), Dhanbad (JH), Dibrugarh (AS), Dimapur-Kohima (NL), Gangtok (SK), Guwahati (AS), Imphal (MN), Itanagar (AR), Jorhat (AS), Kalyani (WB), Muzaffarpur (BR), Patna (BR), Purnea (BR), Shillong (ML), Silchar (AS), Siliguri (WB), Tezpur (AS) - (21 Cities).

Zone-5

Chairperson, GATE,
IIT Kanpur
Kanpur - 208 016
http://gate.iitk.ac.in

Agra (UP), Aligarh (UP), Allahabad (UP), Bareilly (UP), Bhopal (MP), Gorakhpur (UP), Gwalior (MP), Jabalpur (MP), Jhansi (UP), Kanpur (UP), Lucknow (UP), Varanasi (UP) - (12 Cities).

Zone-6

Chairperson, GATE,
IIT Kharagpur
Kharagpur - 721 302
http://gate.iitkgp.ac.in

Balasore (OR), Berhampur (Odisha) (OR), Bhilai (CH), Bhubaneswar (OR), Bilaspur (CG) (CH), Cuttack (OR), Dhenkanal (OR), Eluru (AP), Hooghly (WB), Jamshedpur (JH), Kakinada (AP), Kharagpur (WB), Kolkata (WB), Raipur (CH), Rajamahendravaram (Rajahmundry) (AP), Ranchi (JH), Rourkela (OR), Sambalpur (OR), Srikakulam (AP), Tadepalligudem (AP), Vijayawada (AP), Visakhapatnam (AP), Vizianagaram (AP) - (23 Cities).

Zone-7

Chairperson, GATE,
IIT Madras
Chennai - 600 036
http://gate.iitm.ac.in

Alappuzha (KL), Aluva-Ernakulam (KL), Attingal (KL), Chengannur (KL), Chennai South (TN), Chennai West (TN), Chirala (AP), Chittoor (AP), Coimbatore (TN), Cuddalore (TN), Dindigul (TN), Gudur (AP), Guntur (AP), Idukki (KL), Kadapa (AP), Kanjirapally (KL), Kanyakumari-Nagercoil (TN), Karimnagar (TS), Khammam (TS), Kodad (TS), Kollam (KL), Kothamangalam (KL), Kottayam (KL), Madurai (TN), Muvattupuzha (KL), Namakkal (TN), Nellore (AP), Ongole (AP), Puducherry (PY), Salem (TN), Thanjavur (TN), Thiruvananthapuram (KL), Thoothukudi (TN), Tiruchirapalli (TN), Tirunelveli (TN), Tirupati (AP), Vellore (TN), Villupuram (TN), Virudhunagar (TN), Warangal (TS) - (40 Cities).

Zone-8

Chairperson, GATE,
IIT Roorkee
Roorkee - 247 667
https://www.iitr.ac.in/gate/

Ambala (HR), Amritsar (PB), Bathinda (PB), Dehradun (UK), Ghaziabad (UP), Haldwani (UK), Hamirpur-Una (HP), Jalandhar (PB), Karnal (HR), Kurukshetra (HR), Ludhiana (PB), Meerut (UP), Mohali-Chandigarh (PB), Moradabad (UP), Muzaffarnagar (UP), NOIDA (UP), Panipat (HR), Pathankot (PB), Patiala-Sangrur (PB), Roorkee (UK), Shimla-Solan (HP), Yamunanagar (HR) - (22 Cities).

Zone-2

GATE International*
OI - IIT Bombay

Addis Ababa [Ethiopia], Colombo [Sri Lanka], Dhaka [Bangladesh], Dubai [UAE], Kathmandu [Nepal], Singapore (6 International Cities).

Note: Words in (round bracket) denote states in India and those in [square bracket] denote foreign countries of International cities.

*IMPORTANT - GATE International to continue only IF the travel and other infrastructural issues normalize by November 2020 from the present COVID-19 pandemic situation, else GATE-2021 International Centers will be "CANCELLED".

This is a tentative list of examination cities, and any change will be updated on the website.

Choice of Examination City:
 The candidate can choose FOUR cities from the list of examination cities given in the above table. The first, second and third choices must be from the same GATE zone and fourth choice can be from any GATE zone.

If a candidate chooses a particular city (in a particular zone) as the first choice, then he/she will be able to choose the city of second and third choice ONLY from that particular zone. However, the fourth choice can be from any one of the listed cities in India (i.e., no restriction on the zone for the fourth-choice city). Note that, because of the operational constraints, the GATE Committee reserves the right to add a new city or remove an existing one, and allot a city that may not be from any of the choices selected by the candidate.

Details of Application Fee for GATE-2021 (Per Subject Paper)

 

For Examination Centres in India

Regular Period
(14th to 30th Sept. 2020)

During the Extended Period
(1st to 7th Oct 2020)

Female candidates (per paper)

 750

 1250

SC / ST / PwD* category candidates (per paper)

 750

 1250

All other candidates (per paper)

 1500

 2000

 

 

Monday, October 05, 2020

C programming and Data structure

 Q.1 A global variable is a variable
(A) declared in the main ( ) function.
(B) declared in any function other than the main ( ) function.
(C) declared outside the body of every function.
(D) declared any where in the C program.
Ans: C
A global variable is declared outside the body of every function.

Q.2 main ( ) is an example of
(A) library function
(B) user defined function
(C) header
(D) statement
Ans: A
main() is a special function used by C system to tell the computer where the program starts.

Q.3 While incrementing a pointer, its value gets increased by the length of the data type to which it points. This length is called
(A) scale factor
(B) length factor
(C) pointer factor
(D) increment factor
Ans: D
While incrementing a pointer, its value gets increased by the length of the data type to which it points.

Q.4 The first digit of a decimal constant must be
(A) a zero
(B) a non zero number
(C) a negative number
(D) an integer
Ans: D
Decimal constants consist of a set of digit, 0 to 9, preceded by an optional – or + sign.

Q.5 What is the output of the following statement:
printf (“%-3d”,12345);
(A) 1 2 3
(B) -1 2 3
(C) 1 2 3 4 5
(D) 12
Ans: C
printf statement would print 12345.

Q.6 A single character input from the keyboard can be obtained by using the function.
(A) printf ( )
(B) scanf ( )
(C) putchar ( )
(D) getchar ( )
Ans: D
Reading a single character can be done by using the function getchar( ).

Q.7 The function ftell ( )
(A) reads a character from a file
(B) reads an integer from a file
(C) gives the current position in the file
(D) sets the position to the beginning of the file.
Ans: C
ftell( ) takes a file pointer and returns a number of type long, that corresponds to the current position.

Q.8 If the variables i, j and k are assigned the values 5,3 and 2 respectively, then the expression i = j + ( k + + = 6 ) + 7
(A) gives an error message
(B) assigns a value 16 to i
(C) assigns a value 18 to i
(D) assigns a value 19 to i
Ans: A
It gives an error message-Lvalue required.

Q.9 If an integer needs two bytes of storage, then the maximum value of a signed integer is
(A) 216-1
(B) 215-1
(C) 216
(D) 215
Ans: B
If we use a 16 bit word length, the size of the integer value is limited to the range -215 to 215-1

Q.10 Literal means
(A) a string
(B) a string constant
(C) a character
(D) an alphabet
Ans: B
Literal means a string constant.

Q.11 If ‘y’ is of integer type then the expressions
3* (y − 8)/9 and (y − 8)/9 * 3
(A) must yield the same value.
(B) must yield different values.
(C) may or may not yield the same value.
(D) none of the above.
Ans: C
The expression may or may not yield the same value.

Q.12 In the following code fragment
int x, y = 2, z, a;
x=(y*=2) + (z=a=y);
printf (‘%d’,x);
(A) prints 8
(B) prints 6
(C) prints 6 or 8 depending on the compiler
(D) is syntactically wrong
Ans: A
It will print 8 because x=(y*=2)+(z=a=y)=4+4=8.

Q.13 A possible output of the following program fragment is
for (i=getchar();; i=get.char())
if (i==‘x’) break;
else putchar(i);
(A) mi
(B) mix
(C) mixx
(D) none of the above
Ans: D
None of the above as it is wrong syntax.

Q.14 In a for loop, if the condition is missing, then,
(A) It is assumed to be present and taken to be false.
(B) It is assumed to be present and taken to be true.
(C) It results in a syntax error.
(D) Execution will be terminated abruptly.
Ans: B

Q.15 If storage class is missing in the array definition, by default it will be taken to be
(A) automatic
(B) external
(C) static
(D) either automatic or external depending on the place of occurrence.
Ans: A
A variable declared inside inside a function without storage class specification is, by default, an automatic variable.

Q.16 The maximum number of dimensions an array can have in C is
(A) 3
(B) 4
(C) 5
(D) compiler dependent
Ans: D
C allows arrays of three or more dimensions. The exact limit is determined by the compiler.

Q.17 puts(argv[0]);
(A) prints the name of the source code file.
(B) prints argv.
(C) prints the number of command line arguments.
(D) prints the name of the executable code file.
Ans: D
argv[0] represent the filename where the executable code of the program is stored.

Q.18 printf(“%–10s”, “ABDUL”); displays
(A) ABDULbbbbb
(B) bbbbbABDUL
(C) ABDULbbbbbbbbbb
(D) bbbbbbbbbbABDUL
Ans: A
-10s will print ABDUL in 10 space ABDUL followed by 5 blank space.

Q.19 Which amongst the following expression uses bitwise operator?
(A) a++
(B) !a>5
(C) a|b
(D) a!=b
Ans: C
| is bitwise OR.

Q.20 The output of the following program is
main( )
{ float y;
y=198.7361;
printf(“%7.2f”, y);
}
(A) 1 9 8 . 7 3 6
(B) 1 9 8 . 7 3
(C) 1 9 8 . 7 4
(D) 1 9 8 . 7 4
Ans: C
The printf statement is giving formatted output till two places of decimal.

Saturday, October 03, 2020

C Programming and Data Structure

 Q.1 What is the output of the following program?
main ( )
{ int x = 2, y = 5;
if (x < y) return (x = x+y); else printf (“z1”);
printf(“z2”);
}
(A) z2
(B) z1z2
(C) Compilation error
(D) None of these
Ans: D
There is no compilation error but there will no output because function is returning a value and if statement is true in this case.

Q.2 Choose the correct one
(A) Address operator can not be applied to register variables
(B) Address operator can be applied to register variables
(C) Use of register declaration will increase the execution time
(D) None of the above
Ans: D
A register access is much faster than a memory access, keeping the frequently accessed variables in the register will lead to faster execution of programs.

Q.3 What is the following program doing?
main ()
{ int d = 1;
do
printf(“%d\n”, d++);
while (d < = 9);}
(A) Adding 9 integers
(B) Adding integers from 1 to 9
(C) Displaying integers from 1 to 9
(D) None of these
Ans: C
d starting from 1 is incrementing one by one till d=9 so the printf statement is printing numbers from 1 to 9.

Q.4 What is the output of the following program?
main ( )
{ extern int x;
x = 20;
printf(“\n%d”, x);
}
(A) 0
(B) 20
(C) error
(D) garbage value
Ans: C
Output of the given program will be “Linker error-undefined symbol x”. External variables are declared outside a function.

Q.5 If x is one dimensional array, then pick up the correct answer
(A) *(x + i) is same as &x[i]
(B) *&x[i] is same as x + i
(C) *(x + i) is same as x[i] +1
(D) *(x + i) is same as *x[i]
Ans: A
num[i] is same as *(num+i)

Q.6 Consider the following declaration
int a, *b = &a, **c = &b;
The following program fragment
a = 4;
**c = 5;
(A) does not change the value of a
(B) assigns address of c to a
(C) assigns the value of b to a
(D) assigns 5 to a
Ans: D
The given statements assigns 5 to a

Q.7 Choose the correct answer
(A) enum variable can not be assigned new values
(B) enum variable can be compared
(C) enumeration feature increase the power of C
(D) None of the above
Ans: C
The enumerated data types give an opportunity to invent our own data typeand define what value the variable of this data type can take.

Q.8 The content of file will be lost if it is opened in
(A) w mode
(B) w+ mode
(C) a mode
(D) a+ mode
Ans: A
When the mode is writing, the contents are deleted and the file is opened as a new file.

Q.9 Consider the following code segment:
int a[10], *p1, *p2;
p1 = &a[4];
p2 = &a[6];
Which of the following statements is incorrect w.r.t. pointers?
(A) p1 + 2
(B) p2 – 2
(C) p2 + p1
(D) p2 – p1
Ans: C
Addition of two pointers is not allowed.

Q.10 The second expression (j – k) in the following expression will be evaluated
(i + 5) && (j – k)
(A) if expression (i + 5) is true.
(B) if expression (i + 5) is false.
(C) irrespective of whether (i + 5) is true or false.
(D) will not be evaluated in any case.
Ans: A
In a compound logical expression combined with &&, the second expression is evaluated only if first is evaluated in true.

Q.11 In the for statement: for (exp1; exp2; exp3) { … }
where exp1, exp2 and exp3 are expressions. What is optional?
(A) None of the expressions is optional.
(B) Only exp1 is optional.
(C) Only exp1 and exp3 are optional.
(D) All the expressions are optional.
Ans: D
All the expressions are optional. For (;;) is a valid statement in C.

Q.12 The output of the following code segment will be
char x = ‘B’;
switch (x) {
case ‘A’: printf(“a”);
case ‘B’: printf(“b”);
case ‘C’: printf(“c”);
}
(A) B
(B) b
(C) BC
(D) bc
Ans: D
Since there is no break statement, all the statement after case’B’ are executed.

Q.13 What will be the output of the following code segment?
main( ) {
char s[10];
strcpy(s, “abc”);
printf(“%d %d”, strlen(s), sizeof(s));
}
(A) 3 10
(B) 3 3
(C) 10 3
(D) 10 10
Ans: A
strlen(s) give the length of the string, that is 3 and sizeof(s) give the size of array s that is 10.

Q.14 Which of the following is the odd one out?
(A) j = j + 1;
(B) j =+ 1;
(C) j++;
(D) j += 1;
Ans: B
j=+1 is odd one out as rest all means incrementing the value of variable by 1.

Q.15 Which of the following is true for the statement:
NurseryLand.Nursery.Students = 10;
(A) The structure Students is nested within the structure Nursery.
(B) The structure NurseryLand is nested within the structure Nursery.
(C) The structure Nursery is nested within the structure NurseryLand.
(D) The structure Nursery is nested within the structure Students.
Ans: C
The structure Nursery is nested within the structure NurseryLand.

Q.16 What will be the output of the following code segment, if any?
myfunc ( struct test t) {
strcpy(t.s, “world”);
}
main( ) {
struct test { char s[10]; } t;
strcpy(t.s, “Hello”);
printf(“%s”, t.s);
myfunc(t);
printf(“%s”, t.s);
}
(A) Hello Hello
(B) world world
(C) Hello world
(D) the program will not compile
Ans: D
The program will not compile because undefined symbol s for myfunc( ) function. Structure should be defined before the main and the function where it is called.

Q.17 If a function is declared as void fn(int *p), then which of the following statements is valid to call function fn?
(A) fn(x) where x is defined as int x;
(B) fn(x) where x is defined as int *x;
(C) fn(&x) where x is defined as int *x;
(D) fn(*x) where x is defined as int *x;
Ans: B
Function void fn(int *p) needs pointer to int as argument. When x is defined as int *x, then x is pointer to integer and not *x.

Q.18 What is the following function computing? Assume a and b are positive integers.
int fn( int a, int b) {
if (b == 0)
return b;
else
return (a * fn(a, b - 1));
}
(A) Output will be 0 always
(B) Output will always be b
(C) Computing ab
(D) Computing a + b
Ans: A
The output is always be 0 because b is decremented in recursive function fn each time by 1 till the terminating condition b==0 where it will return 0.

Q.19 What is the output of the following C program?
# include <stdio.h>
main ( )
{
int a, b=0;
static int c [10]={1,2,3,4,5,6,7,8,9,0};
for (a=0; a<10;+ + a)
if ((c[a]%2)= = 0) b+ = c [a];
printf (“%d”, b);
}
(A) 20
(B) 25
(C) 45
(D) 90
Ans: A
printf statement will print b which is sum of the those values from array c which get divided by 2, that is 2+4+6+8=20.

Q.20 If a, b and c are integer variables with the values a=8, b=3 and c=-5. Then what is the
value of the arithmetic expression:
2 * b + 3 * (a-c)
(A) 45
(B) 6
(C) -16
(D) -1
Ans: A
the value of the arithmetic expression is 45 as 2*3+3*(8—5)=6+3*13=6+39=45

Monday, September 28, 2020

Database Systems MCQ

Q.1 The physical location of a record is determined by a mathematical formula that transforms a file key into a record location is :

(A) B-Tree File

(B) Hashed File

(C) Indexed File

(D) Sequential file

Ans: B

 

Q.2 Using Relational Algebra the query that finds customers, who have a balance of over 1000 is

(A) πCustomer_name(s balance >1000(Deposit))

(B) σCustomer_name(Pbalance >1000(Deposit))

(C) πCustomer_name(s balance >1000(Borrow))

(D) σCustomer_name(Pbalance >1000(Borrow))

Ans: A

 

Q.3 A primary key is combined with a foreign key creates

(A) Parent-Child relation ship between the tables that connect them.

(B) Many to many relationship between the tables that connect them.

(C) Network model between the tables that connect them.

(D) None of the above.

Ans: A

 

Q.4 In E-R Diagram derived attribute are represented by

(A) Ellipse

(B) Dashed ellipse

(C) Rectangle

(D) Triangle

Ans B

 

Q.5 Cross Product is a:

(A) Unary Operator

(B) Ternary Operator

(C) Binary Operator

(D) Not an operator

Ans: C

 

Q.6 An instance of relational schema R (A, B, C) has distinct values of A including NULL values. Which one of the following is true?

(A) A is a candidate key

(B) A is not a candidate key

(C) A is a primary Key

(D) Both (A) and (C)

Ans: B

 

Q.7 Consider the join of a relation R with relation S. If R has m tuples and S has n tuples, then the maximum size of join is:

(A) mn

(B) m+n

(C) (m+n)/2

(D) 2(m+n)

Ans: A

 

Q.8 The natural join is equal to :

(A) Cartesian Product

(B) Combination of Union and Cartesian product

(C) Combination of selection and Cartesian product

(D) Combination of projection and Cartesian product

Ans: D

 

Q.9 Which one of the following is not true for a view:

(A) View is derived from other tables.

(B) View is a virtual table.

(C) A view definition is permanently stored as part of the database.

(D) View never contains derived columns.

Ans: C

 

Q.10 A primary key if combined with a foreign key creates

(A) Parent-Child relationship between the tables that connect them.

(B) Many to many relationship between the tables that connect them.

(C) Network model between the tables that connect them.

(D) None of the above.

Ans: A

 

Q.11 In E-R Diagram relationship type is represented by

(A) Ellipse

(B) Dashed ellipse

(C) Rectangle

(D) Diamond

Ans: D

 

Q.12 Hierarchical model is also called

(A) Tree structure

(B) Plex Structure

(C) Normalize Structure

(D) Table Structure

Ans: A

 

Q.13 To delete a particular column in a relation the command used is:

(A) UPDATE

(B) DROP

(C) ALTER

(D) DELETE

Ans: C

 

Q.14 The ______ operator is used to compare a value to a list of literals values that have been specified.

(A) BETWEEN

(B) ANY

(C) IN

(D) ALL

Ans: A

 

Q.15 A logical schema

A) is the entire database

B) is a standard way of organizing information into a accessible part

C) describe how data is actually stored on disk

D) none of these

Ans: D

 

Q.16 A B-tree of order m has maximum of _____________ children

(A) m

(B) m+1

(C) m-1

(D) m/2

Ans: A

 

Q.17 _____________ function divides one numeric expression by another and returns the remainder.

(A) POWER

(B) MOD

(C) ROUND

(D) REMAINDER

Ans: B

 

Q.18 A data manipulation command the combines the records from one or more tables is called

(A) SELECT

(B) PROJECT

(C) JOIN

(D) PRODUCT

Ans: C

 

Q.19 In E-R diagram generalization is represented by

(A) Ellipse

(B) Dashed ellipse

(C) Rectangle

(D) Triangle

Ans: D

 

Q.20 _________ is a virtual table that draws its data from the result of an SQL SELECT statement.

(A) View

(B) Synonym

(C) Sequence

(D) Transaction

Ans: A

 

Q.21 The method of access which uses key transformation is known as

(A) Direct

(B) Hash

(C) Random

(D) Sequential

Ans: B

 

Q.22 A table joined with itself is called

(A) Join

(B) Self Join

(C) Outer Join

(D) Equi Join

Ans: B

 

Q.23 _________ data type can store unstructured data

(A) RAW

(B) CHAR

(C) NUMERIC

(D) VARCHAR

Ans: A

 

Q.24 Which two files are used during operation of the DBMS

(A) Query languages and utilities

(B) DML and query language

(C) Data dictionary and transaction log

(D) Data dictionary and query language

Ans: C

Saturday, September 26, 2020

Database Systems MCQ

 Q.1 Which of the following is correct:
(A) a SQL query automatically eliminates duplicates.
(B) SQL permits attribute names to be repeated in the same relation.
(C) a SQL query will not work if there are no indexes on the relations
(D) None of these
Ans: D

Q.2 It is better to use files than a DBMS when there are
(A) Stringent real-time requirements.
(B) Multiple users wish to access the data.
(C) Complex relationships among data.
(D) All of the above.
Ans: B

Q.3 The conceptual model is
(A) dependent on hardware.
(B) dependent on software.
(C) dependent on both hardware and software .
(D) independent of both hardware and software.
Ans: D

Q.4 What is a relationship called when it is maintained between two entities?
(A) Unary
(B) Binary
(C) Ternary
(D) Quaternary
Ans: B

Q.5 Which of the following operation is used if we are interested in only certain columns of a table?
(A) PROJECTION
(B) SELECTION
(C) UNION
(D) JOIN
Ans: A

Q.6 Which of the following is a valid SQL type?
(A) CHARACTER
(B) NUMERIC
(C) FLOAT
(D) All of the above
Ans: D

Q.7 The RDBMS terminology for a row is
(A) tuple.
(B) relation.
(C) attribute.
(D) degree.
Ans: A

Q.8 Which of the following operations need the participating relations to be union compatible?
(A) UNION
(B) INTERSECTION
(C) DIFFERENCE
(D) All of the above
Ans: D

Q.9 The full form of DDL is
(A Dynamic Data Language
(B) Detailed Data Language
(C) Data Definition Language
(D) Data Derivation Language
Ans: C

Q.10 Which of the following is an advantage of view?
(A) Data security
(B) Derived columns
(C) Hiding of complex queries
(D) All of the above
Ans: D

Q.11 Which of the following is a legal expression in SQL?
(A) SELECT NULL FROM EMPLOYEE;
(B) SELECT NAME FROM EMPLOYEE;
(C) SELECT NAME FROM EMPLOYEE WHERE SALARY = NULL;
(D) None of the above
Ans: B

Q.12 The users who use easy-to-use menu are called
(A) Sophisticated end users.
(B) Naïve users.
(C) Stand-alone users.
(D) Casual end users.
Ans: B

Q.13 Which database level is closest to the users?
(A) External
(B) Internal
(C) Physical
(D) Conceptual
Ans: A

Q.14 Which are the two ways in which entities can participate in a relationship?
(A) Passive and active
(B) Total and partial
(C) Simple and Complex
(D) All of the above
Ans: B

Q.15 The result of the UNION operation between R1 and R2 is a relation that includes
(A) all the tuples of R1
(B) all the tuples of R2
(C) all the tuples of R1 and R2
(D) all the tuples of R1 and R2 which have common columns
Ans: D

Q.16 Which of the following is a comparison operator in SQL?
(A) =
(B) LIKE
(C) BETWEEN
(D) All of the above
Ans: D

Q.17 A set of possible data values is called
(A) attribute.
(B) degree.
(C) tuple.
(D) domain.
Ans: D

Q.18 Which of the operations constitute a basic set of operations for manipulating relational data?
(A) Predicate calculus
(B) Relational calculus
(C) Relational algebra
(D) None of the above
Ans:C

Q.19 Which of the following is another name for weak entity?
(A) Child
(B) Owner
(C) Dominant
(D) All of the above
Ans: A

Q.20 Which of the following database object does not physically exist?
(A) base table
(B) index
(C) view
(D) none of the above
Ans: C

Q.21 NULL is
(A) the same as 0 for integer
(B) the same as blank for character
(C) the same as 0 for integer and blank for character
(D) not a value
Ans: D

Q.22 Which of the following is record based logical model?
(A) Network Model
(B) Object oriented model
(C) E-R Model
(D) None of these
Ans: A

Q.23 A data dictionary is a special file that contains:
(A) The name of all fields in all files.
(B) The width of all fields in all files.
(C) The data type of all fields in all files.
(D) All of the above.
Ans: D

Q.24 A file manipulation command that extracts some of the records from a file is called
(A) SELECT
(B) PROJECT
(C) JOIN
(D) PRODUCT
Ans: A

Friday, September 25, 2020

Database Systems MCQ

 Q.1 The DBMS language component which can be embedded in a program is
(A) The data definition language (DDL).
(B) The data manipulation language (DML).
(C) The database administrator (DBA).
(D) A query language.
Ans: B

Q.2 A relational database developer refers to a record as
(A) a criteria.
(B) a relation.
(C) a tuple.
(D) an attribute.
Ans: C

Q.3 The relational model feature is that there
(A) is no need for primary key data.
(B) is much more data independence than some other database models.
(C) are explicit relationships among records.
(D) are tables with many dimensions.
Ans: B

Q.4 Conceptual design
(A) is a documentation technique.
(B) needs data volume and processing frequencies to determine the size of the database.
(C) involves modelling independent of the DBMS.
(D) is designing the relational model.
Ans:C

Q.5 The method in which records are physically stored in a specified order according to a key field in each record is
(A) hash.
(B) direct.
(C) sequential.
(D) all of the above.
Ans: A A method in which records are physically stored in a specified order according to a key field in each record is hash.
(In hash method, a hash function is performed on the key value to determine the unique physical address of the record to store or retrieve)

Q.6 A subschema expresses
(A) the logical view.
(B) the physical view.
(C) the external view.
(D) all of the above.
Ans: C A subschema expresses the external view.
(External schemas are called also called as subschemas)

Q.7 Count function in SQL returns the number of
(A) values.
(B) distinct values.
(C) groups.
(D) columns.
Ans: A Count function in SQL returns the number of values.
(Count function counts all the not null values in the specific column. If we want to count only distinct values than the DISTINCT keyword is also to be used)

Q.8 Which one of the following statements is false?
(A) The data dictionary is normally maintained by the database administrator.
(B) Data elements in the database can be modified by changing the data dictionary.
(C) The data dictionary contains the name and description of each data element.
(D) The data dictionary is a tool used exclusively by the database administrator.
Ans: B

Q.9 An advantage of the database management approach is
(A) data is dependent on programs.
(B) data redundancy increases.
(C) data is integrated and can be accessed by multiple programs.
(D) none of the above.
Ans: C

Q.10 A DBMS query language is designed to
(A) support end users who use English-like commands.
(B) support in the development of complex applications software.
(C) specify the structure of a database.
(D) all of the above.
Ans: D

Q.11 Transaction processing is associated with everything below except
(A) producing detail, summary, or exception reports.
(B) recording a business activity.
(C) confirming an action or triggering a response.
(D) maintaining data.
Ans: C

Q.12 It is possible to define a schema completely using
(A) VDL and DDL.
(B) DDL and DML.
(C) SDL and DDL.
(D) VDL and DML.
Ans: B

Q.13 The method of access which uses key transformation is known as
(A) direct.
(B) hash.
(C) random.
(D) sequential.
Ans: B

Q.14 Data independence means
(A) data is defined separately and not included in programs.
(B) programs are not dependent on the physical attributes of data.
(C) programs are not dependent on the logical attributes of data.
(D) both (B) and (C).
Ans: D both (B) and (C)

Q.15 The statement in SQL which allows to change the definition of a table is
(A) Alter.
(B) Update.
(C) Create.
(D) select.
Ans: A

Q.16 E-R model uses this symbol to represent weak entity set ?
(A) Dotted rectangle.
(B) Diamond
(C) Doubly outlined rectangle
(D) None of these
Ans: C

Q.17 SET concept is used in :
(A) Network Model
(B) Hierarchical Model
(C) Relational Model
(D) None of these
Ans: A

Q.18 Relational Algebra is
(A) Data Definition Language .
(B) Meta Language
(C) Procedural query Language
(D) None of the above
Ans: C

Q.19 Key to represent relationship between tables is called
(A) Primary key
(B) Secondary Key
(C) Foreign Key
(D) None of these
Ans: C

Q.20 _______ produces the relation that has attributes of R1 and R2
(A) Cartesian product
(B) Difference
(C) Intersection
(D) Product
Ans: A

Q.21 The file organization that provides very fast access to any arbitrary record of a file is
(A) Ordered file
(B) Unordered file
(C) Hashed file
(D) B-tree
Ans: C

Q.22 DBMS helps achieve
(A) Data independence
(B) Centralized control of data
(C) Neither (A) nor (B)
(D) both (A) and (B)
Ans: D

Q.23 Which of the following are the properties of entities?
(A) Groups
(B) Table
(C) Attributes
(D) Switchboards
Ans: C

Q.24 In a relation
(A) Ordering of rows is immaterial
(B) No two rows are identical
(C) (A) and (B) both are true
(D) None of these.
Ans: C

Wednesday, September 23, 2020

Database Systems MCQ

 Q.1 In the relational modes, cardinality is termed as:

(A) Number of tuples. 

(B) Number of attributes.

(C) Number of tables. 

(D) Number of constraints.

Ans: A


Q.2 Relational calculus is a

(A) Procedural language. 

(B) Non- Procedural language.

(C) Data definition language. 

(D) High level language.

Ans: B


Q.3 The view of total database content is

(A) Conceptual view. 

(B) Internal view.

(C) External view. 

(D) Physical View.

Ans: A


Q.4 Cartesian product in relational algebra is

(A) a Unary operator. 

(B) a Binary operator.

(C) a Ternary operator. 

(D) not defined.

Ans: B Cartesian product in relational algebra is a binary operator. (It requires two operands. e.g., PXQ)


Q.5 DML is provided for

(A) Description of logical structure of database.

(B) Addition of new structures in the database system.

(C) Manipulation & processing of database.

(D) Definition of physical structure of database system.

Ans: C DML is provided for manipulation & processing of database. (Data stored in the database is processed or manipulated using data manipulation language commands as its name)


Q.6 ‘AS’ clause is used in SQL for

(A) Selection operation. 

(B) Rename operation.

(C) Join operation. 

(D) Projection operation.

Ans: B ‘AS’ clause is used in SQL for rename operation. (e.g., SELECT ENO AS EMPLOYEE_NO FROM EMP)


Q.7 ODBC stands for

(A) Object Database Connectivity.

(B) Oral Database Connectivity.

(C) Oracle Database Connectivity.

(D) Open Database Connectivity.

Ans: D


Q.8 Architecture of the database can be viewed as

(A) two levels. 

(B) four levels.

(C) three levels. 

(D) one level.

Ans: C


Q.9 In a relational model, relations are termed as

(A) Tuples. 

(B) Attributes

(C) Tables. 

(D) Rows.

Ans:


Q.10 The database schema is written in

(A) HLL 

(B) DML

(C) DDL 

(D) DCL

Ans: C


Q.11 In the architecture of a database system external level is the

(A) physical level. 

(B) logical level.

(C) conceptual level 

(D) view level.

Ans: D


Q.12 An entity set that does not have sufficient attributes to form a primary key is a

(A) strong entity set. 

(B) weak entity set.

(C) simple entity set. 

(D) primary entity set.

Ans: B


Q.13 In a Hierarchical model records are organized as

(A) Graph. 

(B) List.

(C) Links. 

(D) Tree.

Ans: D


Q.14 In an E-R diagram attributes are represented by

(A) rectangle. 

(B) square.

(C) ellipse. 

(D) triangle.

Ans: C


Q.15 In case of entity integrity, the primary key may be

(A) not Null 

(B) Null

(C) both Null & not Null. 

(D) any value.

Ans: A


Q.16 In tuple relational calculus P1 -> P2 is equivalent to

(A) ¬P1vP2 

(B) P1vP2

(C) P1^P2 

(D) P1^¬P2

Ans: A In tuple relational calculus P1 -> P2 is equivalent to ¬P1vP2. (The logical implication expression A->B, meaning if A then B,is equivalent to ¬AvB)


Q.17 The language used in application programs to request data from the DBMS is referred to as the

(A) DML 

(B) DDL

(C) VDL 

(D) SDL

Ans: A


Q.18 A logical schema

(A) is the entire database.

(B) is a standard way of organizing information into accessible parts.

(C) describes how data is actually stored on disk.

(D) both (A) and (C)

Ans: A


Q.19 Related fields in a database are grouped to form a

(A) data file. 

(B) data record.

(C) menu. 

(D) bank.

Ans: B Related data fields in a database are grouped to form a data record. (A record is a collection of related fields)


Q.20 The database environment has all of the following components except:

(A) users. 

(B) separate files.

(C) database. 

(D) database administrator.

Ans: A


Q.21 The language which has recently become the defacto standard for interfacing application programs with relational database system is

(A) Oracle. 

(B) SQL.

(C) DBase. 

(D) 4GL.

Ans: B


Q.22 The way a particular application views the data from the database that the application uses is a

(A) module. 

(B) relational model.

(C) schema. 

(D) sub schema.

Ans: D


Q.23 In an E-R diagram an entity set is represent by a

(A) rectangle. 

(B) ellipse.

(C) diamond box. 

(D) circle.

Ans: A


Q.24 A report generator is used to

(A) update files. 

(B) print files on paper.

(C) data entry. 

(D) delete files.

Ans: B

Search Aptipedia