1. Mà các ngôn ngữ sau đây là một tập hợp con của ngôn ngữ C ++?
A. C ngôn ngữ
B. Java Ngôn ngữ
C. Ngôn ngữ C #
D. Ngôn ngữ B
trả lời: A 2. Điều nào sau đây đúng mô tả ngôn ngữ C ++? A. Tĩnh gõ ngôn ngữ B. Năng động gõ ngôn ngữ C. Cả hai tĩnh và ngôn ngữ kiểu động D. Type-ít tiếng trả lời: A 3. Mà các từ khóa sau đây hỗ trợ độ phân giải phương pháp năng động? A. trừu tượng B. Ảo C. Năng động, D. Typeid trả lời: B 4. Mà các ngôn ngữ sau đây không được hỗ trợ bởi C ++? A. Xử lý ngoại lệ B. Reflection C. Hành quá tải D. Namespaces trả lời: B 5. Mà các tính năng ngôn ngữ sau đây không phải là một đặc tả trong C ++? A. công B. tin C bảo vệ D. nội bộ trả lời: D 6. Những gì hiện STL đứng cho? A. Mẫu Simple Library B. Standard Template Library C. Loại Static Library D. Độc Loại dựa trên thư viện trả lời: B 7. Điều nào sau đây là cách phổ biến nhất của việc thực hiện C ++? A. Các chương trình C ++ được trực tiếp biên dịch thành mã gốc của một trình biên dịch B. Các chương trình C ++ đầu tiên được biên dịch thành mã trung gian bởi một trình biên dịch và thực thi bằng một máy ảo C. Các chương trình C ++ được giải thích bởi một thông dịch D. Một biên tập viên C ++ trực tiếp biên dịch và thực thi chương trình trả lời: A 8. Con trỏ ngầm đó là thông qua như là đối số đầu tiên cho các hàm thành viên không tĩnh là gì? A. 'tự' con trỏ B. std :: auto_ptr con trỏ C. 'Myself' con trỏ D. 'này' con trỏ trả lời: D 9. Nếu X là tên của lớp, cách chính xác để khai xây dựng bản sao của X là gì? A. X (X arg) B. X (X * arg) C. X (const X * arg) D. X (const X & arg) trả lời: D 10. Mà các nhà điều hành sau đây không thể bị quá tải? A. = (Toán tử gán) B. == (Hành bình đẳng) C. -> (Nhà điều hành hàng) D. :: (Phó điều hành giải quyết) trả lời: D 11. Mà các toán tử sau có thể bị quá tải? A. . (dấu chấm hoặc tử truy cập thành viên) B. & (Theo địa chỉ của các nhà điều hành) C. điều hành sizeof D. ?: (Nhà điều hành có điều kiện) trả lời: B 12. Làm thế nào để chúng ta khai báo một lớp trừu tượng? A. Bằng cách cung cấp ít nhất một phương thức ảo thuần túy (chữ ký chức năng tiếp theo == 0;) trong một lớp B. Bằng cách khai báo ít nhất một phương thức trừu tượng bằng cách sử dụng từ khóa 'trừu tượng' trong một lớp C. Bằng cách khai báo các lớp trừu tượng với từ khóa 'trừu tượng' D. Nó không phải là có thể tạo ra các lớp trừu tượng trong C ++ trả lời: A 13. Làm thế nào để chúng ta khai báo một "giao diện" lớp học? A. Bằng cách làm cho tất cả các phương pháp thuần ảo trong một lớp B. Bằng cách làm cho tất cả các phương thức trừu tượng bằng cách sử dụng từ khóa 'trừu tượng' trong một lớp C. Bằng cách khai báo lớp như giao diện với "giao diện" từ khóa D. Nó không phải là có thể tạo ra lớp giao diện trong C ++ trả lời: A 14. Làm thế nào nhiều bản sao của một thành viên tĩnh lớp được chia sẻ giữa các đối tượng của lớp? A. Một bản sao của các thành viên tĩnh được chia sẻ bởi tất cả các đối tượng của một lớp B. Một bản sao duy nhất được tạo ra khi có ít nhất một đối tượng được tạo ra từ buổi học C. Một bản sao của các thành viên tĩnh được tạo ra cho mỗi instntiation của lớp D. Không có bộ nhớ được cấp phát cho các thành viên tĩnh của một lớp trả lời: A 15. Điều nào sau đây là đúng về hàm thành viên const? A. thành viên const có thể được gọi trên cả hai const cũng như nonconst đối tượng B. thành viên const có thể được gọi chỉ trên các đối tượng const và không phải trên đối tượng nonconst C. thành viên nonconst có thể được gọi trên đối tượng const cũng như nonconst đối tượng D. không có ở trên trả lời: A 16. Khi được std :: bad_alloc ném ngoại lệ? A. Khi điều hành mới không thể cấp phát bộ nhớ B. Khi chức năng alloc không C. Khi loại yêu cầu cho hoạt động mới được coi là xấu, thisexception được ném D. Khi tử delete không thể xóa teh phân bổ (hỏng) đối tượng trả lời: A 17. Những tập tin tiêu đề chúng tôi cần bao gồm việc sử dụng std :: auto_ptr? A.
B.
C.
D.
Answer: C
18. STL is based on which of the following programming paradigms?
A. Structured Programming
B. Object Oriented Programming (OOP)
C. Functional Programming
D. Aspect Oriented Programming (AOP)
Answer: C
19. Which of the following correctly describes the meaning of ‘namespace’ feature in C++?
A. Namespaces refer to the memory space allocated for names used in a program
B. Namespaces refer to space between teh names in a program
C. Namespaces refer to space between the names in a program
D. namespaces provide facilities for organizing the names in a program to avoid name clashes
Answer: D
20. Which of the following is the most general exception handler that catches exception of any type?
A. catch(std::exception)
B. catch(std::any_exception)
C. catch(…)
D. catch()
Answer: C
21. STL is based on which of the following programmingparadigms?
a. Structured Programming
b. Object Oriented Programming (OOP)
c. Functional Programming
d. Aspect Oriented Programming (AOP)
ans: c
22. Which of the following correctly describes the meaning of‘namespace’ feature in C++?
a. Namespaces refer to the memory space allocated for names used in a program
b. Namespaces refer to space between the names in a program
c. Namespaces refer to packing structure of classes in a program.
d. Namespaces provide facilities for organizing the names in aprogram to avoid name clashes.
ans: d
23. Which of the following is the most general exception handler that catches exception of ‘any type’?
a. catch(std::exception)
b. catch(std::any_exception)
c. catch(…)
d. catch()
ans: c
24. Which of the following relationship is known as inheritancerelationship?
a. ‘has-a’ relationship
b. ‘is-a’ relationship
c. association relationship
d. none of the above
ans: b
25. Which of the following operators can be implemented as a nonmember operator?
a. = (assignment operator)
b. () (function call operator)
c. [. (array access operator)
d. + (addition operator)
ans: d
26. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
a. std::vector
b. std::list
c. std::map
d. std::set
ans: a
27. Which of the following is not recommended in a header file?
a. Type definitions (typedefs)
b. Class definitions
c. Function definitions
d. Template definitions
ans: c
28. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?
a. const X* const
b. X* const
c. X*
d. X&
ans: b
29. Which of the following is the most preferred way of throwing and handling exceptions?
a. Throw by value and catch by reference.
b. Throw by reference and catch by reference.
c. Throw by value and catch by value
d. Throw the pointer value and provide catch for teh pointer type.
Ans: a
30. If class A is friend of class B and if class B is friend of class C, which of the following is true?
a. Class C is friend of class A
b. Class A is friend of class C
c. Class A and Class C do not have any friend relationship
d. None of the above
Ans: c
31. The conditional compilation
a. It is taken care of by the compiler
b. It is setting the compiler option conditionally
c. It is compiling a program based on a condition
d. none of above
ans: c
32. Originally ‘C’ was developed as:
a. System programming language
b. General purpose language
c. Data processing language
d. None of above
Ans: b
33. Minimum number of temporary variagble needed to swap the contents of 2 variable is:
a. 1
b. 2
c. 3
d. 0
Ans: d
34. A direct access file is:
a. A file in which recoreds are arranged in a way they are inserted in a file
b. A file in which records are arranged in a particular order
c. Files which are stored on a direct access storage medium
d. None of the above
Ans: c
35. Which of the following is not an advantage of secondary memory
a. It is cost-effective
b. It has large storage capacity
c. It has highest speed
d. It is easily portable
Ans: c
36. An inverted file
a. Locates information about data in small files that are maintained apart from actual data record
b. A file which stores opposite records
c. A file which stores information about records of a system
d. None of above
Ans: a
37. Which of the following is not a file operation:
a. Repositioning
b. Truncating
c. Appending
d. None of above
Ans: d
38. Which of the following is not a component of file system
a. Access method
b. Auxiliary storage management
c. Free integrity mechanism
d. None of the above
Ans: d
39. Seek time is
a. time taken to retrieve a dta
b. Time taken by read/write head mechanism to position itself over appropriate cylinder
c. Time taken by appropriate sector to come under read/write
d. None of the above
Ans: b
40. Latency time is:
a. Time taken by read/write head mechanism to position itself over appropriate cylinder
b. Time taken to transfer a dta from memory
c. Time taken by appropriate sector to come under read/write head
d. None of above
Ans: c
41. ‘Prime area’ in context of file system is defined as
a. It is memory area created by operating system
b. It is an area into which data records are written
c. It is the main area of a web page
d. None of the above
Ans: b
42. The two types of file structure existing in VSAM file are
a. Key sequenced structure, entry sequenced structure
b. Key sequence structure, exit sequenced structure
c. Entry sequence structure, exit sequenced structure
d. None of above
Ans: c
43. In mulit-list organization
a. Records that have equivalent value for a given secondary index item are linked together to form a list.
b. Records are loaded in ordered sequence defined by collating sequence by content of the key
c. Records are directly accessed by record key field
d. None of the above
Ans: a
44. Which of the following is/are advantages of cellular partitioned structure:
a. Simultaneous read operations can be overlapped
b. Search time is reduced
c. Both a & b
d. None of the above
Ans: c
45. *ptr++ is equivalenet to:
a. ptr++
b. *ptr
c. ++*ptr
d. None of the above
Ans: d
46. Statement scanf(“%d”,80);
a. Assign an integer to va
đang được dịch, vui lòng đợi..
