PREVIOUS YEAR SOLVED PAPERS MCQ - GATE 2019

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.

Gate2019 cs
Total 5 different student names all 5 group records in result. (In where condition no condition over Roll_no so query produces all groups.)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.

According to “while” loop,

Initially i = 2.0, j = 1.0
i / j = 2.0 / 1. 0 = 2.0 > 0.0625

j = j + j
j = 2.0
printed sum = 0.0

Second time,
i / j = 1 > 0.0625
j = 4
printed sum = 0.0

Third time,
i / j = 0.5 > 0.0625
j = 8
printed sum = 0.0

Fourth time,
i / j = 0.25 > 0.0625
j = 16
printed sum = 0.0

Fifth time,
i / j = 0.125 > 0.0625
j = 32
printed sum = 0.0

Sixth time,
i / j = 0.0625 = 0.0625
It violates the greater then condition.
This time while loop will not execute.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.

Given, “for” loop will run from i=0 to 4.
i = 0
sum = 0+ 10 – 10 = 0
i = 1
sum = 0 + 9 – 8 = 1
i = 2
sum = 1 + 8 – 6 = 3
i = 3
sum = 3 + 7 – 4 = 6
i = 4
sum = 6 + 6 – 2 = 10
Now, loop terminate and value of sum (i.e., 10) will be printed. So, The output of above C program is 10.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.
Share this question
Share:

n = p × q = 3007
By RSA algorithm, n = 31 × 97 in which 97 is prime factor which greater than 50.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.

Gate2019 cs
πx(σ(P.Y = R.Y ∧ R.V = V2)(P X R)) ⇒
X
X2
.........(I)
Gate2019 cs
Πx (σ(Q.Y = R.Y ∧ Q.T > 2) (Q × R)) ⇒
X
X1
.........(II)
I – II ⇒
X
X2
one record in result.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free
Boost Your PreparationAttempt mock tests, previous year papers and topic-wise quizzes.Explore All Tests →