Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

C# Chapter 2 Review cloned 10/28/2019

star
star
star
star
star
Last updated over 6 years ago
19 Nsɛmmisa
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

1. A variable declaration must contain all of the following except a(n) ______________.

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

Which of the following is true of variable declarations?

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

Assume that you have two variables declared as int var1 = 3; and int var2 = 8;. Which of the following would display 838?

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

Assume that you have a variable declared as int var1 = 3;. Which of the following would display X 3X?

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

Assume that you have a variable declared as int varl = 3;. What is the value of 22 % var1?

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

Assume that you have a variable declared as int var1 = 3;. What is the value of 22 / var1?

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

What is the value of the expression 4 + 2 * 3?

Asemmisa {{asɛmmisaAhyɛnsode}}
8.

Assume that you have a variable declared as int var1 = 3;. If var2 = ++var1, what is the value of var2?

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

Assume that you have a variable declared as int var1 = 3;. If var2 = var1++, what is the value of var2?

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

A variable that can hold the two values true and false is of type ______________.

Asemmisa {{asɛmmisaAhyɛnsode}}
11.

Which of the following is not a C# comparison operator?

Asemmisa {{asɛmmisaAhyɛnsode}}
12.

What is the value of the expression 6 >= 7?

Asemmisa {{asɛmmisaAhyɛnsode}}
13.

Which of the following C# types cannot contain floating-point numbers?

Asemmisa {{asɛmmisaAhyɛnsode}}
14.

Assume that you have declared a variable as double hourly = 13.00;. What will the statement WriteLine(hourly); display?

Asemmisa {{asɛmmisaAhyɛnsode}}
15.

Assume that you have declared a variable as double salary = 45000.00;. Which of the following will display $45,000?

Asemmisa {{asɛmmisaAhyɛnsode}}
16.

When you perform arithmetic operations with operands of different types, such as adding an int and a float____________________ .

Asemmisa {{asɛmmisaAhyɛnsode}}
17.

Unicode is_____________________.

Asemmisa {{asɛmmisaAhyɛnsode}}
18.

Which of the following declares a variable that can hold the word computer?

Asemmisa {{asɛmmisaAhyɛnsode}}
19.

Which of the following compares two string variables named string1 and string2 to determine if their contents are equal?