
100+ câu trắc nghiệm Lập trình C/C++ có đáp án - Phần 2
25 câu hỏi
int funct(char x, char y);
double funct(char x)
void funct();
char x();
Chọn đáp án B
char
int
float
double
Chọn đáp án B
funct;
func x, y;
funct();
int funct();
Chọn đáp án C
int funct();
int funct(int x) {return x=x+1;}
void function(int) {printf( “Hello” );
void funct(x) {printf( “Hello” ); }
Chọn đáp án B
end;
break;
stop;
continue;
Chọn đáp án B
all
continue
default
other
Chọn đáp án C
One
Zero
Hello World
Zero Hello World
Chọn đáp án D
int x;
int &x;
ptr x;
int *x;
Chọn đáp án D
*a;
a;
&a;
address(a);
Chọn đáp án C
a;
*a;
&a;
address(a);
Chọn đáp án A
a;
val(a);
*a;
&a;
Chọn đáp án C
new
malloc
create
value
Chọn đáp án B
free
delete
clear
remove
Chọn đáp án B
b→var;
b.var;
b-var;
b>var;
Chọn đáp án B
b→var;
b.var;
b-var;
b>var;
Chọn đáp án A
struct {int a;}
struct a_struct {int a;}
struct a_struct int a;
struct a_struct {int a;};
Chọn đáp án D
struct foo;
struct foo var;
foo;
int foo;
Chọn đáp án B
int arr[10];
int arr;
arr{10};
array arr[10];
Chọn đáp án A
29
28
0
Programmer-defined
Chọn đáp án B
array arr[20][20];
int arr[20][20];
int arr[20, 20];
char array[20];
Chọn đáp án B
foo[6];
foo[7];
foo(7);
foo;
Chọn đáp án A
arr[0];
arr;
→
arr[1];
Chọn đáp án B
Static String
“Static String”
‘Static String’
char string[100];
Chọn đáp án B
‘.’
‘ ‘
‘\0’
‘/0’
Chọn đáp án C
fgets(x, 101, stdin);
fgets(x, 100, stdin);
readline(x, 100, ‘\n’);
read(x);
Chọn đáp án B
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.


















