ISDS 505 Exam 1 Latest 2025 Questions and Answers 100% Accuracy
Which of the following is NOT a valid C# identifier
Select one:
a. _order
b. a
c. this
d. a1 - (answers)c. this
What is NOT considered a keyword by the C# language?
Select one:
a. catch
你是想要一篇“眼睛容易阅读的”
b. global 中文文章,还是一篇关于“眼睛”
主题的中文文章?
c. implicit
d. static - (answers)b. global
In Object-oriented programming language, the ability to create methods that act appropriately
depending on the context is called _________.
Select one:
,a. inheritance
b. encapsulation
c. instance
d. polymorphism - (answers)d. polymorphism
in "using System;", what is "System" referring to?
Select one:
a. class
b. variable
c. namespace
d. method - (answers)c. namespace
你是想要一篇“眼睛容易阅读的”
中文文章,还是一篇关于“眼睛”
主题的中文文章?
Which of the following pairs is an example of a class and an object, in that order?
Select one:
a. animal and bear
b. cup and glass
c. CSUF and university
d. car and vehicle - (answers)a. animal and bear
,What is the value of the expression 3+4*2 ?
Select one:
a. 10
b. 11
c. 5
d. 14 - (answers)b. 11
What is the value of 5>=3?
Select one:
a. 1
你是想要一篇“眼睛容易阅读的”
b. 0 中文文章,还是一篇关于“眼睛”
主题的中文文章?
c. false
d. true - (answers)d. true
In C#, you use the ____ data type to hold a series of characters.
Select one:
a. string
, b. int
c. sbyte
d. char - (answers)a. string
Assume you have a variable declared as int var1=5; What is the value of 27%var1 ?
Select one:
a. 5
b. 2
c. 4
d. 0 - (answers)b. 2
你是想要一篇“眼睛容易阅读的”
Assume that you declared a double variable called unitPrice which is used to get an item's unit
中文文章,还是一篇关于“眼睛”
主题的中文文章?
price. Which of the following will display the unit price in a currency format with 2 decimal
places?
Select one:
a. Console.WriteLine(unitPrice.ToString());
b. Both Console.WriteLine(unitPrice.ToString("C")); and
Console.WriteLine(unitPrice.ToString("C2"));
c. Console.WriteLine(unitPrice.ToString("C"));
Which of the following is NOT a valid C# identifier
Select one:
a. _order
b. a
c. this
d. a1 - (answers)c. this
What is NOT considered a keyword by the C# language?
Select one:
a. catch
你是想要一篇“眼睛容易阅读的”
b. global 中文文章,还是一篇关于“眼睛”
主题的中文文章?
c. implicit
d. static - (answers)b. global
In Object-oriented programming language, the ability to create methods that act appropriately
depending on the context is called _________.
Select one:
,a. inheritance
b. encapsulation
c. instance
d. polymorphism - (answers)d. polymorphism
in "using System;", what is "System" referring to?
Select one:
a. class
b. variable
c. namespace
d. method - (answers)c. namespace
你是想要一篇“眼睛容易阅读的”
中文文章,还是一篇关于“眼睛”
主题的中文文章?
Which of the following pairs is an example of a class and an object, in that order?
Select one:
a. animal and bear
b. cup and glass
c. CSUF and university
d. car and vehicle - (answers)a. animal and bear
,What is the value of the expression 3+4*2 ?
Select one:
a. 10
b. 11
c. 5
d. 14 - (answers)b. 11
What is the value of 5>=3?
Select one:
a. 1
你是想要一篇“眼睛容易阅读的”
b. 0 中文文章,还是一篇关于“眼睛”
主题的中文文章?
c. false
d. true - (answers)d. true
In C#, you use the ____ data type to hold a series of characters.
Select one:
a. string
, b. int
c. sbyte
d. char - (answers)a. string
Assume you have a variable declared as int var1=5; What is the value of 27%var1 ?
Select one:
a. 5
b. 2
c. 4
d. 0 - (answers)b. 2
你是想要一篇“眼睛容易阅读的”
Assume that you declared a double variable called unitPrice which is used to get an item's unit
中文文章,还是一篇关于“眼睛”
主题的中文文章?
price. Which of the following will display the unit price in a currency format with 2 decimal
places?
Select one:
a. Console.WriteLine(unitPrice.ToString());
b. Both Console.WriteLine(unitPrice.ToString("C")); and
Console.WriteLine(unitPrice.ToString("C2"));
c. Console.WriteLine(unitPrice.ToString("C"));