VC筆試題大全_第1頁
VC筆試題大全_第2頁
VC筆試題大全_第3頁
VC筆試題大全_第4頁
VC筆試題大全_第5頁
已閱讀5頁,還剩65頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、1實現(xiàn)雙向鏈表刪除一個節(jié)點P,在節(jié)點P后插入一個節(jié)點,寫出這兩個函數(shù)。 2寫一個函數(shù),將其中的t都轉換成4個空格。 3Windows程序的入口是哪里?寫出Windows消息機制的流程。 4如何定義和實現(xiàn)一個類的成員函數(shù)為回調函數(shù)? 5C+里面是不是所有的動作都是main()引起的?如果不是,請舉例。 6C+里面如何聲明const void f(void)函數(shù)為C程序中的庫函數(shù)? 7下列哪兩個是等同的 int b; A const int* a = &b; B const* int a = &b; C const int* const a = &b; D int cons

2、t* const a = &b; 8內聯(lián)函數(shù)在編譯時是否做參數(shù)類型檢查?一、請?zhí)顚態(tài)OOL , float, 指針變量 與“零值”比較的 if 語句。(10分)提示:這里“零值”可以是0, 0.0 , FALSE或者“空指針”。例如 int 變量 n 與“零值”比較的 if 語句為:if ( n = 0 )if ( n != 0 )以此類推。請寫出 BOOL flag 與“零值”比較的 if 語句:請寫出 float x 與“零值”比較的 if 語句:請寫出 char *p 與“零值”比較的 if 語句:二、以下為Windows NT下的32位C+程序,請計算sizeof的值(10分)

3、char str = “Hello” ;char *p = str ;int n = 10;請計算sizeof (str ) = sizeof ( p ) = sizeof ( n ) = void Func ( char str100)請計算sizeof( str ) = void *p = malloc( 100 );請計算sizeof ( p ) =三、簡答題(25分)1、頭文件中的 ifndef/define/endif 干什么用?2、#include 和 #include “filename.h” 有什么區(qū)別?3、const 有什么用途?(請至少說明兩種)4、在C+ 程序中調用被 C

4、編譯器編譯后的函數(shù),為什么要加 extern “C”聲明?5、請簡述以下兩個for循環(huán)的優(yōu)缺點/ 第一個for (i=0; i if (condition)DoSomething();elseDoOtherthing(); / 第二個if (condition)for (i=0; i DoSomething();elsefor (i=0; i DoOtherthing();優(yōu)點:缺點:優(yōu)點:缺點:四、有關內存的思考題(20分)void GetMemory(char *p)p = (char *)malloc(100);void Test(void) char *str = NULL;GetMe

5、mory(str); strcpy(str, hello world);printf(str);請問運行Test函數(shù)會有什么樣的結果?答:char *GetMemory(void) char p = hello world;return p;void Test(void)char *str = NULL;str = GetMemory(); printf(str);請問運行Test函數(shù)會有什么樣的結果?答:Void GetMemory2(char *p, int num)*p = (char *)malloc(num);void Test(void)char *str = NULL;GetMe

6、mory(&str, 100);strcpy(str, hello); printf(str); 請問運行Test函數(shù)會有什么樣的結果?答:void Test(void)char *str = (char *) malloc(100);strcpy(str, “hello”);free(str); if(str != NULL)strcpy(str, “world”); printf(str);請問運行Test函數(shù)會有什么樣的結果?答:五、編寫strcpy函數(shù)(10分)已知strcpy函數(shù)的原型是char *strcpy(char *strDest, const char *strSrc);其

7、中strDest是目的字符串,strSrc是源字符串。(1)不調用C+/C的字符串庫函數(shù),請編寫函數(shù) strcpy(2)strcpy能把strSrc的內容復制到strDest,為什么還要char * 類型的返回值?六、編寫類String的構造函數(shù)、析構函數(shù)和賦值函數(shù)(25分)已知類String的原型為:class Stringpublic:String(const char *str = NULL); / 普通構造函數(shù)String(const String &other); / 拷貝構造函數(shù) String(void); / 析構函數(shù)String & operate =(const String

8、 &other); / 賦值函數(shù)private:char *m_data; / 用于保存字符串;請編寫String的上述4個函數(shù)。Sony筆試題1完成下列程序* *.*. *.*.*. *.*.*.*. *.*.*.*.*. *.*.*.*.*.*. *.*.*.*.*.*.*. *.*.*.*.*.*.*.*. #include #define N 8 int main() int i; int j; int k; - | - return 0; 2完成程序,實現(xiàn)對數(shù)組的降序排序 #include void sort( ); int main() int array=45,56,76,234

9、,1,34,23,2,3; /數(shù)字任/意給出 sort( ); return 0; void sort( ) - | - 3費波那其數(shù)列,1,1,2,3,5編寫程序求第十項??梢杂眠f歸,也可以用其他方法,但要說明你選擇的理由。 #include int Pheponatch(int); int main() printf(The 10th is %d,Pheponatch(10); return 0; int Pheponatch(int N) - |- 4下列程序運行時會崩潰,請找出錯誤并改正,并且說明原因。 #include #include typedef struct TNode* l

10、eft; TNode* right; int value; TNode; TNode* root=NULL; void append(int N); int main() append(63); append(45); append(32); append(77); append(96); append(21); append(17); / Again, 數(shù)字任意給出 void append(int N) TNode* NewNode=(TNode *)malloc(sizeof(TNode); NewNode-value=N; if(root=NULL) root=NewNode; retu

11、rn; else TNode* temp; temp=root; while(N=temp.value & temp.left!=NULL) | (N=temp.value & temp.left!=NULL) temp=temp.left; while(N=temp.value) temp.left=NewNode; else temp.right=NewNode; return; 華為筆試題 1請你分別畫出OSI的七層網(wǎng)絡結構圖和TCP/IP的五層結構圖。 2請你詳細地解釋一下IP協(xié)議的定義,在哪個層上面?主要有什么作用?TCP與UDP呢 ? 3請問交換機和路由器各自的實現(xiàn)原理是什么?分別

12、在哪個層次上面實現(xiàn)的? 4請問C+的類和C里面的struct有什么區(qū)別? 5請講一講析構函數(shù)和虛函數(shù)的用法和作用。 6全局變量和局部變量有什么區(qū)別?是怎么實現(xiàn)的?操作系統(tǒng)和編譯器是怎么知道的 ? 78086是多少位的系統(tǒng)?在數(shù)據(jù)總線上是怎么實現(xiàn)的? 聯(lián)想筆試題 1設計函數(shù) int atoi(char *s)。 2int i=(j=4,k=8,l=16,m=32); printf(“%d”, i); 輸出是多少? 3解釋局部變量、全局變量和靜態(tài)變量的含義。 4解釋堆和棧的區(qū)別。 5論述含參數(shù)的宏與函數(shù)的優(yōu)缺點。 普天C+筆試題 1實現(xiàn)雙向鏈表刪除一個節(jié)點P,在節(jié)點P后插入一個節(jié)點,寫出這兩個函數(shù)

13、。 2寫一個函數(shù),將其中的t都轉換成4個空格。 3Windows程序的入口是哪里?寫出Windows消息機制的流程。 4如何定義和實現(xiàn)一個類的成員函數(shù)為回調函數(shù)? 5C+里面是不是所有的動作都是main()引起的?如果不是,請舉例。 6C+里面如何聲明const void f(void)函數(shù)為C程序中的庫函數(shù)? 7下列哪兩個是等同的 int b; A const int* a = &b; B const* int a = &b; C const int* const a = &b; D int const* const a = &b; 8內聯(lián)函數(shù)在編譯時是否做參數(shù)類型檢查? void g(ba

14、se & b) b.play; void main() son s; g(s); return; 大唐電信-DTT筆試題 考試時間一小時,第一部分是填空和選擇: 1數(shù)列6,10,18,32,“?”,問“?”是幾? 2某人出70買進一個x,80賣出,90買回,100賣出,這樁買賣怎么樣? 3月球繞地球一圈,至少要多少時間? 47個人用7小時挖了7米的溝,以同樣的速度在50小時挖50米的溝要多少人? 5魚頭長9,魚尾等于魚頭加半個魚身,魚身等于魚頭加魚尾,問魚全長多少? 6一個小姐買了一塊手表,回家發(fā)現(xiàn)手表比她家的表慢了兩分鐘,晚上看新聞的時候又發(fā)現(xiàn)她家的表比新聞里的時間慢了兩分鐘,則 。 A 手

15、表和新聞里的時間一樣 B 手表比新聞里的時間慢 C 手表比新聞里的時間快 7王先生看到一則招聘啟事,發(fā)現(xiàn)兩個公司除了以下條件不同外,其他條件都相同 A 半年年薪50萬,每半年漲5萬 B 一年年薪100萬,每一年漲20萬 王先生想去一家待遇比較優(yōu)厚的公司,他會去哪家? 10問哪個袋子里有金子? A袋子上的標簽是這樣寫的:B袋子上的話是對的,金子在A袋子。 B袋子上的標簽是這樣寫的:A袋子上的話是錯的,金子在A袋子里。 113個人住酒店30塊錢,經(jīng)理找回5塊錢,服務生從中藏了2塊錢,找給每人1塊錢,3(101)+2=29,問這是怎么回事? 12三篇寫作,均為書信形式。 (1)一片中文的祝賀信,祝賀

16、某男當了某公司xx (2)兩篇英文的,一是說有事不能應邀,派別人去;另一篇是討債的,7天不給錢就走人(主要考business letter格式)。 大唐面試試題 1什么是中斷?中斷發(fā)生時CPU做什么工作? 2CPU在上電后,進入操作系統(tǒng)的main()之前必須做什么工作? 3簡述ISO OSI的物理層Layer1,鏈路層Layer2,網(wǎng)絡層Layer3的任務。 4有線電話和無線電話有何區(qū)別?無線電話特別需要注意的是什么? 5軟件開發(fā)五個主要step是什么? 6你在開發(fā)軟件的時候,這5個step分別占用的時間百分比是多少? 7makefile文件的作用是什么? 8UNIX顯示文件夾中,文件名的命令

17、是什么?能使文件內容顯示在屏幕的命令是什么 ? 9(選做)手機用戶在從一個基站漫游到另一個基站的過程中,都會發(fā)生什么? 網(wǎng)通筆試題 選擇題(每題5分,只有一個正確答案) 1中國1號信令協(xié)議屬于 的協(xié)議。 A ccs B cas C ip D atm 2isdnpri協(xié)議全稱是 。 A 綜合業(yè)務模擬網(wǎng)基速協(xié)議 B 綜合業(yè)務模擬網(wǎng)模擬協(xié)議 C 綜合業(yè)務數(shù)字網(wǎng)基率協(xié)議 D 綜合業(yè)務數(shù)字網(wǎng)基次協(xié)議 3路由協(xié)議中, 協(xié)議是用距離作為向量的。 A ospf B bgp C is-is D rip 4中國智能網(wǎng)中,ssp與scp間最上層的ss7協(xié)議是 。 A incs B is41b C is41c D i

18、nap 5dtmf全稱是 。 A 雙音多頻 B多音雙頻 C多音三頻 D三音多頻 6計算機的基本組成部分中,不包含下面設備的是 。 A cpu B輸入設備 C存儲器 D接口 7脈沖編碼調制的簡稱是 。 A pcm B pam C (delta)M D atm 8普通電話線接口專業(yè)稱呼是 。 A rj11 B rj45 C rs232 D bnc 9現(xiàn)有的公共數(shù)據(jù)網(wǎng)都采用 。 A電路交換技術 B報文交換技術 C語音插空 D分組交換 10ss7協(xié)議中的制止市忙消息簡寫為 。 A stb B slb C sub D spb 簡答題(每題10分) 1簡述普通電話與IP電話的區(qū)別。 2簡述隨路信令與公路信

19、令的根本區(qū)別。 3說明掩碼的主要作用。 4ss7協(xié)議中,有三大要素決定其具體定位,哪三大要素? 5描述ss7的基本通話過程。 6簡述通信網(wǎng)的組成結構。 7面向連接與面向非連接各有何利弊? 8寫出愛爾蘭的基本計算公式。 9數(shù)據(jù)網(wǎng)主要有哪些設備? 10中國一號協(xié)議是如何在被叫號碼中插入主叫號碼的? 東信筆試題目 筆試:30分鐘。 1壓控振蕩器的英文縮寫。 2動態(tài)隨機存儲器的英文縮寫。 3選擇電阻時要考慮什么? 4單片機上電后沒有運轉,首先要檢查什么? 5計算機的基本組成部分及其各自的作用。 6怎樣用D觸發(fā)器、與或非門組成二分頻電路? 中軟融鑫筆試題 1關于工作 (1) 你對未來的工作生活是怎樣憧憬

20、的?為何選擇我公司作為求職公司? (2)請用不超過30個字給出一個最能讓我們錄用你的理由。 (3)你認為比較理想的工作環(huán)境是怎樣的? (4)你個人的中長期的職業(yè)發(fā)展目標是怎樣的? 2關于社會 (1)如果你是楊利偉,你在太空中向祖國人民說的第一句話是什么? (2)宋美齡女士于2003年10月謝世,對這位著名人士在西安事變中的態(tài)度和作用,你是如何看待的?(不超過300字) (3)北京政府頒布的對拾金不昧者,失主要獎勵相當于財產(chǎn)20%獎金的公告,你是如何看的? (4)如果給你50萬元人民幣,你將會用這些錢做什么? (5)在美國,男、女衛(wèi)生間(廁所)的正確稱呼為什么?請用英語寫出答案。 (6)你認為麥

21、當勞是世界最大的漢堡生產(chǎn)商嗎?如果不是,請說出你的觀點。 3教育背景 (1)你受過哪些正規(guī)的教育或培訓?(自高中畢業(yè)起) (2)在校期間進行過哪些社會活動? Delphi筆試題目 機械類筆試試題 1. Briefly describe what is blanking(cutting), forming, coining and embossing in stamping process. 2. What is metal clading? 3. What is the purpose of adding glass fiber to thermoplastic material? 4. In

22、 contrast with metal and thermoplastic material,which has a higher coefficient of thermal expansion(CTE). 5. The most suitable material for a integral hinge design (typical plastic thickness=0.25 to 0.5mm at hinge) 6. Can a bending load makes both compressive and tensile stress in a member? 7. What

23、is the design criteria used in plastics catch/snap? 8. What is FEA? 9. Why is natural frequency important in vibration analysis? 10. What is the deflection equation of a cantilever beam fixed at one edge?EE筆試試題 1. Name 3 Vehicle Buses. 2. Name 2 possible sources of Electromagnetic interference on El

24、ectronics Circuit ASM. 3. Wavelength for 12MHz frequency signal is_ 4. Name 2 important considerations for car radio performance related to audio signal processing under multipath condition5. What is the typical FM receiver RF signal strength to achieve 30dB S/N for car radio? 6. When a radio is tun

25、ed to 98.1 MHz & with a LO of 108.8 MHz, what is the image frequency? 7. For a system with a matched impedance, what is the Reflection Coefficient and SWR?8. Which property of the output capacitor is the primary cause of Low Drop Out(LDO) regulator loop instability? (1)Equivalent series resistance(E

26、SR) (2)Effective series inductance(ESL) (3)Capacitance value (4)Dielectric material 9. The switching regulator is capable of: (1)Higher power conversion efficiency (2)Providing an output voltage that is higher than the input (3)Generating an output boltage oppsite in polarity to the input (4)All of

27、the above 10. A linear regulator op Vin(max) = 10v, Vout(min) = 4.8v, Iout(max) = 2.5mA, Iq(max) = 2.5mA, Ta(max) = 8.5攝氏度,The regulator is available in 3 packages.Each package has the following thermal characteristics:Package Rja(攝氏度/W) Rjc(攝氏度/W) SO14 125 30 D1P8 100 52 Choose the most suitable pa

28、ckage to handle the power dissipation requirement without a heat sink and why. 軟件筆試題 1. How do you code an infinite loop in C? 2. Volatile: (1)What does the keyword volatile mean? Give an example (2)Can a parameter be both const and volatile? Give an example (3)Can a pointer be volatile? Give an exa

29、mple 3. What are the values of a, b, and c after the following instructions: int a=5, b=7, c; c = a+b; 4. What do the following declarations mean? (1)const int a; (2)int const a; (3)const int *a; (4)int * const a; (5)int const * a const; 5. Which of the following statements describe the use of the k

30、eyword static? (1)Within the body of a function: A static variable maintains its value between function revocations (2)Within a module: A static variable is accessible by all functions within that module (3)Within a module: A static function can only be called by other functins within that module 6.

31、 Embedded systems always require the user to manipulate bits in registers or variables. Given an integer variable a, write two code fragments. The first should set bit 5 of a. The second shnuld clear bit 5 of a. In both cases, the remaining bits should be unmodified. 7. What does the following funct

32、ion return? char foo(void) unsigned int a = 6; iht b = -20; char c; (a+b 6) ? (c=1): (c=0); return c; 8. What will be the output of the following C code? main() int k, num= 30; k =(num 5 ? (num 15) 12. How many flip-flop circuits are needed to divide by 16? 13. Provides 3 properties that make an OS,

33、 a RTOS? 14. What is pre-emption? 15. Assume the BC register value is 8538H, and the DE register value is 62A5H.Find the value of register BC after the following assembly operations: MOV A,C SUB E MOV C,A MOV A,B SBB D MOV B,A 16. In the Assembly code shown below LOOP: MVI C,78H DCR C JNZ LOOP HLT H

34、ow many times is the DCR C Operation executed? 17. Describe the most efficient way (in term of execution time and code size) to divide a number by 4 in assembly language 18. what value is stored in m in the following assembly language code fragment if n=7? LDAA #n LABEL1: CMPA #5 BHI L3 BEQ L2 DECA

35、BRA L1 LABEL2: CLRA LABEL3: STAA #m 19. What is the state of a process if a resource is not available? #define a 365*24*60*60 20. Using the #define statement, how would you declare a manifest constant that returns the number of seconds in a year? Disregard leap years in your answer. 21. Interrupts a

36、re an important part of embedded systems. Consequently, many compiler vendors offer an extension to standard C to support interrupts. Typically, the keyword is _interrupt. The following routine (ISR). Point out problems in the code. _interrupt double compute_area (double radius) double area = PI * r

37、adius * radius; printf(“nArea = %f”, area); return area; Hongkong Bank筆試題 1. Please state why you chose to follow these activities and how they have contributed to your personal development. You may wish to give details of your role whether anyone else was involved and any difficulties you encounter

38、ed. 2. Please state how you have benefited from your work experience. 3. How much is your present monthly salary including allowances. 4. Do you need to compensate your present employer if you resign? If so, please give details. 5. Other than academic success, what has been your greatest achievement

39、 to date? What do you see as your personal strength, why? 6. Please state why the position you have applied for is appropriate for you; Why you have selected HongKong Bank and what your career objectives are. A.T. Keaney筆試題 1. Describe your greatest achievement in the past 4-5 years? 2. What are you

40、r short-term and long-term career objectives? What do you think is the most ideal job for you? 3. Why do you want to join A.T kearney? What do you think you can contribute to A.T kearney? 4. Why are you applying for a position at Arthur Anderson? 5. What are your expectations of our firm. 6. Describ

41、e your hobbies and interests. Shell company筆試題 1. How wold your colleagues/classmates describe you in five words? On what evidence would they base this assessment. 2. If you are asked to recruit the best graduates for shell, what would you do to attract them? What would you do to select them? 3. Ple

42、ase describe a new activity that you have initiated and implemented. Please highlight your role out. 4. Please describe your outstanding non-academic achieve- ments. 5. Please describe any other significant activities you have been involved in including organizing people. 6. Imagine that Shell has f

43、ound oil in an inland province of China, near a large river. You are responsible for planning how to transport the oil to the coast thousands of miles away. What are the main issue you would consider, and what would you do? KPMG筆試題 “The big economic difference between nuclear and fossil-fuelled powe

44、r stations is that nuclear reactors are more expensive to build and decommission, but cheaper to sun. So disputes over the relative efficiency of the two systems revolve not just around prices of coal and uranium today and tomorrow, but also around the way in which future income should be compared w

45、ith current income.” 1. The main difference between nuclear and fossil-fuelled power stations is an economic one. TRUE UNTRUE CANNOT SAY 2. The price of coal is not relevant to discussions about the relative efficiency of nuclear reactors. TRUE UNTRUE CANNOT SAY 3. If nuclear reactors were cheaper t

46、o build and decommission than fossil-fuelled power stations, they would definitely have the economic advantage. TRUE UNTRUE CANNOT SAY“At any given moment we are being bombarded by physical and psychological stimuli competing for our attention. Although our eyes are capable of handling more than 5 m

47、illion bits of data per second, our brain are capable of interpreting only about 500 bits per second. With similar disparities between each of the other senses and the brain, it is easy to see that we must select the vi sual, auditory, or tactile stimuli that we wish to compute at any specific time.

48、” 4. Physical stimuli usually win in the competition for our attention. TRUE UNTRUE CANNOT SAY 5. The capacity of the human brain is sufficient to interpret nearly all the stimuli the senses can register under optimum conditions. TRUE UNTRUE CANNOT SAY 6. Eyes are able to cope with a greater input o

49、f information than ears. TRUE UNTRUE CANNOT SAY VERBAL ANSWER: (1)C CANNOT SAY (2)B UNTRUE (3)A TRUE (4)C CANNOT SAY (5)B UNTRUE (6)C CANNOT SAY PartII NUMERCAL TEST 1Which country had the highest number of people aged 60 or over at the start of 1985? A. UK B. France C. Italy D. W.Germany E. Spain 2What percentage of the total 15mm button production was classed as sub-standard in September? AA 10.5% BB 13% CC 15% DD 17.5% EE 20% AB 23.5% AC 25% AD 27.5% AE 28% BC 30.5% 3. How many live births occurred in 1

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論