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# - Bài 47
Ngày làm bài: Hôm nay lúc 13:32:39 (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-
Which of the following statements is correct about the array declaration given below?
   int[][][] intMyArr = new int[2][][];

  A - 
intMyArr refers to a 2-D jagged array containing 2 rows.
  B - 
intMyArr refers to a 2-D jagged array containing 3 rows.
  C - 
intMyArr refers to a 3-D jagged array containing 2 2-D jagged arrays.
  D - 
intMyArr refers to a 3-D jagged array containing three 2-D jagged arrays.
2-
Which of the following statements is correct about the C#.NET code snippet given below?
    int[] intMyArr = {11, 3, 5, 9, 4}; 

  A - 
intMyArr is a reference to an object of System.Array Class.
  B - 
intMyArr is a reference to an object of a class that the compiler derives from System.Array Class.
  C - 
intMyArr is a reference to an array of integers.
  D - 
intMyArr is a reference to an object created on the stack.
3-
Which of the following is the correct way to define and initialise an array of 4 integers?
  1. int[] a = {25, 30, 40, 5};
  2. int[] a;
    a = new int[3];
    a[0] = 25;
    a[1] = 30;
    a[2] = 40;
    a[3] = 5;
  3. int[] a;
    a = new int{25, 30, 40, 5};
  4. int[] a;
    a = new int[4]{25, 30, 40, 5};
  5. int[] a;
    a = new int[4];
    a[0] = 25;
    a[1] = 30;
    a[2] = 40;
    a[3] = 5;

  A - 
1, 2
  B - 
3, 4
  C - 
1, 4, 5
  D - 
2, 4, 5
4-
Which of the following is the correct output of the C#.NET code snippet given below?
    int[][] a = new int[2][];
    a[0] = new int[4]{6, 1, 4, 3};
    a[1] = new int[3]{9, 2, 7}; 
    Console.WriteLine(a[1].GetUpperBound(0));

  A - 
2
  B - 
3
  C - 
7
  D - 
9
5-
Which of the following is the correct way to obtain the number of elements present in the array given below?
    int[] intMyArr = {25, 30, 45, 15, 60};
  1. intMyArr.GetMax;
  2. intMyArr.Highest(0);
  3. intMyArr.GetUpperBound(0);
  4. intMyArr.Length;
  5. intMyArr.GetMaxElements(0);
  A - 
1, 2
  B - 
3, 4
  C - 
3, 5
  D - 
1, 5
6-
What will be the output of the C#.NET code snippet given below?
namespace IndiabixConsoleApplication
{
    class SampleProgram
    {
        static void Main(string[ ] args)
        {
            int i, j;
            int[ , ] arr = new int[ 2, 2 ];
            for(i = 0; i < 2; ++i)
            {
                for(j = 0; j < 2; ++j)
                {
                    arr[i, j] = i * 17 + i * 17;
                    Console.Write(arr[ i, j ] + " ");
                }
            }
        }
    }
}

  A - 
0 0 34 34
  B - 
0 0 17 17
  C - 
0 0 0 0
  D - 
17 17 0 0
7-
Which of the following statements are true about the C#.NET code snippet given below?
String s1, s2; 
s1 = "Hi"; 
s2 = "Hi";
  1. String objects cannot be created without using new.
  2. Only one object will get created.
  3. s1 and s2 both will refer to the same object.
  4. Two objects will get created, one pointed to by s1 and another pointed to by s2.
  5. s1 and s2 are references to the same object.
  A - 
1, 2, 4
  B - 
2, 3, 5
  C - 
3, 4
  D - 
2, 5
8-
Which of the following will be the correct output for the C#.NET code snippet given below?
String s1 = "ALL MEN ARE CREATED EQUAL";
String s2;
s2 = s1.Substring(12, 3); 
Console.WriteLine(s2);

  A - 
ARE
  B - 
CRE
  C - 
CR
  D - 
REA
9-
Which of the following statements will correctly copy the contents of one string into another ?
  A - 
String s1 = "String";
String s2;
s2 = s1;
  B - 
String s1 = "String" ;
String s2;
s2 = String.Concat(s1, s2);
  C - 
String s1 = "String";
String s2;
s2 = String.Copy(s1);
  D - 
String s1 = "String";
String s2;
s2 = s1.Replace();
10-
Which of the following will be the correct output for the C#.NET code snippet given below?
String s1 = "Nagpur";
String s2;
s2 = s1.Insert(6, "Mumbai"); 
Console.WriteLine(s2);

  A - 
Nagpur Mumbai
  B - 
Mumbai
  C - 
Nagpur
  D - 
NagpurMumbai
 
[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 Ngôn Ngữ Lập Trình C - Bài 04
Trắc nghiệm XML - Bài 15
Trắc Nghiệm Java - Bài 50
Trắc Nghiệm ASP.NET (English) - Bài 29
Trắc Nghiệm Thiết Kế Web - Bài 14
Trắc nghiệm C++ - Bài 16
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 54
Trắc nghiệm XML - Bài 09
Trắc Nghiệm Thiết Kế Web (English) - Bài 07
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 11
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 57
Trắc nghiệm Linux ( English ) - Bài 28
Trắc Nghiệm Thiết Kế Web (English) - Bài 41
Trắc nghiệm Linux ( English ) - Bài 26
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 25
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 09
Trắc Nghiệm Java - Bài 15
Trắc Nghiệm Java - Bài 07
Trắc nghiệm Linux - Bài 67
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 18
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