400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 6)
50 câu hỏi
LAPTRINHC++.NET
NETLAPTRINHC++
Address of pstr[0] Address of pstr[1]
Chọn B
9
12
16
24
Chọn B
20
18
32
24
Chọn A
ID=1009, dd/mm/yyyy = 16/09/1989
ID = 1009, dd/mm/yyyy = garbage value/garbage value/garbage value (garbage value: giá trị rác)
Error sytax (Lỗi cú pháp)
Chọn A
laptrinhc++ 2
Complier error
Runtime error
Chọn B
4
Complier error
8
Chọn A
16
22
32
18
Chọn A
Equality comparison ( == )
Assignment ( = )
Both of the above
None of the above
Chọn D
21
27
Complier Error
Another
Chọn B
530
70
40
Complier Error
Chọn C
Y = 3
Y = 5
Garbage value
Chọn B
C/C++
Java
Complier error
Chọn C
C/C++
Java
Complier error
Chọn C
1
36
6
30
Chọn B
10 50
10 10
50 50
Chọn A
1000
100
Complier error
Chọn C
‘laptrinhc++’ is printed 3 times
‘laptrinhc++’ is printed 2 times
Complier error
Chọn C
constructor
destructor
static method
Chọn A
private
public
protected
protect
Chọn A
private, public
protected, public
public, private
public, protected
Chọn C
reusability
encapsulation
development
Chọn A
public, private, protected
public, private, protect
public, private, static
Chọn A
containment, inheritance
hiding, inheritance
encapsulation, inheritance
Chọn A
=0
=1
=-1
Chọn A
&
*
&&
Chọn B
0
1
4
Chọn B
pure virtual
static
private
Chọn A
new
alloc
malloc
Chọn A
data types, objects
data types, constant
data types, pointer
Chọn A
class
object
function
Chọn B
Steven Job, AT&T Bell Labs
Bjarne Stroustrup, AT&T Bell Labs
Guido van Rossum, M&D Lab
Chọn B
procedural, object oriented
object, procedural
procedural, STL
Chọn A
value, object
object, class
variables, functions
Chọn C
static
register
auto
Chọn B
Stack
Heap
Register
Chọn B
runtime exception
syntax error
logic error
Chọn A
debugging
checking memory leak
library for time
Chọn A
automatically
manually
none of above
Chọn A
return type
parameter lists
none of above
Chọn B
static
run-time
default
Chọn C
dynamic
static
public
Chọn B
Run time and compile time
Preprocessor, compile time
Preprocessor, Linker
Chọn A
console
windows
none of above
Chọn A
container class
time class
none of above
Chọn A
less flexible
more flexible
none of above
Chọn B
private
public
protected
Chọn A
Stack, Queue, Priority_queue
Set, Multiset, Map
vectors, lists, deques
Chọn C
catch
try
none of above
Chọn B
template parameters
keyword
none of above
Chọn A
TRUE
FALSE
Chọn A







