Recent questions tagged cil-2026

1 1 vote
0 0 answers
19
19 views
$\_\_\_\_$ is NOT a valid token typically generated by a lexical analyzer.CompilerKeywordParserVariable
1 1 vote
0 0 answers
21
21 views
In SRTF (Shortest Remaining Time First) scheduling, which process is selected next?One with the highest priorityOne with the shortest remaining burst timeOne with the lon...
1 1 vote
0 0 answers
19
19 views
In a circular queue implemented using an array, how is the rear counter updated after an enqueue operation?Reset to zero unconditionallyNo update to rear pointer is neede...
1 1 vote
0 0 answers
17
17 views
If a measurement is recorded as $12.8$ cm and the true value is $13.0$ cm , what is the absolute error?$0$ cm$0.2$ cm$0.1$ cm$1.2$ cm
1 1 vote
0 0 answers
20
20 views
Given the $2$D arrayint arr[3][3] ={{1,2,3},{4,5,6},{7,8,9}};what is the value of*(*(arr+1)+2)?$6$$3$$8$$5$
0 0 votes
0 0 answers
19
19 views
What is the best approach to delete an element from an unsorted array?Sort the array and then deleteReplace the element with the last element and reduce the array sizeRep...
0 0 votes
0 0 answers
18
18 views
Which statement best describes both an advantage and a disadvantage of Insertion Sort?Efficient for nearly sorted data due to adaptability but impractical for large datas...
1 1 vote
0 0 answers
21
21 views
What is the purpose of the Root Name Server in the DNS hierarchy?It resolves domain names directlyIt provides IP addresses of Authoritative Name Servers for Top-Level Dom...
1 1 vote
0 0 answers
21
21 views
A system must recognize any number of consecutive '$\mathrm{a}$'s. Which regular expression correctly models this?$\mathrm{ab}^*$$\mathrm{a}^*$$\mathrm{a}+$$\mathrm{a}?$
1 1 vote
0 0 answers
20
20 views
Which one of the following statements is true for a Hermitian matrix?All elements are positive numbersAll diagonal elements are real numbersSum of diagonal elements is ze...
1 1 vote
0 0 answers
17
17 views
Which notation represents the worst-case time complexity?Big Omega $(\Omega)$Small $\mathrm{o}$ $\mathrm{(o)}$Big $\mathrm{O}(\mathrm{O})$Big Theta $(\Theta)$
1 1 vote
0 0 answers
21
21 views
Which constraint ensures that a foreign key value in one table either matches a primary key in another table or is NULL (if allowed) in DBMS?Domain constraintKey constrai...
1 1 vote
0 0 answers
25
25 views
In the context of algorithm design and analysis, which of the following represents the initial step in the design process?Implement the algorithm in a Computer programmin...
0 0 votes
0 0 answers
19
19 views
Which statement correctly differentiates between SRAM and DRAM?DRAM is faster and more expensive than SRAMSRAM requires periodic refreshing; DRAM does notSRAM is faster b...
0 0 votes
0 0 answers
20
20 views
In computer networks, what is the primary difference between a service and a protocol?Both service and protocol define how operations are performed.A service defines what...
0 0 votes
0 0 answers
18
18 views
Which statement about left recursion in context-free grammars is accurate?Left recursion can be direct or indirect and may lead to infinite recursion in top-down parsers....
0 0 votes
0 0 answers
20
20 views
Consider the following grammar $\mathrm{G}$:$$\begin{array}{l}\mathrm{E} \rightarrow \mathrm{~T} \mathrm{E}^{\prime} \\\mathrm{E}^{\prime} \rightarrow+\mathrm{T} \mathrm{...
0 0 votes
0 0 answers
22
22 views
Identify the correct option for project operation in relational algebra:Statement-$1$: The project operation is a binary operation that returns its argument relation, wit...
0 0 votes
0 0 answers
21
21 views
Which of the following statements is true regarding the differentiability of a function at a point?A function may be discontinuous at a point and still be differentiable ...
0 0 votes
0 0 answers
21
21 views
You are tasked to construct a binary search tree (BST) from a stream of incoming sensor readings, where each reading is processed as it arrives. Midway, the sensor malfun...
1 1 vote
0 0 answers
28
28 views
A $32$-bit $\mathrm{IEEE~} 754$ single-precision floating-point number is represented as:$0100 \: 0001 \: 0100 \: 1001 \: 0000 \: 0000 \: 0000 \: 0000$What is the decimal...
0 0 votes
0 0 answers
22
22 views
Which scenario is least suitable for sparse matrix representation in computer memory?A matrix where most elements are nonzeroA diagonal matrixA large matrix with many zer...
0 0 votes
0 0 answers
19
19 views
Which of the following statements are TRUE about server and client side scripting in computer networks?$\text{S}1$: PHP is used for server side scripting$\text{S}2$: HTML...
1 1 vote
0 0 answers
23
23 views
Which statement best describes a zero-address instruction in stack-based architectures?The instruction contains two explicit operand fields.Operands are stored in accumul...
1 1 vote
0 0 answers
20
20 views
Given a code snippet in C programming language as follows:int a = 10; int *p; int w; p = &a;Which statement correctly assigns the address of 'p' to 'w'?w=p;w = &p;w=&&a;...
1 1 vote
0 0 answers
20
20 views
Which of the following correctly describes loopback addressing?Range from $127.0 .0 .0$ to $127.255 .255 .255$ used for internal host testing.Used to map private IP to pu...
1 1 vote
0 0 answers
21
21 views
Which of the following traversals can be used to reconstruct a unique binary tree, if combined with Preorder?InorderPreorder alone is enoughPostorderLevel Order
1 1 vote
0 0 answers
18
18 views
In a machine instruction, what does the opcode primarily define?The size of the instruction in bits.The memory address where data is stored.The type of operation the proc...
1 1 vote
0 0 answers
37
37 views
Why is it considered good practice to close files explicitly even if the programming language runtime may close them at program termination?To guarantee file permissions ...
1 1 vote
0 0 answers
23
23 views
Consider the following declaration of array in C language.int arr[5];Which of the following statements is TRUE about array '$\operatorname{arr}$'?The size of array '$\ope...