# All India Computer Science Engineering (CSE) Group

## In analyzing the compilation of PL/I program the description “resolving symbolic address (labies) and generating machine language” is associated witha)Assembly and outputb)Codegenerationc)Storage assignmentd)Syntax analysisCorrect answer is option 'A'. Can you explain this answer?

 Partho Joshi answered  •  5 hours ago
Assembly and Output

Description:
Resolving symbolic addresses (labels) and generating machine language is a crucial step in the compilation process of a PL/I program. This process involves converting the high-level code written in PL/I into machine-readable instructions that can be executed by the computer.

Assembly:
During the assembly phase of
... more

## Statements: Some books are pens. No pen is pencil.Conclusions:I. Some pens are books.II. Some pencils are books.III. Some books are not pencils.IV. All pencils are books.a)Only I followsb)Only II and III followc)Only I and III followd)Only I and II followCorrect answer is option 'C'. Can you explain this answer?

 Crack Gate answered  •  23 hours ago
Since one premise is particular and the other negative, the conclusion must be particular negative and should not contain the middle term. Thus, III follows. I is the converse of the first premise and so it also holds.

## In a row of 60 persons, Ganesh is 26th from left end. Find out his position from the right end.a)35b)36c)34d)Can’t be determinedCorrect answer is option 'A'. Can you explain this answer?

 Gate Gurus answered  •  23 hours ago
Short cut formula: The total number of person =  Position of Ganesh from the right ends + Position of Ganesh from the left ends – 1
Now, Position of Ganesh from the right ends = The total number of person – Position of Ganesh from the left ends + 1
= 60 – 26 + 1 = 35.
Hence, Ganesh is 35th from the right ends.

## Pick the odd man out?a)justb)fairc)equitabled)biasedCorrect answer is option 'D'. Can you explain this answer?

 Gate Gurus answered  •  23 hours ago
The others signify honesty.

## What letter is next in this sequence?O, T, T, F, F, S, S, E, ?a)Eb)Oc)Nd)MCorrect answer is option 'C'. Can you explain this answer?

 Crack Gate answered  •  23 hours ago
They are all the first letters of the numbers spelt in order.
O – One
T – Two
T – Three
F – Four
F – Five
S – Six
S – Seven
E – Eight
N – Nine

## If A + B means A is the mother of B;A – B means A is the brother B;A % B means A is the father of B andA x B means A is the sister of B,Q. Which of the following shows that P is the maternal uncle of Q?a)Q – N + M x Pb)P + S x N – Qc)P – M + N x Qd)Q – S % PCorrect answer is option 'C'. Can you explain this answer?

 Gate Gurus answered  •  23 hours ago
P - M → P is the brother of M
M + N → M is the mother of N
N x Q → N is the sister of Q
Therefore, P is the maternal uncle of Q.

## In a certain code language COMPUTER is written as RFUVQNPC. How will MEDICINE be written in that code language?a)MFEDJJOEb)EOJDEJFMc)MFEJDJOEd)EOJDJEFMCorrect answer is option 'D'. Can you explain this answer?

 Gate Gurus answered  •  23 hours ago
• There are 8 letters in the word.
• The coded word can be obtained by taking the immediately following letters of word, expect the first and the last letters of the given word but in the reverse order.
• That means, in the coded form the first and the last letters have been interchanged while the remaining letters are coded by taking their immediate next letters in the revers... more

## In a stream, Q lies in between P and R such that it is equidistant from both P and R. A boat can go from P to Q and back in 6 hours 30 minutes while it goes from P to R in 9 hours. How long would it take to go from R to P?a)4 hb)4.25 hc)3.75 hd)4.5 hCorrect answer is option 'A'. Can you explain this answer?

 Gate Gurus answered  •  23 hours ago
Since P to R is double the distance of P to Q,
Therefore, it is evident that the time taken from P to R and back would be double the time taken from P to Q and back (i.e. double of 6.5 hours = 13 hours).
Since going from P to R takes 9 hours, coming back from R to P would take 4 hours i.e. 13- 9 = 4
So Option A is correct

## If 20% of a = b, then b% of 20 is the same as:a)4% of ab)5% of ac)20% of ad)None of theseCorrect answer is option 'A'. Can you explain this answer?

 Gate Gurus answered  •  23 hours ago
20% of a = b ⇒ (20/100)a = b
b% of 20 =(b/100) x 20 = (20a/100) x (1/100) x (20) = 4a/100 = 4% of a.

## Three partners shared the profit in a business in the ratio 5 : 7 : 8. They had partnered for 14 months, 8 months and 7 months respectively. What was the ratio of their investments?a)5 : 7 : 8b)20 : 49 : 64c)38 : 28 : 21d)None of theseCorrect answer is option 'B'. Can you explain this answer?

 Crack Gate answered  •  23 hours ago
Let their investments be Rs.x for 14 months,
Rs.y for 8 months and Rs.z for 7 months respectively.
Then, 14x :8y :7z = 5 :7 :8.

(Multiply by 20)⇒20:49:64
x : y : z = 20:49:64.

## One red flag, three white flags and two blue flags are arranged in a line such that,A. no two adjacent flags are of the same colourB. the flags at the two ends of the line are of different colours.In how many different ways can the flags be arranged?a)6b)4c)10d)2Correct answer is option 'A'. Can you explain this answer?

 Crack Gate answered  •  23 hours ago
The three white flags can be arranged in the following two ways:
__ W __ W __ W or W __ W __ W __
In the blanks, the 2 blue and one red flag can be arranged in 3 ways.
So, the total number of arrangements is 2*3 = 6

## Pick the odd one out.a)Subroutinesb)Multiple tracksc)Shifting overd)RecursionCorrect answer is option 'D'. Can you explain this answer?

Recursion is the odd one out
Recursion is the odd one out among the given options because it is a programming concept that involves a function calling itself. Let's break down each option to understand why recursion is different:

Subroutines: Subroutines are reusable blocks of code that can be called from different parts of a program to perform a specific task. They h
... more

## Distributed arbitration makes use of ______a)BUS masterb)Processorc)Arbitratord)4-bit IDCorrect answer is option 'D'. Can you explain this answer?

 Rohan Patel answered  •  2 days ago
4-bit ID
Distributed arbitration in a system involves multiple devices contending for access to a shared resource or communication channel. In this process, each device is assigned a unique identifier, often in the form of a 4-bit ID. This ID helps in distinguishing between different devices and determining the priority of access when conflicts arise.

Benefits of using a
... more
- Uniqueness: Each device is assigned a distinct 4-bit ID, preventing any overlap or confusion in the arbitration process.
- Priority:
- Conflict resolution: In cases where multiple devices are vying for access simultaneously, the distributed arbitration system can useiv based on their assigned 4-bit IDs.
When devices in a system contend for access to a shared resource or communication channel, the 4-bit IDs play a crucial role in determining the priority of access. Each device is assigned a unique identifier, and conflicts are resolved based on the priority of access assigned to each device through these IDs. This helps in ensuring a fair and efficient allocation of resources in the system.

## Which operator is the most important while assigning any instruction as register indirect instruction?a)\$b)#c)@d)&Correct answer is option 'C'. Can you explain this answer?

 Harsh Sen answered  •  2 days ago
Register Indirect Addressing in Assembly Language
Register indirect addressing is a method used in assembly language programming where the operand is accessed indirectly through a register. In order to assign an instruction as a register indirect instruction, the most important operator is the "@" symbol.

Importance of the "@" Operator
- The "@" symbol is used to
... more

## Let L be the language on A = {a,b,c} which consists of all words of form w = arbsct where r, s, t > 0. Which of the following is valid regular expression 'r' such that L = L(r)?1. r = a∗b∗c∗2. r = aa∗bb∗cc∗3. r = aa∗b∗cc∗4. r = aa∗b∗c∗Correct answer is '2'. Can you explain this answer?

 Yashvi Das answered  •  2 days ago
Explanation:

Regular Expression Analysis:
- The regular expression r = aa*bb*cc* represents the language L as it allows for any combination of 'a', 'b', and 'c' with at least one occurrence of each within the word.
- The '*' symbol allows for zero or more occurrences of the preceding character.
- Therefore, the regular expression matches words of the form ar
... more

## The five items P,Q,R,S and T are pushed in a stack, one after the other starting from P. The stack is popped four times and each element is inserted in a queue. Then two elements are deleted from the queue and pushed back on the stack. now one item is popped from the stack. The popped item is:  a)Pb)Rc)Qd)SCorrect answer is option 'D'. Can you explain this answer?

 Yashvi Das answered  •  2 days ago
Explanation:
- Pushing items into the stack:
- Items P, Q, R, S, and T are pushed into the stack, one after the other starting from P.
- Popping items from the stack and inserting into the queue:
- The stack is popped four times, and each element is inserted into a queue. So, the order of elements in the queue will be T, S, R, Q.
- Deleting two el
... more
- Two elements are deleted from the queue, so the remaining elements are R and Q. These elements are then pushed back onto the stack.
- Popping one item from the stack:
- Finally, one item is popped from the stack. Since the last two elements pushed onto the stack were R and Q, the item that will be popped from the stack is S.
Therefore, the correct answer is option 'D' - S.

## What is the return value of the function foo when it is called as foo(345, 10) ?a)345b)12c)5d)3Correct answer is option 'B'. Can you explain this answer?

 Yashvi Das answered  •  2 days ago
Explanation:

Function Definition:
- The function foo takes two parameters, a and b.
- Inside the function, it returns the result of a divided by b.

Given values:
- a = 345
- b = 10

Calculation:
- When foo(345, 10) is called, it will return the result of 345 divided by 10.
- 345 divided by 10 equals 34 remain
... more

## Identify the regular expression which represents the language containing all strings of a's and b's where each string contains at least two b'sa)(a+b)*ba*bb)(a+b)*ba*bac)(a+b)*ba*d)None of the aboveCorrect answer is option 'C'. Can you explain this answer?

 Yashvi Das answered  •  2 days ago
Regular Expression Explanation:

a) (a+b)*ba*
- This part of the regular expression allows for any number of occurrences of 'a' or 'b' followed by 'ba*' at the end. This covers strings that have 'b' followed by any number of 'a's.

b) (a+b)*ba*b
- This part ensures that the string contains at least one 'b' followed by 'a' before any additional 'b'
... more

## Which of the following is the unit digit in the product of {(341)491 x (625)317 x (6374)1793}?a)3b)7c)0d)8Correct answer is option 'C'. Can you explain this answer?

 Jay Basu answered  •  3 days ago
Explanation:

Step 1: Finding the unit digit of each number
- (341)^491: The unit digit of 341 when raised to any power follows a pattern. The unit digit of 341^1 is 1, 341^2 is 1, 341^3 is 1, and so on. Therefore, the unit digit of 341^491 will also be 1.
- (625)^317: The unit digit of 625 when raised to any power is 5. Therefore, the unit digit of 625^317 will b
... more

## The TCP/IP model does not have ____ and _____ layers but _____ layer include required functions of these layers.a)Session, Application, Presentationb)Presentation, Application, Session c)Session, Presentation, Applicationd)Link, Internet, TransportCorrect answer is option 'C'. Can you explain this answer?

 Tushar Unni answered  •  3 days ago
Explanation:

Missing Layers:
- The TCP/IP model does not have Session and Presentation layers like the OSI model.

Inclusion of Required Functions:
- The required functions of the Session and Presentation layers are included in the Application layer of the TCP/IP model.
- The Session layer of the OSI model manages sessions between applicatio
... more

## If the sum of two numbers is considered as 'a' and their product is considered as 'b', then what will be the sum of their reciprocals?a)a/bb)1/b + 1/bc)b/ad)abCorrect answer is option 'A'. Can you explain this answer?

 Ayush Mehta answered  •  4 days ago
Explanation:

Given:
Let the two numbers be x and y.
Sum of the numbers = a = x + y
Product of the numbers = b = x * y

Calculation:
Reciprocal of a number is 1 divided by the number.
Reciprocal of x = 1/x
Reciprocal of y = 1/y
The sum of reciprocals of x and y can be calculated as:
(1/x) + (1/y) = (y + x) / (x * y)
... more

## The port that will source a current of 500 micro amperes when being used as input ports isa)0.5 mAb)0.25 mAc)250 micro amperesd)500 micro amperesCorrect answer is option 'D'. Can you explain this answer?

 Ayush Mehta answered  •  4 days ago
Explanation:
The correct answer is option 'D' which is 500 micro amperes. Let's break down why this is the correct choice:

Understanding Current:
- Current is the flow of electric charge in a circuit. It is measured in amperes (A) or micro amperes (µA), which is one-millionth of an ampere.

Given Information:
- The port is sourcing a current
... more

## A club with x members is organized into tour committees such that(a) each member is in exactly two committees,(b) any two committees have exactly one member in common.Then x hasa)exactly two values both between 4 and 8b)exactly one value and this lies between 4 and 8c)exactly two values both between 8 and 16d)exactly one value and this lies between 8 and 16.Correct answer is option 'B'. Can you explain this answer?

 Arindam Malik answered  •  4 days ago
Explanation:

Given Conditions:
- Each member is in exactly two committees.
- Any two committees have exactly one member in common.

Reasoning:
- Let's assume there are 'x' members in the club.
- Each member is in exactly two committees, which means there are a total of 2x committee memberships.
- Since any two committees have exact
... more