热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

模拟考试

设为首页

收藏此页面

订阅邮箱地址

C++ 面试题与答案

Test your skills through the online practice test: C++ Quiz Online Practice Test

相关差异对比

C vs C++Java vs C++

问题 116. What is polymorphism?


Polymorphism is the idea that a base class can be inherited by several classes. A base class pointer can point to its child class and a base class array can store different child class objects.

这有帮助吗? 添加评论 查看评论
 

问题 117. How can you tell what shell you are running on UNIX system?

You can do the Echo $RANDOM. It will return a undefined variable if you are from the C-Shell, just a return prompt if you are from the Bourne shell, and a 5 digit random numbers if you are from the Korn shell. You could also do a ps -l and look for the shell with the highest PID.

这有帮助吗? 添加评论 查看评论
 

问题 118. What is pure virtual function?


A class is made abstract by declaring one or more of its virtual functions to be pure. A pure virtual function is one with an initializer of = 0 in its declaration
 

这有帮助吗? 添加评论 查看评论
 

问题 119. Write a Struct Time where integer m, h, s are its members


struct Time
{
int m;
int h;
int s;
};

这有帮助吗? 添加评论 查看评论
 

问题 120. How do you traverse a Btree in Backward in-order?


Process the node in the right subtree
Process the root
Process the node in the left subtree

这有帮助吗? 添加评论 查看评论
 

3) What is pure virtual function? 4) Write a Struct Time where integer m, h, s are its members 5) How do you traverse a Btree in Backward in-order? " />

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。