← Back
ExamFull examExam paper onlyItalian

14 09 19a

Study material for Informatica - A, shared by the Studwiz community and reviewed by moderators.

Informatica - AFull exam

Document information

What's included in this study material

Study material for Informatica - A, shared by the Studwiz community and reviewed by moderators.

Import quality: text was extracted directly from the original document.

Extracted content from the 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.

Page 1

Catalog Esame di Informatica A. 2017–2018 Parte A Proff. Florian Daniel, Alessandro Margara, Gerardo Pelosi 14 Settembre 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. Domanda [ binario1] Quanti bit e quante cifre sono necessari per rappresentare il numero 254 in complemento a 2 (C2) e in esadecimale (hex)? 9 bit / 2 cifre 10 bit / 3 cifre 9 bit / 3 cifre 10 bit / 2 cifre Domanda [ binario2] Quanti bit e quante cifre sono necessari per rappresentare il numero 127 in complemento a 2 (C2) e in esadecimale (hex)? 8 bit / 2 cifre 8 bit / 3 cifre 9 bit / 3 cifre 9 bit / 2 cifre Domanda [ bool1] Data la seguente tabella di verità, quale delle espressioni è equivalente a not(X)? a b X 0 0 0 0 1 1 1 0 0 1 1 0 1 a + b a + b a · b Domanda [bool2] Data la seguente tabella di verità, quale delle espressioni è equivalente ad X? a b X 0 0 0 0 1 1 1 0 0 1 1 0 1 a · b a + b a · b Domanda [ punt1] Dato il prototipo di funzione int * f(int a, int *b); stabilire quale delle seguenti istruzioni di ritorno è corretto usare all’interno della funzione. return &(a + b); return a; return *b; return b; Catalog Domanda [ typedef1] Data la seguente dichiarazione di tipo e variabili, calcolare sizeof(tipo), sapendo chesizeof(float) == 4 , sizeof(double) == 8 e sizeof(char) == 1 . typedef struct { float d[5]; char x[10]; } struttura; typedef double tipo[10]; 160 80 40 30 300 Domanda [ fun1] Scrivere cosa stampa il seguente programma #include <stdio.h> void foo (int x) { if (x > 0) { printf("%d ", x--);…

Preview

First page of the document.

First page: 14 09 19a