Clanguageinterviewquestions(C语言面试题)

上传人:缘*** 文档编号:333289292 上传时间:2022-09-01 格式:PDF 页数:41 大小:2.25MB
返回 下载 相关 举报
Clanguageinterviewquestions(C语言面试题)_第1页
第1页 / 共41页
Clanguageinterviewquestions(C语言面试题)_第2页
第2页 / 共41页
Clanguageinterviewquestions(C语言面试题)_第3页
第3页 / 共41页
Clanguageinterviewquestions(C语言面试题)_第4页
第4页 / 共41页
Clanguageinterviewquestions(C语言面试题)_第5页
第5页 / 共41页
点击查看更多>>
资源描述

《Clanguageinterviewquestions(C语言面试题)》由会员分享,可在线阅读,更多相关《Clanguageinterviewquestions(C语言面试题)(41页珍藏版)》请在金锄头文库上搜索。

1、C la ngu a ge int e rv ie w qu e s t ions (C 语言面试题)Interview questionsWhat is the difference between the 1.1 inked list and the array?2.to prepare a list sorting algorithm.Explain why you wouldchoose to use this method3.write an array sorting algorithm.Explain why you wouldchoose to use this method4

2、.write code that directly implements the function of thestrstr()function.5.write reverse string program,requiring speed optimization,optimization of space.6.how do I find the link in the list?7.gives an algorithm for shuffling and stores the cards in aplastic array.8.write a function to check if the

3、 character is an integer,and if so,return its integer value,(or:how can you write afunction from strings to long lines with only 4 1 ines of code?)9.gives a function to output all the permutations of a string.10.please write the implementation of malloc()memoryallocation function,the same code.11.gi

4、ves a function to copy two strings,A and B.The last fewbytes of the string A overlap the first few bytes of the stringB.12.how to write a program that puts an ordered integer arrayinto a two fork tree?13.how to print two tree node data at the top layer by layer?Please programming.14.,how to drop a l

5、ist of orders(that is,reverse order,payattention to the boundary conditions of the list and considerthe empty list)?In addition:First,the individual choice questions:(12 questions,2 pointsper subject,24 points)1.which of the following is not the standard data type of C+?(D)A.int B.charC.bool D.realI

6、n which grammar structure can the 2.break keyword not be used?(0A.for statement B.switch statementC.if statement D.while statementHow many kinds of inheritance are there in the 3.kind?(B)A.two kinds of B.,three kindsC.four kinds of D.,six kindsWhat is the role of the 4.extern keyword?(D)A.declares e

7、xternal links,and B.declares external headerreferencesThe C.declaration uses the extended C+statement D.to declareexternal member functions and member data.What is the function of the 5.C 1 ibrary function strstr?(A)A.lookup substring B.calculates string lengthThe C.string compares the D.connection

8、string6.,stl:what is the data type of deque?(A)A.dynamic array B.linked listC.stack D.treeWhat generic algorithm does the 7.STL library contain?(D)A.KMP B.search bisearchC.bubble sort D.quick sort8.what is the fastest and most common sorting algorithm now?(A)A.quick sort B.bubble sortC.select sort D

9、.external sortingWhich of the threads under 9.Win32 has the highest priority?(C)A.THREADPRIORITY_HIGHEST high priorityB.THREAD_PRIORITY_IDLE minimum priority,only when the systemis idleC.THREADPRIORITY_TIMECRITICAL highest priorityD.THREAD_PRIORITY_ABOVE_N0RMAL is higher than common priority1 0.whic

10、h of the following four options is not a parameter tothe WinMain function?(D)A.HINSTANCE B.INTC.LPSTR D.WPARAMIn the 1 1.VC+compiler,what is the underlying implementationof operator new?(B)A.,VirtualAlloc(),B.,HeapAlloc()C.,GlobalAlloc(),D.,AllocateUserPhysicalPages()12.which of the following C+refe

11、rence books is the thickest?(C)A.”Think in C+“B.easy to understand MFC”C.“C+Primer,Effective C+“D.13.,when calling the Windows API function InvalidateRect,whatmessage will be generated(A)?A.WM_PAINT B.WM_CREATEC.WM_NCHITTEST D.WM_SETFOCUS14.about virtual,void,Draw()=0,the following statementsare cor

12、rect(C)(1)it is a pure virtual function(pair)(2)it cannot be implemented in the class that defines it(right)(3)the class that defines it is not instantiated(pairs)(4)if a class to inherit a ADT class must implement all thepure virtual functions(wrong)may not realize,after class isderived as an abstr

13、act class.A.1 B.2C.3 D.4Two,uncertain item choice:(a total of 6 questions,eachquestion 3 points,a total of 18 points,multiselect,wrong andmissed the election did not give points)1.,vector:iterator overload which operators are below?(ACD)A.+B.C.=D.*(front)What are the functions of 2.CreateFile()?(AB)

14、A.opens the file B.to create a new fileC.file name change,D.delete file3.which of the following are HAN DLE?(ABCD)A.HIN STAN CE instance handle B.HWN D window handleC.HDC device descriptor handle D.HFON T font handle4.which of the following are not the rendering modes of OpenGLstandard geometry elem

15、ents?(A)A.GL_FOG B.GLLIN E_STRIPC.GL_POIN TS D.GL_TRIAN GLE_FAN5.which of the following operators cannot be overloaded?(ABD)A.uses domain operators:B.object member operatorsC.pointer member operator-D.three“operator?:“6.which of the following were involved in the development ofthe worlds first C+Com

16、piler?()A.,Bill,Gates,B.,Stanley,LippmanC.,Anderson,Hejlsberg,D.,Bjarne,Stroustrup7.the following statement is correct?(ABC)The ifndef/define/end if in the A.header file is used to preventthe header file from being repeatedly referenced.B.for ftinclude,the compiler starts searchingfilename,h from the standard library pathFor#include filename,h”,the compiler starts searching forfilename,h from the users work pathThe C.C+language supports function overloading,and the Clanguage does not support fun

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业/管理/HR > 营销创新

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号