IT Exam 2025

(I)

Write a program in T++ computing the function: 
f(x,y) = x + y + 2

(II)

Write a program in T++ computing the function: 
f(x) = 3x - 1 (where f(0) = 0)


(III)

Write a program in T++ computing the function: 
f(x) = 1 if x = 0 and f(x) = x otherwise


(IV)

Write the logical formula corresponding to the following electrical circuit:

      |-----/ A ----|       |-----/ A -----|
      |             |       |              |
------|             |-------|              |--------
      |             |       |              |
      |-----/ B ----|       |-----/ C -----|


Build the equivalent circuit to (IV) where each switch is used only once 
and write the corresponding formula.



(V)


Solve the equation 37 * x = 1 mod 344


(VI)

Compute 1 0 0 1 1 * 1 1 1 1 (in binary) and write the answer in decimal format. 
Write your computations (including the carry bits)



(VII)

Compute 1 1 0 1 1 1 1 1 : 1 0 0 1 0 (in binary) and write the answer 
in decimal format. Write your computations in binary format.


(VIII)


We use the following code: A = 2, M = 3, P = 5. Numbers are encoded as usual.
We want to decrypt the time of our attack by means of the following 
encrypting method:

Date: monthday (month without leading zero, day with leading zero)
Hour: hourminute (hour without leading zero, minute with leading zero)
Format: PM or AM
Code: Date--Hour--Format
E.g.: 223--145--23 --> February 23, 1:45 AM
E.g.: 202--1259--53 --> February 2, 12:59 PM
E.g.: 101--1100--53 --> January 1, 11:00 PM
E.g.: 1206--606--23 ---> December 6, 6:06 AM
Each fragment must be encrypted separately. Thus we need to encrypt 
separetely 3 numbers (e.g. 101,1100,53)

The following encrypted message 315--1223--198 has been sent using 
the public key (e,n), where n = 31 * 41 and e = 17.
Decrypt the message and write the date and time of the planned attack. 
Write all your computations.

You can use the online calculator: 
https://www.omnicalculator.com/math/power-modulo


(IX)

Bob's private key is (d,n), where d = 31 and n = 23 * 29. 
What is his public key? 
Encrypt the message L-O-V-E using ASCII encoding 
(A = 65,..., Z=90); that is, encrypt 76-79-86-69.

You can use the online calculator: 
https://www.omnicalculator.com/math/power-modulo


(X)

Covert the following citation into APA7:

Kimlin Tam Ashing-Giwa, Geraldine Padilla, Judith Tejero, Janet Kraemer, 
Karen Wright, Anne Coscarelli, Sheila Clayton, Imani Williams, Dawn Hills: 
Understanding the breast cancer experience of women: 
A qualitative study of African American, Asian American, Latina 
and Caucasian cancer survivors. In: Psycho‐Oncology, 13(6), pp. 408-428, 
John Wiley & Sons Ltd 2004, 
https://onlinelibrary.wiley.com/doi/10.1002/pon.750 & https://doi.org/10.1002/pon.750


Luke Haile, Michael Gallagher, Robert J. Robertson: Perceived Exertion 
Laboratory Manual. From Standard Practice to Contemporary Application. 
Springer 2015, https://doi.org/10.1007/978-1-4939-1917-8 & 
https://link.springer.com/book/10.1007/978-1-4939-1917-8