Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
amkrj
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Recent activity by amkrj
1
answer
1
program
void main() { float a=55555; printf("%.2E %.2e\n",a); } a)5.56E+004 8.12e+268 b)compilation error c) runtime error d)555.55E+002
void main(){float a=55555;printf("%.2E %.2e\n",a);}a)5.56E+004 8.12e+268b)compilation errorc) runtime errord)555.55E+002
572
views
commented
Jul 5, 2015
1
answer
2
program
main() { char line[80]; scanf("%[^,]s",line); printf("\n%s",line); } if input is:Dear students then output is?
main(){char line[80];scanf("%[^,]s",line);printf("\n%s",line);} if input is:Dear studentsthen output is?
333
views
asked
Jul 4, 2015
2
answers
3
program
void main() { int i=12345,j=0xabcd9,k=077777; printf("\n%08d %#8x %#8o"i,j,k); }
void main(){int i=12345,j=0xabcd9,k=077777;printf("\n%08d %#8x %#8o"i,j,k);}
301
views
asked
Jul 4, 2015
2
answers
4
program
void fun(int *p) { int q = 10; p = &q; } int main() { int r = 20; int *p = &r; fun(p); printf("%d", *p); return 0; } a>10 b>20 c>Compiler error d>Runtime Error
void fun(int *p){ int q = 10; p = &q;} int main(){ int r = 20; int *p = &r; fun(p); printf("%d", *p); return 0;}a>10b>20c>Compiler errord>Runtime Error
652
views
answer selected
Jun 27, 2015
2
answers
5
set
identity element for (N,+) ,(N ,*) , (Z,* ) ,(R,*) exists? where R=real no N =natural no Z=integer
identity element for (N,+) ,(N ,*) , (Z,* ) ,(R,*) exists?where R=real noN =natural noZ=integer
476
views
asked
Jun 24, 2015
2
answers
6
set
set (N,*) , (Z,*) closed or not ?
set (N,*) , (Z,*) closed or not ?
388
views
asked
Jun 24, 2015
1
answer
7
set
How to check a set of (N , +) ,(N, *) , (Z, +) , (Z,*) is countable or not?
How to check a set of (N , +) ,(N, *) , (Z, +) , (Z,*) is countable or not?
309
views
asked
Jun 24, 2015
1
answer
8
M is a 2-square matrix of rank 1, then M is (a) diagonalizable and non-singular (b) diagonalizable and nilpotent (c) neither diagonalizable nor nilpotent (d) either diagonalizable or nilpotent
explain plz .... ans given (d)
8.9k
views
answered
Jun 16, 2015
1
answer
9
pipe
Consider the following assembly language program: I1: Move R3, R7 /R3 ← (R7)/ I2: Load R8, (R3) /R8 ← Memory (R3)/ I3: Add R3, R3, 4 /R3 ← (R3) + 4/ I4: Load R9, (R3) /R9 ← Memory (R3)/ I5 ... includes WAW,RAW, and WAR dependencies. Show these soluton: is this correct WAW=1(Output data dependency) WAR=1(anti data dependency) RAW=3(true data dependency)
Consider the following assembly language program:I1: Move R3, R7 /R3 ← (R7)/I2: Load R8, (R3) /R8 ← Memory (R3)/I3: Add R3, R3, 4 /R3 ← (R3) + 4/I4: Load R...
1.8k
views
commented
Jun 8, 2015
3
answers
10
a binary search tree with n elements are constructed by randomly taking the elements one by one. What is the expected height of the tree
a binary search tree with n elements are constructed by randomly taking the elements one by one. What is the expected height of the tree
717
views
answered
Jun 6, 2015
2
answers
11
CO 2001
A processor needs software interrupt to (a) test the interrupt system of the processor (b) implement co routines (c) obtain system services which need execution of priviledge instructions (d) return from subroutine
A processor needs software interrupt to(a) test the interrupt system of the processor(b) implement co routines(c) obtain system services which need execution of priviledg...
764
views
asked
Jun 6, 2015
2
answers
12
networking
What setting of THT (token holding time) will be optimal for a network that had only one station active at a time? Response: 10 ms Depends on the size of the ring Infinity Can't say
What setting of THT (token holding time) will be optimal for a network that had only one station active at a time?Response: 10 ms Depends on the size of the ring Infinity...
412
views
commented
May 30, 2015
2
answers
13
networks
Monitor is an example of which of the following communication mode? Response: Simplex Half duplex Full duplex None of these
Monitor is an example of which of the following communication mode?Response: Simplex Half duplex Full duplex None of these
466
views
answer selected
May 27, 2015
1
answer
14
network general
Which type of ACK is used in 802.5? Response: Cumulative ACK Independent ACK Piggybacking ACK None of these
Which type of ACK is used in 802.5?Response: Cumulative ACK Independent ACK Piggybacking ACK None of these
679
views
asked
May 27, 2015
1
answer
15
DBMS general
Decompose a relation into 3NF , BCNF, 2NF , How to get it?
Decompose a relation into 3NF , BCNF, 2NF , How to get it?
343
views
asked
May 11, 2015
5
answers
16
GATE CSE 2003 | Question: 29, ISRO2009-73
Which of the following scenarios may lead to an irrecoverable error in a database system? A transaction writes a data item after it is read by an uncommitted transaction A transaction reads a data item after it is read by an ... it is written by a committed transaction A transaction reads a data item after it is written by an uncommitted transaction
Which of the following scenarios may lead to an irrecoverable error in a database system?A transaction writes a data item after it is read by an uncommitted transactionA ...
14.7k
views
commented
May 9, 2015
Databases
gatecse-2003
databases
transaction-and-concurrency
easy
isro2009
+
–
4
answers
17
GATE CSE 2003 | Question: 30
Consider the following SQL query Select distinct $a_1, a_2, , a_n$ from $r_1, r_2, , r_m$ ... $\Pi_{a_1, a_2, a_n} \sigma_p \left(r_1 \cap r_2 \cap \dots \cap r_m \right)$
Consider the following SQL querySelect distinct $a_1, a_2, …, a_n$from $r_1, r_2, …, r_m$where PFor an arbitrary predicate P, this query is equivalent to which of the...
8.9k
views
commented
May 9, 2015
Databases
gatecse-2003
databases
relational-algebra
normal
+
–
3
answers
18
GATE CSE 2004 | Question: 53
The employee information in a company is stored in the relation Employee (name, sex, salary, deptName) Consider the following SQL query Select deptName From Employee Where sex = M' Group by deptName Having avg(salary) > (select avg ( ... salary of employees in same the department the average salary of male employees is more than the average salary in the company
The employee information in a company is stored in the relationEmployee (name, sex, salary, deptName)Consider the following SQL querySelect deptName From Employee Where s...
11.2k
views
answered
May 9, 2015
Databases
gatecse-2004
databases
sql
normal
+
–
1
answer
19
GATE CSE 2009 | Question: 45
Let $R$ and $S$ be relational schemes such that $R=\{a,b,c\}$ and $S=\{c\}.$ Now consider the following queries on the database: $\pi_{R-S}(r) - \pi_{R-S} \left (\pi_{R-S} (r) \times s - \pi_{R-S,S}(r)\right )$ ... a,R.b From R,S Where R.c = S.c Which of the above queries are equivalent? $1$ and $2$ $1$ and $3$ $2$ and $4$ $3$ and $4$
Let $R$ and $S$ be relational schemes such that $R=\{a,b,c\}$ and $S=\{c\}.$ Now consider the following queries on the database:$\pi_{R-S}(r) - \pi_{R-S} \left (\pi_{R-S}...
24.5k
views
commented
May 8, 2015
Databases
gatecse-2009
databases
relational-calculus
difficult
+
–
3
answers
20
GATE CSE 1994 | Question: 3.13
Let $p$ and $q$ be propositions. Using only the Truth Table, decide whether $p \Longleftrightarrow q$ does not imply $p \to \lnot q$ is True or False.
Let $p$ and $q$ be propositions. Using only the Truth Table, decide whether $p \Longleftrightarrow q$ does not imply $p \to \lnot q$is True or False.
7.2k
views
commented
May 8, 2015
Mathematical Logic
gate1994
mathematical-logic
normal
propositional-logic
true-false
+
–
6
answers
21
GATE CSE 2007 | Question: 62, UGCNET-June2014-II: 47
Which one of the following statements is $\text{FALSE}$? Any relation with two attributes is in $\text{BCNF}$ A relation in which every key has only one attribute is in $\text{2NF}$ A prime attribute can be transitively dependent on ... a $\text{3 NF}$ relation A prime attribute can be transitively dependent on a key in a $\text{BCNF}$ relation
Which one of the following statements is $\text{FALSE}$?Any relation with two attributes is in $\text{BCNF}$A relation in which every key has only one attribute is in $\t...
23.9k
views
commented
May 8, 2015
Databases
gatecse-2007
databases
database-normalization
normal
ugcnetcse-june2014-paper2
+
–
5
answers
22
GATE CSE 2007 | Question: 61
Consider the table employee(empId, name, department, salary) and the two queries $Q_1, \, Q_2$ below. Assuming that department $5$ has more than one employee, and we want to find the employees who get higher salary than anyone in the department $5,$ ... $Q_1$ and $Q_2$ produce the same answer Neither $Q_1$ nor $Q_2$ is the correct query
Consider the table employee(empId, name, department, salary) and the two queries $Q_1, \, Q_2$ below. Assuming that department $5$ has more than one employee, and we want...
26.6k
views
commented
May 8, 2015
Databases
gatecse-2007
databases
sql
normal
verbal-aptitude
+
–
4
answers
23
GATE CSE 2011 | Question: 12
Consider a relational table with a single record for each registered student with the following attributes: $\text {Registration_Num:}$ Unique registration number for each registered student $\text {UID:}$ ... that $S \cap \text{UID}$ is $\text{NULL}$ then $S \cup \text{UID}$ is also a superkey
Consider a relational table with a single record for each registered student with the following attributes:$\text {Registration_Num:}$ Unique registration number for each...
16.4k
views
commented
May 7, 2015
Databases
gatecse-2011
databases
normal
candidate-key
+
–
5
answers
24
GATE IT 2004 | Question: 73
Consider the following entity relationship diagram $(ERD)$, where two entities $E1$ and $E2$ have a relation $R$ of cardinality 1:m. The attributes of $E1$ are $A11$, $A12$ and $A13$ where $A11$ is the key attribute. The attributes of $E2$ are $A21$ ... normal form ($3NF$) is designed from the above $ERD$. The number of tables in the database is $2$ $3$ $5$ $4$
Consider the following entity relationship diagram $(ERD)$, where two entities $E1$ and $E2$ have a relation $R$ of cardinality 1:m.The attributes of $E1$ are $A11$, $A12...
18.8k
views
commented
May 6, 2015
Databases
gateit-2004
databases
er-diagram
normal
+
–
3
answers
25
GATE IT 2007 | Question: 67
Consider the following implications relating to functional and multivalued dependencies given below, which may or may not be correct. if $A \rightarrow \rightarrow B$ and $A \rightarrow \rightarrow C$ then $A \rightarrow BC$ if $A \rightarrow B$ ... then $A \rightarrow \rightarrow C$ Exactly how many of the above implications are valid? $0$ $1$ $2$ $3$
Consider the following implications relating to functional and multivalued dependencies given below, which may or may not be correct.if $A \rightarrow \rightarrow B$ and ...
12.8k
views
commented
May 6, 2015
Databases
gateit-2007
databases
database-normalization
multivalued-dependency-4nf
normal
+
–
5
answers
26
GATE IT 2006 | Question: 15
Which of the following relational query languages have the same expressive power? Relational algebra Tuple relational calculus restricted to safe expressions Domain relational calculus restricted to safe expressions II and III only I and II only I and III only I, II and III
Which of the following relational query languages have the same expressive power?Relational algebraTuple relational calculus restricted to safe expressionsDomain relation...
8.9k
views
commented
May 5, 2015
Databases
gateit-2006
databases
relational-algebra
relational-calculus
easy
+
–
10
answers
27
GATE IT 2006 | Question: 85
Consider a database with three relation instances shown below. The primary keys for the Drivers and Cars relation are did and cid respectively and the records are stored in ascending order of these primary keys as given in the tables. No indexing is available in the database. ... key, then $n$ lies in the range: $36 - 40$ $44 - 48$ $60 - 64$ $100 - 104$
Consider a database with three relation instances shown below. The primary keys for the Drivers and Cars relation are did and cid respectively and the records are stored ...
22.2k
views
answered
May 5, 2015
Databases
gateit-2006
databases
sql
normal
+
–
5
answers
28
GATE IT 2008 | Question: 75
Consider the following relational schema: $\text{Student} (\underline{\text{school-id}, \text{sch-roll-no}}, \text{sname}, \text{saddress})$ ... schools with a pass percentage above $35\%$ over all exams taken together schools with a pass percentage above $35\%$ over each exam
Consider the following relational schema:$\text{Student} (\underline{\text{school-id}, \text{sch-roll-no}}, \text{sname}, \text{saddress})$$\text{School} (\underline{\tex...
15.1k
views
commented
May 5, 2015
Databases
gateit-2008
databases
relational-calculus
normal
+
–
6
answers
29
GATE CSE 2015 Set 1 | Question: 34
Suppose $L = \left\{ p, q, r, s, t\right\}$ is a lattice represented by the following Hasse diagram: For any $x, y \in L$, not necessarily distinct , $x \vee y$ and $x \wedge y$ are join and meet of $x, y$ ... $p_r = 0$ $p_r = 1$ $0 < p_r ≤ \frac{1}{5}$ $\frac{1}{5} < p_r < 1$
Suppose $L = \left\{ p, q, r, s, t\right\}$ is a lattice represented by the following Hasse diagram:For any $x, y \in L$, not necessarily distinct , $x \vee y$ and $x \we...
17.0k
views
commented
Apr 27, 2015
Set Theory & Algebra
gatecse-2015-set1
set-theory&algebra
normal
lattice
+
–
4
answers
30
GATE CSE 2015 Set 1 | Question: 5
If $g(x) = 1 - x$ and $h(x) = \frac{x}{x-1}$, then $\frac{g(h(x))}{h(g(x))}$ is: $\frac{h(x)}{g(x)}$ $\frac{-1}{x}$ $\frac{g(x)}{h(x)}$ $\frac{x}{(1-x)^{2}}$
If $g(x) = 1 - x$ and $h(x) = \frac{x}{x-1}$, then $\frac{g(h(x))}{h(g(x))}$ is:$\frac{h(x)}{g(x)}$$\frac{-1}{x}$$\frac{g(x)}{h(x)}$$\frac{x}{(1-x)^{2}}$
6.4k
views
commented
Apr 26, 2015
Set Theory & Algebra
gatecse-2015-set1
set-theory&algebra
functions
normal
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register