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
Qual è il significato del seguente codice?
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 Wayground
6 questions
M6L3

Quiz
•
9th - 12th Grade
10 questions
Teoria Informatica 4 12_22

Quiz
•
11th Grade
5 questions
Info 3C

Quiz
•
11th Grade
8 questions
Cifratura con tabella ASCII e XOR

Quiz
•
9th - 12th Grade
15 questions
OOP in java(2)

Quiz
•
12th Grade
10 questions
Computer Hardware Quiz

Quiz
•
12th Grade
10 questions
Architettura di Rete e Formati per lo Scambio dei Dati

Quiz
•
12th Grade
14 questions
Automi a stati finiti

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade