GMT: Thứ Năm, ngày 21  tháng 11, năm 2019 . .   
Đă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 56
Which of the following statement is correct about the program given below? #include long FactFinder(long = 5); int main() { for(int i = 0; i<= 0; i++) cout<< FactFinder() << endl; return 0; } long FactFinder(long x) { if(x < 2) return 1; long fact = 1; for(long i = 1; i <= x-1; i++) fact = fact * i; return fact; } A. The program will print the output 1. B. The program will print the output 24. C. The program will print the output 120. D. The program will print the output garbage value........
Thời gian bắt đầu: Hôm nay lúc 19:49:20(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-
Which of the following statement is correct about the program given below?
A-
The program will print the output 1.
B-
The program will print the output 24.
C-
The program will print the output 120.
D-
The program will print the output garbage value.
2-
What will be the output of the following program?
A-
7 20
B-
7 19.8
C-
7 Garbage
D-
7 20.8
3-
What will be the output of the following program?
A-
21
B-
22
C-
31
D-
32
4-
What will be the output of the following program?
A-
2 4
B-
6 8
C-
The program will report error on Compilation.
D-
The program will report error on Linking.
5-
Which of the following statement is correct about the program given below?
A-
The program will print the output 32 0.
B-
The program will print the output 32 garbage-value.
C-
The program will print the output 32 1.
D-
The program will report compile time error.
6-
What will be the output of the following program?
A-
The program will print the output M = 130.
B-
The program will print the output M = 195.
C-
The program will print the output M = -21.
D-
The program will print the output M = -61.
7-
What will be the output of the following program?
A-
300
B-
200
C-
Garbage value
D-
400
8-
What will be the output of the following program?
A-
123
B-
321
C-
345
D-
12345
9-
What is correct about the following program?
A-
The program will print the output 20.
B-
The program will report run time error.
C-
The program will print the garbage value.
D-
Compilation fails due to 'operator +' cannot have default arguments.
10-
What will be the output of the following program?

A-
0
B-
314
C-
314.0000
D-
200.0000
[ Thành Lãm - ST ]

Chia sẻ trên Facebook   Google Boomarks   Google Buzz    Xem: 2113. Đă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