2048.vn

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

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ợp11 lượt thi
50 câu hỏi
1. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

Hey

5

5Hey

Complie error

Xem đáp án
2. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

1 4

1 2 3 4

Syntax error

Syntax error

Xem đáp án
3. Trắc nghiệm
1 điểmKhông giới hạn

What is output?\Media VietJack

Complie error

3

1

1 3

Xem đáp án
4. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

loop loop loop

Infinite loop

Complie error

Xem đáp án
5. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

True

False

Complier Error

Run time error

Xem đáp án
6. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

A

B

ABC

Xem đáp án
7. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

A

B

ABC

Xem đáp án
8. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

FALSE

TRUE

Default

Xem đáp án
9. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

3

5

03

05

Xem đáp án
10. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

3

4

5

6

Xem đáp án
11. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

x = 2

x = 6

x = 0

Xem đáp án
12. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

ABC

BC

B

Complier Error

Xem đáp án
13. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

ABC

DEF

Syntax error

Xem đáp án
14. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

Equal

Unequal

nothing is printed

Xem đáp án
15. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

True

False

Complier error

Xem đáp án
16. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

True

False

Complier error

Xem đáp án
17. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

True

False

Complier error

Xem đáp án
18. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

2468101214161820

468101214161820

nothing is printed

Xem đáp án
19. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

C/C++ 15

Java 15

Java 5

Complier error

Xem đáp án
20. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

C/C++ 80

C/C++ 81

Java 80

Java 81

Xem đáp án
21. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

1 12

2 12

2 11

Xem đáp án
22. Trắc nghiệm
1 điểmKhông giới hạn

What is output ?Media VietJack

hello_World

ello_World

llo_World

lo_World

Xem đáp án
23. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

hello_World

ello_World

llo_World

lo_World

Xem đáp án
24. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

3

4

5

6

Xem đáp án
25. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

10#15

10#10

15#15

11#15

Xem đáp án
26. Trắc nghiệm
1 điểmKhông giới hạn

What is output of following code?Media VietJack

4#4

4#5

5#6

4#6

Xem đáp án
27. Trắc nghiệm
1 điểmKhông giới hạn

What is output of following code?Media VietJack

400 2

400 400

400 401

Complier error

Xem đáp án
28. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

pvpit

vpit

v

Another

Xem đáp án
29. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

5

7

9

10

Xem đáp án
30. Trắc nghiệm
1 điểmKhông giới hạn

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
31. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

Complier error

6

5

Another

Xem đáp án
32. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

5

6

8

Complier Error

Xem đáp án
33. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

4

5

6

Complier Error

Xem đáp án
34. Trắc nghiệm
1 điểmKhông giới hạn

What is output of code?Media VietJack

320

64

Complier Error

Xem đáp án
35. Trắc nghiệm
1 điểmKhông giới hạn

What will be output of following program?Media VietJack

Address of j , Address of i , 3

Complier Error

3 , 3 , 3

Xem đáp án
36. Trắc nghiệm
1 điểmKhông giới hạn

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
37. Trắc nghiệm
1 điểmKhông giới hạn

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
38. Trắc nghiệm
1 điểmKhông giới hạn

What will be output of following program?Media VietJack

3

4

5

6

Xem đáp án
39. Trắc nghiệm
1 điểmKhông giới hạn

What will be output of following program?Media VietJack

5 5

Complier Error

5 Garbage value

Xem đáp án
40. Trắc nghiệm
1 điểmKhông giới hạn

What will be output of following program?Media VietJack

Address of i Address of i

Garbage value Garbage value

Complier Error

Xem đáp án
41. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

6

7

8

9

Xem đáp án
42. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

I

E

M

N

Xem đáp án
43. Trắc nghiệm
1 điểmKhông giới hạn

What will be output of following program?Media VietJack

37363534

34353637

45673333

Xem đáp án
44. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

11

12

Garbage value

Complier error

Xem đáp án
45. Trắc nghiệm
1 điểmKhông giới hạn

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
46. Trắc nghiệm
1 điểmKhông giới hạn

The library function used to find the last occurrence of a character in a string is

strnstr()

strrchr()

laststr()

strstr()

Xem đáp án
47. Trắc nghiệm
1 điểmKhông giới hạn

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
48. Trắc nghiệm
1 điểmKhông giới hạn

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
49. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

LAPTRINHC++

LAPTRINHC++\0\.NET\0

LAPTRINHC++\0\.NET

Xem đáp án
50. Trắc nghiệm
1 điểmKhông giới hạn

What is output?Media VietJack

LAPTRINHC++.NET

NETLAPTRINHC++

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

Xem đáp án
© All rights reserved VietJack