• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            小蟲之家
            C++探索之旅

            華為筆試題
                     1.請你分別畫出OSI的七層網(wǎng)絡(luò)結(jié)構(gòu)圖和TCP/IP的五層結(jié)構(gòu)圖。
              2.請你詳細(xì)地解釋一下IP協(xié)議的定義,在哪個層上面?主要有什么作用?TCP與UDP呢?
              3.請問交換機(jī)和路由器各自的實(shí)現(xiàn)原理是什么?分別在哪個層次上面實(shí)現(xiàn)的?
              4.請問C++的類和C里面的struct有什么區(qū)別?
              5.請講一講析構(gòu)函數(shù)和虛函數(shù)的用法和作用。
              6.全局變量和局部變量有什么區(qū)別?是怎么實(shí)現(xiàn)的?操作系統(tǒng)和編譯器是怎么知道的?
              7.8086是多少位的系統(tǒng)?在數(shù)據(jù)總線上是怎么實(shí)現(xiàn)的?

            聯(lián)想筆試題
                     
            1.設(shè)計(jì)函數(shù) int atoi(char *s)。
              2.int i=(j=4,k=8,l=16,m=32); printf(“%d”, i); 輸出是多少?
              3.解釋局部變量、全局變量和靜態(tài)變量的含義。
              4.解釋堆和棧的區(qū)別。
              5.論述含參數(shù)的宏與函數(shù)的優(yōu)缺點(diǎn)


            普天C++筆試題
                     1.實(shí)現(xiàn)雙向鏈表刪除一個節(jié)點(diǎn)P,在節(jié)點(diǎn)P后插入一個節(jié)點(diǎn),寫出這兩個函數(shù)。
              2.寫一個函數(shù),將其中的\t都轉(zhuǎn)換成4個空格。
              3.Windows程序的入口是哪里?寫出Windows消息機(jī)制的流程。
              4.如何定義和實(shí)現(xiàn)一個類的成員函數(shù)為回調(diào)函數(shù)?
              5.C++里面是不是所有的動作都是main()引起的?如果不是,請舉例。
              6.C++里面如何聲明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.內(nèi)聯(lián)函數(shù)在編譯時是否做參數(shù)類型檢查?
              void g(base & b){
               b.play;
              }
              void main(){
               son s;
               g(s);
               return;
              }

                     1. How do you code an infinite loop in C?
              2. Volatile:
             ?。?)What does the keyword volatile mean? Give an example
             ?。?)Can a parameter be both const and volatile? Give an example
              (3)Can a pointer be volatile? Give an example
              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?
             ?。?)const int a;
             ?。?)int const a;
              (3)const int *a;
             ?。?)int * const a;
             ?。?)int const * a const;
              5. Which of the following statements describe the use of the keyword static?
              (1)Within the body of a function: A static variable maintains its value between function revocations
             ?。?)Within a module: A static variable is accessible by all functions within that module
             ?。?)Within a module: A static function can only be called by other functions within that module
              6. 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 function 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 <=10 ? 100:200): 500);
               printf(“%d”, k);
              }
              9. What will the following C code do?
              int *ptr;
              ptr =(int *)Ox67a9;
              *ptr = Oxaa55;
              10. What will be the output of the follow C code?
              #define product(x) (x*x)
              main()
              {
               int i = 3, j, k;
               j = product(i++);
               k = product(++i);
               printf(“%d %d”,j,k);
              }
              11. Simplify the following Boolean expression
              !((i ==12) || (j > 15))
              12. How many flip-flop circuits are needed to divide by 16?
              13. Provides 3 properties that make an OS, 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
              How 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
               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 are 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 * radius * radius;
               printf(“\nArea = %f”, area);
               return area;
              }

             維爾VERITAS軟件筆試題
              1. A class B network on the internet has a subnet mask of 255.255.240.0, what is the maximum number of hosts per subnet .
              a. 240 b. 255 c. 4094 d. 65534
              2. What is the difference: between o(log n) and o(log n^2), where both logarithems have base 2 .
              a. o(log n^2) is bigger b. o(log n) is bigger
              c. no difference
              3. For a class what would happen if we call a class’s constructor from with the same class’s constructor .
              a. compilation error b. linking error
              c. stack overflow d. none of the above
              4. “new” in c++ is a: .
              a. library function like malloc in c
              b. key word c. operator
              d. none of the above
              5. Which of the following information is not contained in an inode .
              a. file owner b. file size
              c. file name d. disk address
              6. What’s the number of comparisons in the worst case to merge two sorted lists containing n elements each .
              a. 2n b.2n-1 c.2n+1 d.2n-2
              7. Time complexity of n algorithm T(n), where n is the input size ,is T(n)=T(n-1)+1/n if n>1 otherwise 1 the order of this algorithm is .
              a. log (n) b. n c. n^2 d. n^n
              8. The number of 1’s in the binary representation of 3*4096+ 15*256+5*16+3 are .
              a. 8 b. 9 c. 10 d. 12

            揚(yáng)智(科技)筆試題目
              1. Queue is a useful structure
              * What is a queue?
              * 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 heap tree
              * an AVL tree
              3. * What is a synchronous I/O bus?
              * What is an asnchronous I/O bus?
              * Compare the advantages and disadvantages of synchronous and a synchronous I/O bus.
              4. Explain the following terminology:
              * Baud rate
              * Handshaking
              * 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
              * direct mapping
              * associative mapping
              * 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.
              11.什么是進(jìn)程(Process)和線程(Thread)?有何區(qū)別?
              12.MFC和SDK有何區(qū)別?
              13.IRP是什么?有何作用?
              14.Windows 2000操作系統(tǒng)下用戶模式和內(nèi)核模式下編程有何區(qū)別?
              15.驅(qū)動程序的BUFFER能swap到磁盤上去嗎?為什么?
              16.試編寫3個函數(shù)實(shí)現(xiàn)
             ?。?)建立一個雙向鏈表
             ?。?)插入一個節(jié)點(diǎn)
             ?。?)刪除一個節(jié)點(diǎn)
              17.簡述Hardware interrupt和software中斷的區(qū)別,簡述其應(yīng)用。
              18.試編寫一個函數(shù),計(jì)算一個字符串中A的個數(shù)。
              19.畫出其相應(yīng)流程圖并編寫一個函數(shù)實(shí)現(xiàn)一個整數(shù)到二進(jìn)制數(shù)的轉(zhuǎn)換,如輸入6,輸出110。
              20.
              (1)編寫一個遞歸函數(shù),刪除一個目錄。
             ?。?)編寫一個非遞歸函數(shù),刪除一個目錄。
              并比較其性能。


            廣東北電面試題目
              英文筆試題
              1. Tranlation (Mandatory)
              CDMA venders have worked hard to give CDMA roaming capabilities via the development of RUIM-essentially, a SIM card for CDMA handsets currently being deployed in China for new CDMA operator China Unicom. Korean cellco KTF demonstrated earlier this year the ability to roam between GSM and CDMA using such cards.However,only the card containing the user’s service data can roam-not the CDMA handset or the user’s number (except via call forwarding).
              2. Programming (Mandatory)
              Linked list
              a. Implement a linked list for integers,which supports the insertafter (insert a node after a specified node) and removeafter (remove the node after a specified node) methods;
              b. Implement a method to sort the linked list to descending order.
              3. Debugging (Mandatory)
              a. For each of the following recursive methods,enter Y in the answer box if themethod terminaters (assume i=5), Otherwise enter N.
              static int f(int i){
               return f(i-1)*f(i-1);
               }
              Ansewr:
              static int f(int i){
               if(i==0){return 1;}
               else {return f(i-1)*f(i-1);}
               }
              Ansewr:
              static int f(int i){
               if(i==0){return 1;}
               else {return f(i-1)*f(i-2);}
               }
              Ansewr:
              b. There are two errors in the following JAVA program:
              static void g(int i){
               if(i==1){return;}
               if(i%2==0){g(i/2);return;}
               else {g(3*i);return;}
               }
              please correct them to make sure we can get the printed-out result as below:
              3 10 5 16 8 4 2 1
              
              中文筆試題
              1.漢譯英
              北電網(wǎng)絡(luò)的開發(fā)者計(jì)劃使來自于不同組織的開發(fā)者,能夠在北電網(wǎng)絡(luò)的平臺上開發(fā)圓滿的補(bǔ)充業(yè)務(wù)。北電網(wǎng)絡(luò)符合工業(yè)標(biāo)準(zhǔn)的開放接口,為補(bǔ)充業(yè)務(wù)的開展引入了無數(shù)商機(jī),開發(fā)者計(jì)劃為不同層面的開發(fā)者提供不同等級的資格,資格的劃分還考慮到以下因素:補(bǔ)充業(yè)務(wù)與北電網(wǎng)絡(luò)平臺的集合程度,開發(fā)者團(tuán)體與北電網(wǎng)絡(luò)的合作關(guān)系,等等。
              2.編程
              將整數(shù)轉(zhuǎn)換成字符串:void itoa(int,char);
              例如itoa(-123,s[])則s=“-123”;


            posted on 2006-01-20 10:23 小蟲 閱讀(2699) 評論(5)  編輯 收藏 引用 所屬分類: 轉(zhuǎn)貼

            FeedBack:
            # re: 求職筆試題[轉(zhuǎn)]
            2011-07-18 19:04 | ROCHA25Phyllis
            I think that to get the <a href="http://bestfinance-blog.com/topics/home-loans">home loans</a> from creditors you should present a firm motivation. However, once I've got a college loan, because I wanted to buy a building.   回復(fù)  更多評論
              
            # re: 求職筆試題[轉(zhuǎn)]
            2011-08-26 06:33 | write my term paper
            There're lots of ways to resolve your college essays composing troubles. However, the most reasonable is to buy research paper online.   回復(fù)  更多評論
              

            <2006年1月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234

            常用鏈接

            留言簿

            隨筆分類(7)

            C++

            Network

            Search

            最新隨筆

            積分與排名

            • 積分 - 7303
            • 排名 - 1352

            最新評論

            亚洲欧美日韩中文久久| 欧美激情精品久久久久久| 久久综合给久久狠狠97色| 久久久国产精品亚洲一区| 伊人色综合久久天天| 久久久久久青草大香综合精品| 精品久久久久久久国产潘金莲| 久久精品蜜芽亚洲国产AV| 久久99精品免费一区二区| 一本一本久久a久久综合精品蜜桃| 99久久人妻无码精品系列| 久久精品一区二区影院| 久久人妻少妇嫩草AV无码专区| 久久国产热这里只有精品| 乱亲女H秽乱长久久久| 久久人人爽人人精品视频| 久久精品国产亚洲精品2020| 一本久久a久久精品综合香蕉| 国产精品女同久久久久电影院| 欧洲国产伦久久久久久久| 99热精品久久只有精品| 久久99精品国产麻豆| 久久久久久久波多野结衣高潮| 久久久久人妻一区精品| 久久国产精品久久久| 欧美午夜精品久久久久免费视| 亚洲欧洲久久久精品| 狠狠人妻久久久久久综合| 热久久国产精品| 91久久成人免费| 久久综合九色综合欧美狠狠| 国产精品久久久亚洲| 精品乱码久久久久久久| 亚洲国产另类久久久精品| 国产精品中文久久久久久久 | 久久99热狠狠色精品一区| 三级三级久久三级久久| 国产99久久久国产精品小说| 色综合合久久天天给综看| 色婷婷久久久SWAG精品| 综合久久给合久久狠狠狠97色|