C# Variables and Data Types

C# Variables and Data Types

8th Grade - University

9 Qs

quiz-placeholder

Similar activities

Pętle, instrukcje warunkowe

Pętle, instrukcje warunkowe

9th - 12th Grade

12 Qs

UNIT 1.8 ELCE

UNIT 1.8 ELCE

10th Grade

14 Qs

Materi Search Engine

Materi Search Engine

University

10 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

Grade-8 Ch-2 Advanced Features of Excel Quiz

Grade-8 Ch-2 Advanced Features of Excel Quiz

8th Grade

12 Qs

TCP/IP & other protocols [A Level]

TCP/IP & other protocols [A Level]

12th Grade

14 Qs

Teknologi Layanan Jaringan  Soal 1 - XI

Teknologi Layanan Jaringan Soal 1 - XI

11th Grade

12 Qs

coding

coding

7th Grade - University

14 Qs

C# Variables and Data Types

C# Variables and Data Types

Assessment

Quiz

Computers

8th Grade - University

Hard

Created by

Paul Shaddick

Used 174+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which best describes a variable?

Variables store program data while code runs
Variables control memory space
Variables are individual values in a database table
Variables enable programmers to work with different input devices

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is false?

Variable values can change while a program runs
Variables make it possible to process almost any kind of data
All variables use the same amount of memory
Variables must be stored in a database or file if they are to be retained when the program ends

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To use the value of a variable you need to know:

The size of the memory used by its data type
The source of the data being stored
The physical address location in memory
A name to reference the data 

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following data types cannot store the number 47,255?

decimal
int
string
byte

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C# the syntax to declare a variable is:
  datatype variablename;
Which of the following
C# declarations are invalid?

byte userage;
integer intScore; 
string STR_NAME; 
decimal DeCtuRn;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which holds integers or real numbers with 28 digit precision? (128 bits)

int
decimal
bool
string

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which holds alphanumerics using a Unicode encoding? (size varies)

bool
int
decimal
string

8.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which holds whole numbers? (32 bits)

string
bool
int
decimal

9.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which holds true or false?
 (8 bits)

bool
int
decimal
string