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
6 questions
ORD - STEM Special Edition Lezione 1

Quiz
•
1st Grade - Professio...
10 questions
Informatica di base 1

Quiz
•
11th Grade
7 questions
Linguaggio C - Ricorsione

Quiz
•
11th - 12th Grade
14 questions
Funzioni Python

Quiz
•
12th Grade
10 questions
Conoscenza del Computer

Quiz
•
12th Grade
12 questions
4B_java_Novembre2021

Quiz
•
11th Grade
15 questions
Concetti di Informatica

Quiz
•
12th Grade
11 questions
Excel 1

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University