400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 5)
Đề thi

400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 5)

A
Admin
IT TestTrắc nghiệm tổng hợp123 lượt thi
50 câu hỏi
1.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

Hey

5

5Hey

Complie error

Xem đáp án

Chọn C

2.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

1 4

1 2 3 4

Syntax error

Syntax error

Xem đáp án

Chọn A

3.Trắc nghiệm
• 1 điểm
What is output?
\Media VietJack

Complie error

3

1

1 3

Xem đáp án

Chọn A

4.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

loop loop loop

Infinite loop

Complie error

Xem đáp án

Chọn C

5.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

True

False

Complier Error

Run time error

Xem đáp án

Chọn B

6.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

A

B

ABC

Xem đáp án

Chọn C

7.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

A

B

ABC

Xem đáp án

Chọn B

8.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

FALSE

TRUE

Default

Xem đáp án

Chọn B

9.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

3

5

03

05

Xem đáp án

Chọn C

2048.vn

Học thông minh hơn mỗi ngày

Xem toàn bộ 50 câu hỏi và nhiều hơn nữa với tài khoản miễn phí

Tạo đề thi
Tổ chức kiểm tra
Báo cáo chấm điểm tự động
Bạn đã có tài khoản?
10.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

3

4

5

6

Xem đáp án

Chọn C

11.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

x = 2

x = 6

x = 0

Xem đáp án

Chọn A

12.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

ABC

BC

B

Complier Error

Xem đáp án

Chọn D

13.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

ABC

DEF

Syntax error

Xem đáp án

Chọn A

14.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

Equal

Unequal

nothing is printed

Xem đáp án

Chọn B

15.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

True

False

Complier error

Xem đáp án

Chọn A

16.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

True

False

Complier error

Xem đáp án

Chọn B

17.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

True

False

Complier error

Xem đáp án

Chọn B

18.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

2468101214161820

468101214161820

nothing is printed

Xem đáp án

Chọn A

19.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

C/C++ 15

Java 15

Java 5

Complier error

Xem đáp án

Chọn A

20.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

C/C++ 80

C/C++ 81

Java 80

Java 81

Xem đáp án

Chọn B

21.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

1 12

2 12

2 11

Xem đáp án

Chọn A

22.Trắc nghiệm
• 1 điểm
What is output ?
Media VietJack

hello_World

ello_World

llo_World

lo_World

Xem đáp án

Chọn A

23.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

hello_World

ello_World

llo_World

lo_World

Xem đáp án

Chọn C

24.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

3

4

5

6

Xem đáp án

Chọn B

25.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

10#15

10#10

15#15

11#15

Xem đáp án

Chọn A

26.Trắc nghiệm
• 1 điểm
What is output of following code?
Media VietJack

4#4

4#5

5#6

4#6

Xem đáp án

Chọn B

27.Trắc nghiệm
• 1 điểm
What is output of following code?
Media VietJack

400 2

400 400

400 401

Complier error

Xem đáp án

Chọn A

28.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

pvpit

vpit

v

Another

Xem đáp án

Chọn C

29.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

5

7

9

10

Xem đáp án

Chọn A

30.Trắc nghiệm
• 1 điểm
For the code below which lines should be reported as errors by a compiler?
Media VietJack

1

2

3

None of the lines

Xem đáp án

Chọn C

31.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

Complier error

6

5

Another

Xem đáp án

Chọn A

32.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

5

6

8

Complier Error

Xem đáp án

Chọn C

33.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

4

5

6

Complier Error

Xem đáp án

Chọn D

34.Trắc nghiệm
• 1 điểm
What is output of code?
Media VietJack

320

64

Complier Error

Xem đáp án

Chọn B

35.Trắc nghiệm
• 1 điểm
What will be output of following program?
Media VietJack

Address of j , Address of i , 3

Complier Error

3 , 3 , 3

Xem đáp án

Chọn A

36.Trắc nghiệm
• 1 điểm
What will be output of following program?
Media VietJack

printf("\n%d", ptr2);

strcpy(ptr1, "c");

strcpy(ptr2, "questions");

printf("\n%s %s", ptr1, ptr2);

Xem đáp án

Chọn B

37.Trắc nghiệm
• 1 điểm
What will be output of following program?
Media VietJack

int a = 10;

void *p = &a;

int *ptr = p;

printf("%u\n", *ptr);

Xem đáp án

Chọn C

38.Trắc nghiệm
• 1 điểm
What will be output of following program?
Media VietJack

3

4

5

6

Xem đáp án

Chọn A

39.Trắc nghiệm
• 1 điểm
What will be output of following program?
Media VietJack

5 5

Complier Error

5 Garbage value

Xem đáp án

Chọn A

40.Trắc nghiệm
• 1 điểm
What will be output of following program?
Media VietJack

Address of i Address of i

Garbage value Garbage value

Complier Error

Xem đáp án

Chọn A

41.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

6

7

8

9

Xem đáp án

Chọn C

42.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

I

E

M

N

Xem đáp án

Chọn D

43.Trắc nghiệm
• 1 điểm
What will be output of following program?
Media VietJack

37363534

34353637

45673333

Xem đáp án

Chọn A

44.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

11

12

Garbage value

Complier error

Xem đáp án

Chọn A

45.Trắc nghiệm
• 1 điểm
Which of the following statements are correct about an array?
1. The array int num[26]; can store 26 elements
2. The expression num[1] designates the very first element in the array
3. It is necessary to initialize the array at the time of declaration.
4. The declaration num[SIZE] is allowed if SIZE is a macro.

1,4

3

1,2

1

Xem đáp án

Chọn A

46.Trắc nghiệm
• 1 điểm
The library function used to find the last occurrence of a character in a string is

strnstr()

strrchr()

laststr()

strstr()

Xem đáp án

Chọn B

47.Trắc nghiệm
• 1 điểm
What is output? (assuming that the array begins at the location 1002 and size of an integer is 4 bytes)
Media VietJack

1006, 2, 2

1006, 4, 4

1002, 5, 5

Error

Xem đáp án

Chọn A

48.Trắc nghiệm
• 1 điểm
What does the following declaration mean?
Media VietJack

ptr is array of pointers to 10 integers

ptr is a pointer to an array of 10 integers

ptr is an array of 10 integers

ptr is an pointer to array

Xem đáp án

Chọn A

49.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

LAPTRINHC++

LAPTRINHC++\0\.NET\0

LAPTRINHC++\0\.NET

Xem đáp án

Chọn A

50.Trắc nghiệm
• 1 điểm
What is output?
Media VietJack

LAPTRINHC++.NET

NETLAPTRINHC++

Address of pstr[0] Address of pstr[1]

Xem đáp án

Chọn A

Bạn có thích hoạt động này không?

Hãy lưu hoặc chia sẻ nội dung này đến mọi người.

Khám phá các nguồn tài nguyên miễn phí, phù hợp với tiêu chuẩn trong vài giây

Gợi ý cho bạn

Xem tất cả

Học liệu phổ biến Trắc nghiệm tổng hợp

Xem tất cả

Học liệu phổ biến IT Test

Xem tất cả