February 13, 2024

Question 10092 –

An array A contains n≥1 positive integers in the locations A[1], A[2],… A[n]. The following program fragment prints the length of a shortest sequence of consecutive […]
February 13, 2024

Question 10096 –

Given that L is a language accepted by a finite state machine, show that LP and LR are also accepted by some finite state machines, where […]
February 13, 2024

Question 10097 –

A language L is a subset of Pascal with the following constructs: (a) Expressions involving the operators ‘+’ and ‘<‘ only (b) Assignment statements (c) ‘while’ […]
February 13, 2024

Question 10099 –

Consider the following program fragment in Pascal: Program Main; var X : integer; procedure A: var Y : integer; procedure B: var Z : integer; procedure […]
error: Alert: Content selection is disabled!!