Senior Software Engineer Examination B

First,          multiple choice (each question 1 , points were 70 min)

 

  1. Which of the following statements is not correct ___D___.

A. ARM is a company name

B. ARM is a generic term for a class of microprocessor 

C. ARM is a technical name

D. ARM is the name of a chip

 

  1. (D) command is executed to save and exit the vi editor.

A  :q

B  ZZ

C  :q!

D  :wq

  1. GCC compilation process is correct (A).

A pretreatment - compiler - Assembler - Links    

Pretreatment B - compile - link - Compilation    

C Pretreatment - Links - compiler - Assembler    

The D compiler - Pretreatment - Compilation - Links

 

 

  1. The following command, the command to delete a file is: ___ D___.

A. ls

B. mkdir

C. tail

D. rm

 

  1. Embedded processor execution cycle instruction does not include __A____.

A. start up

B. Fetch

C. Instruction decoding

D. Executing instructions

 

  1. The system boot code is read into memory is primarily the responsibility of ___C___.

A. Memory Management

B.VFS

C.Boot Loader

D. Virtual Memory

 

  1. The following interfaces are not embedded in the basic design of the processor itself with the ___C___.

A. Serial ports

B. parallel port

C.PCIE

D.AD/DA

 

  1. The following options, describing the error is __D__.

A. arch architecture specific code is

B. block generic function block devices

C. crypto can only be used for encryption and hashing algorithms

D. process communication ipc member Code

 

  1. SRAM compared with DRAM, the advantage is ___A___.

       A. SRAM is faster than DRAM

       B. DRAM and SRAM power consumption and more

       C. Higher storage density than DRAM SRAM

       D. All of the above

 

  1. File suffix named after pretreatment ___D___.
  2. .c
  3. .C
  4. .M
  5. .i

 

  1. Which of the following instruction of the register R0, the value of R1 to R2 in the added memory: __ C____.

A.AND R0, R1, R2

B.SUB R0, R1, R2

C.ADD R2, R1, R0

D.AND R1, R2, R0

 

  1. The second phase described below is not Bootloader: ___ A___.
    1. Hardware initialization
    2. This stage to be used to initialize the hardware device
    3. Detection system memory map
    4. The kernel boot parameters set

 

  1. The following description of the error on a little UBOOT is: ___ D___.
    1. Development Source
    2. Only supports Linux operating system
    3. Support for multiple processors
    4. High reliability and stability

 

  1. For the "ls -l | more" operation, the command interpreter running processes and more use ls Which of the following communication ___A___.

 

  1. pipeline
  2. message queue
  3. Sockets
  4. signal

 

  1. The following document root directory on Linux, description of the error is ___C___.
  2. The basic commands are generally stored user can use / bin directory
  3. Storage system command / sbin directory
  4. Storage device files in the / dev directory
  5. Store various configuration files in / etc directory

 

 

16, the instruction "LDMIA R0 !, {R1, R2, R3, R4}" addressing mode is (C).

              A. B. Now register indirect addressing

              C. Multi-Stack addressing register addressing D.

       17, the following features do not belong to the RISC computer (C).

              A. Pipeline week period before further. B. more general purpose registers.

              C. instruction length is not fixed, the need to perform a plurality of cycles. 

              D. Load and Store separate instruction completes transfer of data between external memory and the registers.

       18, the most appropriate transmission type USB hard disk drive as (B).

           A. When control transfer interrupt transmission B. C. D. bulk transfer transmission, etc.

       19, the embedded system design, the embedded processor is done during the selection (C).

              A. Demand Analysis System Integration B. C. D. architecture design of hardware and software design

       20, an unsigned binary number to the left, then the value (A).

              Doubling A. B. C. increased 10-fold decrease double constant D.

21, after landing the first to enter the system which of the following directory? (D)

      A./home

      B. root's home directory

      C./root

      D. The user's own home directory

22, with "rm -i", the system will prompt you to confirm what to make (B)

      A. Each command line options

      B. Really delete

      C. Is there a written permission

      D. Location of the file

23, unless otherwise specified, cp assume that you want to copy files in the following directory under which (B)

      A. home directory

      B. Current directory

      C. root directory

      D. User directory

24, founder of Linux is a student at the University of Helsinki in Finland, who he is (B)

      A.Andrew Tanenbaum

      B.Linus Torvalds

      C.Bill Gates

      D.Richard Stallman

25, if you get a run command information is denied, you can use the which command to change its permissions so that it can run (B) normal

      A.path=

      B.chmod

      C.chgrp

      D.chown

 26, showing what commands a user's home directory is (A)

      A.echo $HOME

      B.echo $USERDIR

      C.echo $ ECHO

      D.echo $ENV

27, what is the character used to separate directory and file name is (A)

      A. Slash (/)

      B. Dot (.)

      C. Minus sign (-)

      D. Asterisk (*) 

28, to determine what type of file myfile command is (C)

      A.type myfile

      B.type -q myfile

      C.file myfile

      D.whatis myfile

29, according to the _____ key can abort the currently running command (B)

      A.Ctrl-D

      B.Ctrl-C

      C.Ctrl-B

      D.Ctrl-F

30, which may execute a program symbols added after the command in the background (B)

      A.@                         B.&

      C.#                             D.*

31, by executing a command shell, you must type in a __B___

      A. parameter

      B. command

      C. Operators

      D. Terminal ID number

32, when the log on Linux, a shell with a unique process ID number will be called, what this ID? (A)

      A.PID                                       B.UID

      C.NID D.CID

33, want to find a directory system-config-network is located, by command of what can be achieved? B

      A.whereis system-config-network

      B.which system-config-network
      C.look system-config-network

      D.show system-config-network

34, through which you can print the following command to display the current working directory (B)

      A.cd                               B.pwd

      C.ls                                 D.ls -l

35, the machine has two hard disks are placed on the main IDE1 and IDE2, wherein IDE2 hung on the master disc has three primary partitions, the second primary master disk partition name in Linux is at IDE2: C

      A.hda2

      B.hdb2

      C.hdc2

      D.hdd2

 

36 , execute a program from the C (A) 

 A. The main function of this program began, to the end of the main function

B. The first function of this program file to start, the last function to the end of this program file

C. The main function of this program began, the last function to the end of this program file

D. The first function of this program file beginning to the end of the program main function

37 , in a single linked list, to remove the successor node indicated by the pointer q, then (D)

A.p= q->next; p->next= q->next    B.p = q->next; p->next =p 

C.p= q->next; q->next= p->next    D.q->next= q->next->next; q->next=q

38 , the following four options are not an option C language keyword is (A)  

A.define    B.getc    C.include   D.while

 IF           char       scanf        go

type          printf       case        pow

39 , C language identifier must consist of letters, numbers and underscores a three-character, and the first character (C) 

 A. You must be a letter B. We must underscore

      C. You must be a letter or underscore D. It can be letters, numbers and underscores in any character

40 , the following four options, are illegal floating-point number option B

A) 160. B) 123 C) a .18 D) a e3

      0.12        2e4.2     123e4          .234

     e3 .e5 0.0 1e3     

41 , two storage structure stack structure generally employed is (A)

  A, the linear memory storage structure and chain structure B, and indexing and hashing method  

  C, and an array table storing configuration D, linear and non-linear storage structure storage structure

42 , the storage address of the first element in a vector is 100, the length of each element is 2, the address of the first element 5 is (B)

 A、110   B、108    C、100     D、120

43 , if algebraic 3ae / bc, C language is not correct expression is (C) 

 A. a/b/c*e*3      B.3*a*e/b/c

 C.3*a*e/b*c       D.a*e/c/b*3

44 , the following description is not correct (D)  

A. In the C program, the comma operator lowest priority

B. In the C program, APH and aph are two different variables

C. If a and b are the same type, performed in the assignment expression a = b the value b after the discharge of a person, whereas the value of the constant b.

D. When data is input from the keyboard, for input integer values ​​only integer variables, real variables for only real value input.

45 , in the C language, must be an integer operand requires operator is (D)  

A. /   B. ++  c. !=   D.%

46 , if defined: int a = 7; float x = 2.5, y = 4.7; expression value of x + a% 3 * (int) ( x + y)% 2/4 is (A)   

A.2·500000  B.2.7500OO  c. 3.500000  D. 0.000000。

47 , circular queue with the array A [0, m-1] which is stored element values, is known to be the head and tail pointers are front and REAR, the current number of elements in the queue is (A)

     A、(rear-front+m)%m      B、rear-front+1  

     C、rear-front-1             D、rear-front

48 , upon insertion of a node pointed to by s in the Top link stack a stack pointer, which is a procedure (D)

A.Top->next=s            B.s->next= Top->next; Top->next=s

C.s->next= Top; Top =s     D.s->next= Top; Top = Top->next

49 , if x, y are defined as an int type, z is defined as a double type, the following illegal function call statement is scanf (D)

A.  scanf(" %d%lx,%le",&x,&y,&z);

B.  scanf("%2d * %d%lf"&x,&y,&z ); 

C.  scanf("%x %* d%o",&x,&y);

D.  scanf("%x%o%6.2f",&x,&y,&z);  

       50 , the following statement is correct (D) 

A. Entry may be a real constant, such as scanf ( "% f", 3.5);

B. Only format control, no entry, can be performed correctly entered, as scanf ( "a =% d, b =% d");

C. When a real input data, format control section should predetermined number of digits after the decimal point,

如scanf("%4.2f",&f);

D. When input data must specify the address of a variable, such as scanf ( "% f", & f);

51 , according to the input mode and output form the following programs and data, program input sentence should be the correct form (C)

      main()

{char  ch1  ,ch2  ,ch3;

 Input statement

printf("%c%c%c",ch1,ch2,ch3);}

 Input form: ABC

 Output Type: AB

 A.  scanf("%c%c%c",&ch1,&ch2,&ch3);

 B.  scanf("%c,%c,%c", &ch1,&ch2, &ch3);

 C.  scanf("%c %c %c",&ch1,&ch2,&ch3);

 D.  scanf("%c%c",&ch1,&ch2,&ch3);

52 , the description of the operator in priority order is correct (C)      

A. Relational operators <arithmetic operators <assignment operators <Logical AND operator

B. Logical Operators <relational operators <arithmetic operators <assignment operators

C. Assignment operator <Logical AND operator <relational operators <Arithmetic Operators

D. Arithmetic operators <relational operators <assignment operators <Logical AND operator  

53 , determines whether the type char c1 correct expression of a lowercase letter (D)

           A.' a' <=cl<=' z'    B.  (cl> = a)&&(cl<=z)

           C.(' a' >=cl)||(' z' < = cl)  D.(c1>='a')&&(cl<='z')

54 , after a value of the following statement (C) 

int a,b,c;

a= b= c= 1;

++a||++b&&++c   

A. Error B. 0 C. 2 D. 1

55 , following operators is the lowest priority (A)

A.?:   B.&&     c.+     D.  !=

56 , operation results are the following procedure (C) 

          main()   

           {int m=5;

           if(m++> 5)  printf(" %d\n",m);

            e1se     printf("%d\n",m- - );

       }

     A.4    B.5   C.6    D.7

57 , the output is the following procedure (C)  

#include <stdio.h>

main()

{

    int a = 100, x = 10, y = 20, 5 = OKL, ok2 = 0;

        if(x<y)

        if(y!=10)

    if(!okl)  a=1;

     else

        if(ok2)  a=10;

        a=-1;

        printf( "%d\n",a );

       A. 1 B. 0 C. -1 D. Undefined

58 , provided with block (C) 

     int  k=10;

       while  (k=0)  k= k—1;

     The following description is in the correct

A. while loop executes 10 times B. Loop is infinite loop

C. Loop statement is not executed a D. Loop statement is executed once

59 , run the following program is a result of (B) 

           #include  <stdio. h>

         main()    

           {int i;

for(i=1;i<=5;i++)

     switch(i%5)

{case  0:printf("* ");break;

     case  1  :printf("#");break;

     default  :printf("\n");

       case  2  :printf("&");}

           }

         A.#&&&*  B. #&   C.  #    D.#&

            &           &

            &           &*

60 , program segment following (D)   

      for  (t=1;  t<=100;t++)

       {scanf("%d",&x);

            if(x<0)  continue;

           printf("%3d",t);}

     A. When x <0 the entire cycle is ended

     B. x> = 0 nothing output

     C. printf function is never executed

     D. Maximum nonnegative integer output 100

Second, multiple choice ( 10 questions each question 3 minutes Total 30 minutes)

1, a space following line of code is compliant (AC)

A.*pApple = 'a

B. flag =! BIsEmpty

C. p = &cMem

D. i ++

2, the definition has been set up: float x ;, then the pointer variable p is defined and given initial statement is not correct :( ABC).

A、float *p=1024;                             B、int   *p=(float)x;

C、float p=&x;                                 D、float *p=&x;

3, set the variable x, y have been properly defined and assigned, if the following statement, which can produce the right information at compile time (ABD).

    A、if(x++);

B、if(x>y&&y!=0);

C、if(x>0)x--   else y++;

D、if(y<0){;}   else x++;

4, the order of execution for the following loop is (A)

for (x=0, y=0; (y=123)&&x<4; x++)

A third execution  

B. cycles uncertain    

C. Implementation 4   

D. infinite cycles

5, a code file (ABD) Composition

A. Copyright and Disclaimer at the beginning of the definition file

B. Examples of API function calls

C. Declare global variables

D. Program implemented body (including data and code)

      6, when using the array name as arguments during function calls, the fact is transmitted to the parameter (C)

      A. The value of all elements in the array         

      B. The first element of the array

      C. The first address array              

      D. The number of array elements

      7, the output of the program below is ( )

#include <stdio.h>

int x,y ;

   f( )

   { int y, a = 25 , b=10;

     x =a + b; y = a - b;

     return;}

     main()

    {

      int a =9 , b =5;

      x = a+b; y = a-b;

     f();

     printf("d%,d%\n",x,y); }

 

     A. 14,4   B. 35,15    C.35,4    D. 14,15

      8, the following options are set correct statement (CD)

A.char s[8]; s={"Beijing"}; B.char *s; s={"Beijing"};

             C.char s[8]="BeijingT"; D.char *s; s="Beijing";

9, if defined: int * p [3] ;, the following description is correct (the AD)
A. Defines a one-dimensional array may be directed to a pointer variable P
B. Defines an array of pointers p, the array contains three elements, each group is of type int pointer
C. It defines a named * p integer array, which array element comprising three int type
D. It defines a one-dimensional array may be directed to a pointer variable p, referring to a three-dimensional array of type int elements should have

10, the following procedure is output (C)

int x =1;

 f()

 {static int i = 2; int x = 10;

  x+=++i;

  printf("%d\n",x);}

 main()

 {

  int i;

  for (i=1;i<4;i++) {++x; f();}

  printf("%d\n",x);}

 A. 13,17,22,4 B.13,14,15,15 C.13,14,15,4 D. no answer

Third, determine the questions ( 10 questions each question a sub- total 10 minutes )

44 , a do-while loop statement configuration, when the expression evaluates to zero while the end of the cycle. ()

45, and communities may be mutually structures under cover, it can be used as a parameter of the function. ()

46, in the C language allows structure between two of the same type assigned to one another, but also can assign a set of constant structure. ()

47, in C language can only external or static array initialization. ()

48, in C language, a community member not simultaneously store multiple variables, but a value which is stored, but it is uncertain that value. ()

49% - the role of telling the system 20s is output in the form of a string, representing 20, right alignment. ()

50, an assignment expression is an expression that can appear anywhere allows expression appears, and the assignment can not. ()

51, the role of the continue statement is a skip cycle and this remaining statements in the next cycle forcibly performed. continue statement only in for, while, do-while loop and the like, often used in conjunction with the if condition used to speed the cycle. ()

52, in C language array subscript are rounded, if it will not do fractional treatment. ()

53, if defined: int (* p) [4], then p is a pointer containing a pointer to a four-dimensional array of integer elements. ()

 

Guess you like

Origin www.cnblogs.com/qianrushi1/p/11571380.html