Document information
- University
- Politecnico di Milano
- Degree programme
- Management Engineering
- Subject
- Informatica - A
- Material language
- Italian
- Classification
- Exam · Full exam
- Content
- Exam paper only
- Original format
- Text
- Searchable text
Study material for Informatica - A, shared by the Studwiz community and reviewed by moderators.
Study material for Informatica - A, 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.
Corrected Esame di Informatica A. 2017–2018 Parte A Proff. Florian Daniel, Alessandro Margara, Gerardo Pelosi 25 Luglio 2018 Nome e cognome: Matricola o codice persona: Firma: Istruzioni Durata: 35 minuti Ogni risposta corretta vale 0,5 punti; una risposta sbagliata o lasciata vuota vale 0. La prova si intende superata se si risponde correttamente ad almeno 5 domande su 8. Non è consentito l’uso di appunti, calcolatrici, dispositivi elettronici di qualsiasi tipo. Question 1 Calcolare la somma di0100001c2 e −20dec usando 7 bit per la codifica dei numeri. Dhex no overflow 1101100c2 −13dec Dhex overflow Question 2 Calcolare la somma di1101100c2 e 33dec usando 7 bit per la codifica dei numeri. 13dec no overflow 13dec overflow 0100001c2 Dhex overflow Question 3 Quale delle espressioni è equivalente alla seguente? a + b · a Rappresentazione alternativa: A OR NOT (NOT b AND a) 1 0 a · b a + b b · a Question 4 Quale delle espressioni è equivalente alla seguente? a · b · a Rappresentazione alternativa: a AND NOT (NOT b AND a) 0 1 a a · b b Question 5 Dato il prototipo di funzione int * f(int **x); e le dichiarazioni di variabili int **a, *b; stabilire quale delle seguenti invocazioni di funzionenon rispetta il prototipo. b = f(&b) b = f(a) *a = f(a) a = f(&b) *a = f(&b) Corrected Question 6 Data la seguente dichiarazione di tipo e variabili, calcolare sizeof(tipo), sapendo che sizeof(double) == 8 e sizeof(char *) == 8 . typedef struct { double d[5]; char *x[10]; } struttura; typedef struttura tipo[2]; 50 96 120 100 240 Question 7 Data la seguente dichiarazione di tipo e variabili, calcolare sizeof(struttura), sapendo che sizeof(double) == 8 e sizeof(char *) == 8 . typedef struct { double d[5]; char *x[10]; } struttura; typedef struttura tipo[2]; 240 50 96 120 100 Question 8 Scrivere…
First page of the document.