WEBSITE bất vụ lợi - Vì lợi ích cộng đồng - Non-Profit Website for the benefit of Community Learning
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
Tin Học
Luyện thi Đại học
Lớp 12
Lớp 11
Lớp 10
Lớp 9
Lớp 8
Lớp 7
Lớp 6
Tiểu học
Tiếng Anh
Bài học lý thuyết
Thi bằng
Kiến thức tổng quát
Phương pháp học
---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 Ngôn Ngữ Lập Trình C++ - Bài 55
Ngày làm bài:
Hôm nay lúc 04:36:51 (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:
12 pt
13 pt
14 pt
15 pt
16 pt
17 pt
18 pt
19 pt
20 pt
Cỡ chữ đáp án:
12 pt
13 pt
14 pt
15 pt
16 pt
17 pt
18 pt
19 pt
20 pt
1-
Which of the following statement is correct about the program given below?
#include
class IndiaBix { public: void Bix(int x = 15) { x = x/2; if(x > 0) Bix(); else cout<< x % 2; } }; int main() { IndiaBix objIB; objIB.Bix(); return 0; }
A -
The program will display 2.
B -
The program will display 15.
C -
The program will go into an infinite loop.
D -
The program will report error on compilation.
2-
Which of the following statement is correct about the program given below?
#include
long GetNumber(long int Number) { return --Number; } float GetNumber(int Number) { return ++Number; } int main() { int x = 20; int y = 30; cout<< GetNumber(x) << " "; cout<< GetNumber(y) ; return 0; }
A -
The program will print the output 19 31.
B -
The program will print the output 20 30.
C -
The program will print the output 21 31.
D -
The program will print the output 21 29.
3-
What will be the output of the following program?
#include
struct MyData { public: int Addition(int a, int b = 10) { return (a *= b + 2); } float Addition(int a, float b); }; int main() { MyData data; cout<
A -
12 12
B -
12 18
C -
18 12
D -
Compilation fails.
4-
Which of the following statement is correct about the program given below?
#include
int BixTest(int x, int y); int BixTest(int x, int y, int z = 5); int main() { cout<< BixTest(2, 4) << endl; return 0; } int BixTest(int x, int y) { return x * y; } int BixTest(int x, int y, int z = 5) { return x * y * z; }
A -
The program will print the output 5.
B -
The program will print the output 8.
C -
The program will print the output 40.
D -
The program will report compile time error.
5-
What will be the output of the following program?
#include
class IndiabixSample { public: int a; float b; void BixFunction(int a, float b, float c = 100.0f) { cout<< a % 20 + c * --b; } }; int main() { IndiabixSample objBix; objBix.BixFunction(20, 2.000000f, 5.0f); return 0; }
A -
5
B -
100
C -
-5
D -
None of these
6-
Which of the following statement is correct about the program given below?
#include
void Tester(int xx, int yy = 5); class IndiaBix { int x; int y; public: void Tester(int xx, int yy = 5) { x = xx; y = yy; cout<< ++x % --y; } }; int main() { IndiaBix objBix; objBix.Tester(5, 5); return 0; }
A -
The program will print the output 0.
B -
The program will print the output 1.
C -
The program will print the output 2.
D -
The program will print the output garbage value.
7-
Which of the following statement is correct about the program given below?
#include
class PowerFinder { public: void Power(int x = 1, int y = 1) { int P = 1, i = 1; while(++i <= y) { P *= x; } cout<< P << endl; } }; int main() { PowerFinder FP; FP.Power(2, 6); return 0; }
A -
The program will print the output 12.
B -
The program will print the output 16.
C -
The program will print the output 32.
D -
The program will print the output 36.
8-
Which of the following statement is correct about the program given below?
#include
void Tester(float xx, float yy = 5.0); class IndiaBix { float x; float y; public: void Tester(float xx, float yy = 5.0) { x = xx; y = yy; cout<< ++x % --y; } }; int main() { IndiaBix objBix; objBix.Tester(5.0, 5.0); return 0; }
A -
The program will print the output 1.
B -
The program will print the output 2.
C -
The program will print the output garbage value.
D -
The program will report compile time error.
9-
Which of the following statement is correct about the program given below?
#include
const double BixConstant(const int, const int = 0); int main() { const int c = 2 ; cout<< BixConstant(c, 10)<< " "; cout<< BixConstant(c, 20)<< endl; return 0; } const double BixConstant(const int x, const int y) { return( (y + (y * x) * x % y) * 0.2); }
A -
The program will print the output 2 4.
B -
The program will print the output 20 40.
C -
The program will print the output 10 20.
D -
The program will print the output 20 4.50.
10-
Which of the following statement is correct about the program given below?
#include
struct MyStructure { class MyClass { public: void Display(int x, float y = 97.50, char ch = 'a') { cout<< x << " " << y << " " << ch; } }Cls; }Struc; int main() { Struc.Cls.Display(12, 'b'); return 0; }
A -
The program will print the output 12 97.50 b.
B -
The program will print the output 12 97.50 a.
C -
The program will print the output 12 98 a.
D -
The program will print the output 12 Garbage b.
[
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
Phong Bảo 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 Linux - Bài 59
Trắc Nghiệm Visual Basic - Bài 22
Trắc Nghiệm C Sharp - Bài 29
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 14
Trắc Nghiệm Visual Basic - Bài 40
Trắc Nghiệm ASP.NET (English) - Bài 05
Trắc nghiệm Linux ( English ) - Bài 23
Trắc Nghiệm Visual Basic - Bài 18
Trắc Nghiệm ASP.NET - Bài 08
Trắc Nghiệm ASP.NET - Bài 18
Trắc Nghiệm Visual Foxpro - Bài 05
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 18
Trắc Nghiệm Visual Basic - Bài 14
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 12
Trắc Nghiệm Pascal - Bài 05
Trắc Nghiệm Java - Bài 31
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 16
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 08
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 21
Trắc Nghiệm C# - Bài 44
Phát triển hệ thống: TRƯƠNG HỮU ĐỨC - Phiên bản 3.0 - © Copyright 2013 - 2024 - VNEDU.ORG