Document information
- University
- Politecnico di Milano
- Degree programme
- Aerospace Engineering
- Subject
- Informatica
- Material language
- Italian
- Classification
- Exam · Full exam
- Content
- Exam paper only
- Original format
- Text
- Searchable text
Study material for Informatica, shared by the Studwiz community and reviewed by moderators.
Study material for Informatica, shared by the Studwiz community and reviewed by moderators.
Import quality: text was extracted directly from the original document.
Representative passages recognised in different parts of the material. The full extracted text remains available to search, while this compact preview makes the page easier to read.
Politecnico di Milano Anno Accademico 2019/2020 Informatica per Aerospaziali Appello del 12 febbraio 2021 Prof. F. Distante Matricola _____________________ __________________________________ Cognome ___________________________ Nome ___________________________ Istruzioni 1. La durata della pr ova è di 1,5 ore. 2. Compilare i campi qui sopra (matricola nome e cognome) 3. Scrivere (in WORD) la risposta o il progr amma richiesto di seguito alla domanda tra **INIZIO RISPOSTA** e **FINE RISPOSTA** (eventualmente si aggiungono automaticamente righe mentre scrivete) 4. Salvare il file in formato “.doc” ant eponendo al nome del file il CODICE PERSONA e senza modificare il resto del nome. 5. Caricare il file come indicato da FORMS Voti parziali degli esercizi Es. 1 Es. 2 Es. 3 Es. 4 Es. 5 Voto max. 4 3 10 8 8 Voto Domanda 1 Scrivere una funzione in C che riceve dal chiam ante tre numeri interi e verifica se queste possono essere le tre dimensioni dei lati di un triangolo rettangolo: in caso affermativo restituisce 1, altrimenti 0. **** INIZIO RISPOSTA Domanda 2 Si considerino i due numeri A = +54(base 10) e B = -37(base 10). Li si rappresenti entrambi in base 2 notazione complemento a due. Si effettuino poi, in complemento a due, le operazioni A+B e A–B indicando esplicitamente se si verifica overflow oppure no (motivando la risposta). **** INIZIO RISPOSTA Domanda 3 Scrivere un programma in C che acquisisc e dall’utente due stringhe al massimo lungh e 15 caratteri (si supponga che l’utente non ec ceda tale limite) e verifica (emettendo un apposito messaggio) se una è l’anagramma dell’altra (si ipotizzi che le stringhe contengano SOLO caratteri alfabetici minuscoli a-z) **** INIZIO RISPOSTA Domanda 4 Scrivere una funzione in C che riceve in ingresso due teste di lista T1 e T2…
First page of the document.