好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

计算机英文面试题englishquestion-technology.docx

4页
  • 卖家[上传人]:tian****1990
  • 文档编号:72849452
  • 上传时间:2019-01-24
  • 文档格式:DOCX
  • 文档大小:45.32KB
  • / 4 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • 1. Algorithms  * What’s the difference between a linked list and anarray?Statically dynamicallySize is pre-definedStorage:continuousPeformance:* Implement an algorithm to sort a linked list. Why did you pick the method you did?Quicksort,mergesort* Implement an algorithm to sort an array. Why didyou pick the method you did?  * Implement strstr() (or some other string libraryfunction).  * Reverse a string. Optimize for speed. Optimize forspace.  * Count the number of set bits in a number. Now optimize for speed. Now optimize for size.  * How would you find a cycle in a linked list?  * Give me an algorithm to shuffle a deck of cards,given that the cards are stored in an array of ints.  * Write a function that takes in a string parameterand checks to seewhether or not it is an integer, and if it is then return theintegervalue.  * Write a function to print all of the permutationsof a string.  * Implement malloc.  * Write a function to print the Fibonacci numbers.  * Write a function to copy two strings, A and B. Thelast few bytes of string A overlap the first few bytes of string B.  * How would you print out the data in a binary tree,level by level, starting at the top?  2. Applications  * How can computertechnology be integrated in anelevator system for a hundred storyoffice building? How do you optimize foravailability? How wouldvariation of traffic over a typical work week or flooror time of dayaffect this?  * How would you redesign an ATM?  * Suppose we wanted to run a microwave oven from thecomputer. What kind of software would you write to do this?  * How would you design a coffee-machine for anautomobile.  3. Thinkers  * How are M&Ms made?  * If you had to learn a new computer language, howwould you go about doing it?  * If MS told you we were willing to invest million ina start up of your choice, what business would you start? Why?  * If you could gather all of the computermanufacturers in the worldtogether into one room and then tell them one thingthat they would becompelled to do,what would it be?  * Explain a scenario for testing a salt shaker.  * If you are going to receive an award in 5 years,what is it for and who is the audience?  * How would you explain how to use Microsoft Excel toyour grandma?  * Why is it that when you turn on the hot water inany hotel, forexample, the hot water comes pouring out almost instantaneously?Difference between the malloc() and the calloc()Both the malloc() and the calloc() functions are used to allocate dynamic memory. Each operates slightly different from the other.Both the malloc() and the calloc() functions are used to allocate dynamic memory. Each operates slightly different from the other.malloc() takes a size and returns a pointer to a chunk of memory at least that big:void *malloc( size_t size );calloc() takes a number of elements, and the size of each, and returns a pointer to a chunk of memoryat least big enough to hold them all:void *calloc( size_t numElements, size_t sizeOfElement );There are one major difference and one minor difference between the two functions.The major difference is that malloc() doesn't initialize the allocated memory.The first time malloc() gives you a particular chunk of memory, the memory might be full of zeros.If memory has been allocated, freed, and reallocated, it probably has whatever junk was left in it.That means, unfortunately, that a program might run in simple cases (when memory is never reallocated) but break when used harder (and when memory is reused).calloc() fills the allocated memory with all zero bits.That means that anything there you are going to use as a char or an int of any length, signed or unsigned, is guaranteed to be zero.Anything you are going to use as a pointer is set to all zero bits.That is usually a null pointer, but it is not guaranteed.Anything you are going to use as a float or double is set to all zero bits; that is a floating-point zero on some types of machines, but not on all.The minor difference between the two is that calloc() returns an array of objects; malloc() returns one object.Some people use calloc() to make clear that they want an array.In computer science and telecommunication, interleaving is a way to arrange data in a non-contiguous way to increase performance.Palindrome Number(判断一个整数数是否回文数)。

      点击阅读更多内容
      相关文档
      北师版七下数学-4.1.3 三角形的高线、中线和角平分线【课件】.pptx 2025届高考数学的最后一课【课件】.pptx 2024年新高考数学阅卷经验分享评分细则及2025年备考建议【课件】.pptx 2025高考数学二轮复习-10.1分类加法计数原理与分步乘法计数原理【课件】.pptx 2025高考数学二轮复习-6.2一元二次不等式及其解法【课件】.ppt 北师版九下数学1.6 利用三角函数测高【课件】.pptx 第三章+铁+金属材料+复习巩固题+++2025-2026学年高一上学期化学人教版必修第一册+.docx 山东省泰安市肥城市2025届高三上学期开学考试化学试卷.docx 第三章+铁+金属材料++课后练习+++2025-2026学年高一上学期化学人教版必修第一册+.docx 云南省红河州、文山州2024-2025学年高一下学期学业质量监测化学试卷(无答案).docx 安徽省淮北市2024-2025学年上学期高一第三次检测卷物理试题.docx 安徽省芜湖市联考2024-2025学年高一期末模拟物理试卷.docx 【物理】辽宁省五校联考2024-2025学年高一上学期期末试题(解析版).docx 【物理】广东省湛江市2024-2025学年高一上学期1月期末调研考试试卷(解析版).docx 【物理】江西省上饶市2024-2025学年高一上学期1月期末试题(解析版).docx 广东省广州市2024-2025学年高一(上)期末物理试卷.docx 北京市朝阳区2024-2025学年高一(上)期末物理试卷-(解析版).docx 安徽省多市2024-2025学年高一(上)联考物理试卷(12月).docx 2025届天域全国名校协作体高三下学期10月联考-数学试题(含答案).docx 甘肃省白银 市2024-2025学年高一(上)期末试卷.docx
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.