ISRO Scientist or Engineer Computer Science 2018

Instructions

For the following questions answer them individually

Question 41

Consider the following table in a relational database

According to the data shown in the table, which of the following could be a candidate key of Me table?

Video Solution
Question 42

A data driven machineis one that executes an instruction if the needed Data is available. The physical ordering of the code listing does not dictate the course of execution. Consider the following pseucdo-code
(A) Multiply E by 0.5 to get F
(B) Add A and B to get E
(C) Add B with 0.5 to get D
(D) Add E and F to get G
(E) Add A with 10.5 to get C
Assume A, B, C are already assigned values and the desired output is G. Which of the following sequence of execution is valid?

Video Solution
Question 43

Assume A and B are non-zero positive integers. The following code segment
while (A != B){
if (A > B)
A -= B ;
else
B -= A ;
}
count <<A; //printing the volume of A

Video Solution
Question 44

A language with string manipulation facilities uses the following operations.
head(s)- returns thefirst character of the string s
tail(s) - returns all but the first character of the string s
concat(s1, s2) - concatenatesstring s1 with s2.
The outputof concat(head(s), head(tail(tail(s)))) , where s is acbc is

Video Solution
Question 45

Choose the correct statement —

Video Solution
Question 46

CFG (Context Free Grammar)is not closed under

Video Solution
Question 47

The FSM (Finite State Machine) machine pictured in the figure above

Video Solution
Question 48

A CFG(Context Free Grammar)is said to be in Chomsky Normal Form (CNF),if all the productions are of the form $$A \rightarrow BC$$ or $$A \rightarrow a$$. Let G be a CFG in CNF. To derive string of terminals of length x, the number of products to be used is

Video Solution
Question 49

For a database relation R(a,b,c,d) where the domains ofa, b, c and d include only atomic values, only the following functional dependencies and those that can be inferred from them hold
$$a \rightarrow c$$
$$b \rightarrow d$$
The relation is in

Video Solution
Question 50

Consider the set of relations given below and the SQL query that follows:
Students : ( Roll_number, Name, Date_of_birth )
Courses: (Course_number, Course_name,Instructor)
Grades: (Roll_number, Course_number, Grade)
SELECT DISTINCT Name
FROM Students, Courses, Grades
WHERE Students.Roll_number = Grades.Roll_number
AND Courses.Instructor = Sriram
AND Courses.Course_number = Grades.Course_mummiber
AND Grades.Grade = A
Which ofthe following sets is computed by the above query?

Video Solution
cracku

Boost your Prep!

Download App