GMT: Chủ Nhật, ngày 21  tháng 1, năm 2018 . .   
Đăng nhập tạm thời:  

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   
 C#     C++     Visual Basic     Visual Foxpro     C     Java     Pascal     Thiết Kế Web     ASP.NET     XML     CSS     PHP   

Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 57
What will be the output of the following program? #include class IndiaBix { public: int x, y; IndiaBix(int xx = 10, int yy = 20) { x = xx; y = yy; } void Exchange(int *, int *); }; int main() { IndiaBix objA(30, 40); IndiaBix objB(50); objA.Exchange(&objA.x, &objB.y); cout<< objA.x << " " << objB.y << endl; return 0; } void IndiaBix::Exchange(int *x, int *y) { int t; t = *x; *x = *y; *y = t ; } A. 20 10 B. 30 20 C. 20 30 D. 30 40............
Thời gian bắt đầu: Hôm nay lúc 12:05:39(Server time)
Số câu hỏi: 10.   Tổng điểm: 10
Thời gian làm bài: 20 phút.  Thời gian còn lại: 
Cỡ chữ câu hỏi:  Cỡ chữ đáp án:
1-
What will be the output of the following program?

A-
20 10
B-
30 20
C-
20 30
D-
30 40
2-
Which of the following statement is correct about the program given below?

A-
The program will display the output 4 3 2 3 2 1 2 1 0.
B-
The program will display the output 0 1 2 1 2 3 2 3 4.
C-
The program will display the output 9 garbage values.
D-
The program will report error on compilation.
3-
What will be the output of the following program?

A-
10 10
B-
12 10
C-
12 21
D-
The program will report compilation error.
4-
What will be the output of the following program?

A-
6
B-
8
C-
9
D-
15
5-
Which of the following statement is correct about the program given below?

A-
Above program will display IndiaBIX 8.
B-
Above program will display IndiaBIX 9.
C-
Above program will display size of integer.
D-
Above program will display IndiaBIX and size of integer.
6-
Which of the following statement is correct about the program given below?

A-
The program will print the output 1 0 3.
B-
The program will print the output 1 0 4.
C-
The program will print the output 1 1 3.
D-
The program will print the output 1 1 4.
7-
Which of the following statement is correct about the program given below?

A-
The program will display NULL 9 times.
B-
The program will report error on compilation.
C-
The program will display 9 garbage values.
D-
The program will display 0 1 2 1 2 3 2 3 4.
8-
What will be the output of the following program?

A-
0 9 3 6 5
B-
9 3 6 5 0
C-
5 6 3 9 0
D-
5 9 3 6 0
9-
Which of the following statement is correct about the program given below?

A-
The program will print the output 2.
B-
The program will print the output 12.
C-
The program will report run time error.
D-
The program will not compile successfully.
10-
What will be the output of the following program?

A-
0 9 3 6 5
B-
0 5 6 3 9
C-
0 6 3 9 5
D-
None of these
[ Thành Lãm - ST ]

Chia sẻ trên Facebook   Google Boomarks   Google Buzz    Xem: 1509. Đăng: 30-06-2012.   
Support Link:
Thông tin trang Web. Online since: 2011.
Disclaimer of Liability and Endorsement:
free counters
VNEDU.ORG IS A NON-PROFIT WEBSITE! All contents throughout this website are from Internet and other sources and are posted by users, copyright belongs to its original author. VNEDU.ORG stores for educational purpose only. VNEDU.ORG resumes no responsibility and liability, make no promise, or guarantee for the accuracy or efficiency of any content. If you find any content that is in violation of copyright laws, please notify us and we will immediately remove them. Thank you for visiting VNEDU.ORG