Tìm kiếm:
TRANG NHÀ
Giới thiệu VNEDU.ORG
Điều khoản và bản quyền
Liên lạc VNEDU
TRẮC NGHIỆM TRỰC TUYẾN
---Công Cụ:---
Soạn Biểu thức
Bảng màu HTML
Ký hiệu đặc biệt 01
Ký hiệu đặc biệt 02
Ký hiệu đặc biệt 03
Ký hiệu đặc biệt 04
Ký hiệu đặc biệt 05
Ký hiệu đặc biệt 06
Ký hiệu đặc biệt 07
Ký hiệu đặc biệt [Toán]
Tin Học   ||  Căn Bản    Văn Phòng    Hệ Thống - Mạng    Phần Mềm Ứng Dụng    Kỹ thuật số    Lập trình    SQL  

Trắc Nghiệm C Sharp - Bài 22
Ngày làm bài: Hôm nay lúc 22:51:50 (Server time)
Số câu hỏi: 10.   Tổng điểm: 10
Yêu cầu hoàn thành: 60 phút.
Thời gian còn lại: 
Cỡ chữ câu hỏi:  Cỡ chữ đáp án:


1-
When declaring a variable in a class , what # the project?
  A - 
The public keyword declares a variable that is avilable to #
  B - 
The inherits keyword declares avaiable that is available to
  C - 
The protected keyword declares avaiable that is available to
  D - 
The private keyword declares avaiable that is available to
2-
What output does the code below generate then compiled/run?
1. class Employee{
2. public int EmployeeId;
3. public static Employee getEmpId(int EmpId){
4. Empoyee emp=new Employee( );
5. emp.EmployeeId=EmpId;
6. return(emp);
7. }
8. }
9. class Test{
10. public static void Main(){
11. Employee[] emps=new Empoyee[2];
12. emps[0] = Employee -getEmpId(1);
13. emps[0] = Employee -getEmpId(12);
14. foreach(Employee e in emps)
15. System.Console.WriteLine(e.EmployeeId);
16. }
  A - 
The code will generate a compile tiem error at line 12 and line13
  B - 
The code will generate a null exeception, as the employees are not initialized
  C - 
The code will compile seccessfully and output will be;
0
1
  D - 
The code will compile seccessfully and outputs will be;
1
2
3-
When should you choose a ComboBox control #
  A - 
When you want to wnter text in the control
  B - 
When you want to select multiple items in the control
  C - 
None of the above
  D - 
When you want to select only a single item in the control
4-
When you try to set a particular font style, say italics
btn.Font.Italic = true;
you get an error message "Property cannot be assigned to – it is read only". How can I set this read only property?
  A - 
btn.Font = new Font(FontStyle.Italic):
  B - 
bitn.Font = new FontStyle.Itaclic():
  C - 
Use the Format peoperty of the TextBox yo "#C"
  D - 
Use the CharacterCasing property og the TextBox to CharacterCasing.Upper .
5-
What will be the output of the code below when compiled/run?
1. class Test {
2. public static void Print(object[] arr){
3. foreach(object p in arr)
4. System.Console.WriteLine(p);
5 }
6. public static void Main(){
7. string s= "Programming in c#";
8. char[] separator=(’ ’);
9. string[] words = s.Split(separator);
10. Print(words);
11. }
12. }
  A - 
None of the above
  B - 
The code will generate an error at compile time at line 9 as the function Split used is not supperted string data type
  C - 
The code will generate an error at line 10 as conversion not allowed for onw array type to another array type
  D - 
The code will compile seccessfully and output will be:
Programming
In
c#
6-
When working with strings ____.
  A - 
Any other letter is considered a character
  B - 
Any literal within quotation marks
  C - 
A space is considered a character
  D - 
All of the other answers
7-
Which of the following property of method #
  A - 
SelectedIndex
  B - 
Select()
  C - 
SelectedItem
  D - 
SelectedValue
8-
Which of the following best describes Garbage Collector.
  A - 
Garbage Collector destroys the pointers
  B - 
Garbage Collector is responsible for automatic memory management
  C - 
Garbage Collector copies the IL code to the heap
  D - 
Garbage Collector get more memory for the application when the application need.
9-
Which of the fowllowing are possible value #
  A - 
Checked, Unchecked, Indeterminate
  B - 
True, False
  C - 
Checked, Unchecked
  D - 
Checked, Notchecked
10-
Which is statement is correct?
  A - 
The MonthCalendar control allows you to select a date and time, and the DateTimePicker control allows you to select a date or range of dates.
  B - 
The DateTimePicker control allows you to select a date and time, and the MontCalendar control allows you to select a date or range of dates.
  C - 
The DateTimePicker control and the MonthCalendar control allows the user to select the date and tine in different formats
  D - 
None of the above
 
[Người đăng: Thành Lãm - ST]
Ghé thăm Kênh của Vị Sư "hai lần chết đi sống lại"
Tu Si Chau Soc Thon

https://www.youtube.com/channel/UCoyC9WTTVR-M3qpTKKEXGnQ

Chau Soc Thon Official Channel


Phong Bảo Official
Phong Bao Official
Xem Nhiều nhất
Trắc Nghiệm Pascal - Bài 20
Trắc Nghiệm ASP.NET - Bài 12
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 16
Trắc Nghiệm ASP.NET - Bài 01
Trắc Nghiệm ASP.NET - Bài 03
Trắc nghiệm C++ - Bài 18
Trắc Nghiệm C# - Bài 53
Trắc Nghiệm ASP.NET - Bài 02
Trắc Nghiệm C# - Bài 42
Trắc Nghiệm Java - Bài 01
Trắc Nghiệm ASP.NET - Bài 04
Trắc Nghiệm Pascal - Bài 22
Trắc Nghiệm ASP.NET - Bài 13
Trắc Nghiệm ASP.NET - Bài 09
Trắc Nghiệm ASP.NET - Bài 08
Trắc nghiệm PHP - Bài 01
Trắc Nghiệm ASP.NET - Bài 06
Trắc Nghiệm ASP.NET - Bài 11
Trắc Nghiệm ASP.NET - Bài 05
Trắc Nghiệm ASP.NET - Bài 23
Đề Xuất
Trắc Nghiệm C++ - Bài 05
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 39
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 14
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 37
Trắc Nghiệm ASP.NET - Bài 12
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 30
Trắc Nghiệm ASP.NET (English) - Bài 02
Trắc Nghiệm Java - Bài 45
Trắc Nghiệm Visual Basic - Bài 10
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 80
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 31
Trắc Nghiệm ASP.NET (English) - Bài 20
Trắc Nghiệm Java - Bài 31
Trắc Nghiệm C# - Bài 36
Trắc Nghiệm C Sharp - Bài 07
Trắc Nghiệm Visual Basic - Bài 16
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 55
Trắc Nghiệm Visual Basic - Bài 41
Trắc Nghiệm C Sharp - Bài 08
Trắc Nghiệm ASP.NET (English) - Bài 19
Phát triển hệ thống: TRƯƠNG HỮU ĐỨC - Phiên bản 3.0 - © Copyright 2013 - 2024 - VNEDU.ORG

free counters