“smallka”为你分享2篇“扬智科技软件笔试题目第10题答案”,经本站小编整理后发布,但愿对你的工作、学习、生活带来方便。
篇1:扬智科技软件笔试题目第10题答案
扬智(科技)软件笔试题目第10题答案
第10题为:
10.Write a recursive function that tests wether a string is a palindrome.
A palindrome is s string such as “abcba” or “otto” that reads the same in
both directions.If you can write this function recursively,you can write
an iterative version of this function instead.
#include
#include
int count=0;//记录递归函数中字符串缩短的'总次数,可以不要这个,
recp(char s[])//回文的递归函数
{
int i;
if(strlen(s)==1)//长度为1
return 1;
else if(strlen(s)==2)长度为2的情况
{
if(s[0]==s[1])
return 1;
else
return 0;
}
else if(s[0]==s[strlen(s)-1])
{
count++;
cout<<“The ”< char t[]=“abcdeabcd”;
int svalue,tvalue;
svalue=recp(s);
tvalue=recp(t);
cout<<“the value of string s is:”< cout<<“the value of string t is:”<}
在Visual C++6.0中通过,
篇2:扬智科技软件笔试题目
扬智(科技)软件笔试题目
1. Queue is a useful structure
(a): What is a queue?
(b): Write 5 operations or functions, without details, that can be done
on a queue.
2. Insert a sequence fo keys(24,49,13,20,59,23,90,35) into a data
structure, which has no keys initially. Depict the data structure
after these insertions , if it is:
(a): a heap tree
(b): an AVL tree
3. (a) What is a synchronous I/O bus?
(b) What is an asnchronous I/O bus?
(c) Compare the advantages and disadvantages of synchronous and a
synchronous I/O bus.
4. Explain the following terminology:
(a): Baud rate
(b): Handshaking
(c): Memory mapped I/O
5. Explain the key issues in supporting a real-time operation system
for embedded system.
6. Explain the mapping of visual addresses to real addresses under paging
by
(a) direct mapping
(b) associative mapping
(c) combined direct/associated mapping
7. Please explain what is “write-back” and “write-through” ,and discuss the
advantage and disadvantage about these two methods.
8. Explain the concept and benefit of threads
9. What is hardware interrupt? What is software interrupt? What is
exception? Please tell me all you know about interrupt.
10.Write a recursive function that tests wether a string is a palindrome.
A palindrome is s string such as “abcba” or “otto” that reads the same in
both directions.If you can write this function recursively,you can write
an iterative version of this function instead.
相关主题阅读:
雅虎公司C#笔试题
腾讯技术类笔试
intel技术类笔试题
四大事务所笔试题目选摘
★ 扬智硬件类笔试题
★ 电子类的简历
★ 蓝盟科技笔试题目
★ 数字电路笔试题目
★ 电装笔试题目小结
★ 各大公司口号
【扬智科技软件笔试题目第10题答案(共2篇)】相关文章:
金智科技实习报告2022-04-29
笔试题IP协议2022-09-10
星巴克咖啡笔试题目2023-05-02
医学心理学笔试题2023-07-10
辑考题笔试题2023-03-16
笔试题建筑业2023-08-03
面试题你的座右铭是什么2023-10-05
摩托笔试题2022-12-20
笔试题2023-06-27
复旦的笔试题2023-10-03