Computer Science Archive: Questions from October 08, 2022
-
If we apply one beta-reduction (with renaming only if necessary) to the expression \[ (\lambda y \cdot \lambda y \cdot y \text { y })(y \text { y) } \] we obtain the expression \[ \begin{array}{l} (\l2 answers -
User input a string: \( \mathbf{A}= \) "string" Write a small program to assign 3 times the content of \( \boldsymbol{A} \) to a new \( \mathbf{B} \) string variable. Print both \( A \) and \( B \). P2 answers -
Given A="BANANA" write a small program to assign 3 times the reversed content of \( A \) to a new B variable. Print both A and B. Respuesta: (sistema de penalizaciĆ³n: \( 0,10,20, \ldots \% \) )2 answers -
Python programing language
User input a string: \( \mathbf{A}= \) "string" Write a small program to assign 3 times the content of \( \mathbf{A} \) to a new \( B \) string variable. Print both \( A \) and \( B \). Por ejemplo: R2 answers