Qual è il significato del seguente codice?
Linguaggio C - Basi

Quiz
•
Computers
•
11th - 12th Grade
•
Hard

Michele Dusi
Used 40+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Dichiara una funzione di tipo stringa con due parametri.
Dichiara due variabili, una contenente una stringa e una un carattere.
Inizializza due stringhe chiamate "name" e "iniziale".
Moltiplica il nome per il carattere (char) iniziale.
Inizializza due variabili puntatore a carattere.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual è il significato di questo codice?
Dichiara una variabile di tipo intero.
Inizializza una variabile di tipo numerico.
Allunga un intero al massimo di 2048 byte.
Imposta la dimensione massima del programma.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Osservando il codice contenuto nell'immagine, cosa possiamo affermare con certezza?
La funzione presenta almeno un errore di sintassi.
La funzione effettua un casting.
La funzione restituisce sempre la somma dei numeri passati come parametro.
La procedura ha un parametro void non visibile.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Osserva il codice contenuto nell'immagine. Che cosa possiamo affermare con certezza?
Ogni parametro può essere di tipo int oppure di tipo long.
La funzione non restituisce alcun valore.
L'operatore "+" effettua una somma fra i due parametri, che poi viene convertita ad intero.
I due parametri vengono convertiti a tipo int, poi la loro somma viene restituita.
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Quali di questi sono tipi di variabile validi in linguaggio C?
short int
boolean
int*
unsigned long int
double
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Osserva il seguente codice. Se eseguito, che cosa viene stampato?
Tutti i numeri interi da 50 a 0 (compresi).
Tutti i numeri interi da 0 a 50 (compresi).
Tutti i numeri interi da 50 a 1 (compresi).
Tutti i numeri interi da 49 a 0 (compresi).
Il codice contiene un errore, perciò non compilerebbe.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Eseguendo il seguente codice, che cosa viene stampato a schermo?
64
99
100
128
1
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
Quiz di PHP

Quiz
•
12th Grade
11 questions
Excel 1

Quiz
•
9th Grade - University
10 questions
Flowgorithm

Quiz
•
12th Grade
9 questions
TEST D'INGRESSO_C

Quiz
•
10th - 12th Grade
10 questions
Le basi C++

Quiz
•
11th Grade
10 questions
Conoscenza del Computer

Quiz
•
12th Grade
15 questions
Quiz sul Calcolo del Minimo in un Array di Interi

Quiz
•
11th Grade
13 questions
5ITI_Algebra Relazionale

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade