IMG-LOGO
Trang chủ Trắc nghiệm bằng lái IT Test 400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án

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

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

  • 3548 lượt thi

  • 50 câu hỏi

  • 60 phút

Danh sách câu hỏi

Câu 1:

Which of the following functions compares two strings?

Câu 2:

Which of the following adds one string to the end of another?

Câu 6:

In the C program, the first statement that will be executed?

Câu 7:

Why are a function phototypes useful?

Câu 8:

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?

Câu 12:

Is there any difference between following declarations?
Media VietJack

Câu 13:

In the following program where is the variable a getting defined and where it is getting declared?
Media VietJack

Câu 14:

What are the types of linkages?

Câu 15:

Which of the following special symbol allowed in a variable name?

Câu 16:

By default a real number is treated as a

Câu 17:

How would you round off a value from 1.66 to 2.0?

Câu 26:

What are the difference types of real data type in C?

Câu 27:

What will be the ouput of the program?
Media VietJack

Câu 29:

What will you do to treat the constant 3.14 as a long double?

Câu 30:

What will you do to treat the constant 3.14 as a float?

Câu 31:

We want to round off x, a float, to an int value, The correct way to do is:

Câu 32:

What will be output of the program?
Media VietJack

Câu 33:

What will be output of program?
Media VietJack

Câu 34:

What will be output of program?
Media VietJack

Câu 36:

What is output of the program?
Media VietJack

Câu 37:

What will happen if in the C program you assign a value to a array element whose subscript exceeds the size of array?

Câu 39:

In which stage the following code. Gets replaced by the contents of the file stdio.h
Media VietJack

Câu 40:

What will be output of the program?
Media VietJack

Câu 42:

What is the notation for following functions?
Media VietJack

Câu 48:

How many times the program will print “laptrinhc++”?
Media VietJack

Bắt đầu thi ngay

Bài thi liên quan


Có thể bạn quan tâm


Các bài thi hot trong chương