1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Đề trắc nghiệm II Kỹ thuật vi xử lý - DTVT - BKDN

5 11 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Đề trắc nghiệm II Kỹ thuật vi xử lý khoa Điện tử viễn thông trường đại học bách khoa Đà Nẵng

CS/ECEn 124 Exam II Pre-test I reviewed Exam I Pre-test! No and I never want to see that exam again a No, I did not take the time to look again at the past exam b No, that would be a logical thing to c Yes and I'm ready to give the correct answer to any repeated question d All MSP430 assembly instructions are emulated a are core instructions b are neither emulated nor core c directly assemble to exactly one machine instruction d All MSP430 assembly instructions affect (change) condition codes a can execute in one cycle b have an emulated form c store a result d use the ALU e None of the above is true f 15 The JMP and BR instructions can both reach any memory location from any other memory location FALSE a TRUE b 17 If the upper 10 bits of a 16-bit address space are used to select one memory mapped I/O address space, how many memory locations could be used for I/O? 64 a 1024 b c 64567 - 1024 = 63543 d 21 When are interrupts sampled by the CPU? (Before which phase?) Decode a Evaluate Operands b Execute c Fetch d Store e 26 What the upper memory locations of the MSP430 contain? All OS functions a Interrupt vectors b Memory mapped I/O locations c Privileged instructions d Special Function Registers e 31 How does a RET instruction compare with a RETI instruction? A RET instruction saves the condition codes a Both instructions store the return address on the stack b Both can be used to return from a subroutine c Both are emulated instructions d They are the same e 36 What is the significance of the Status Register (SR)? The SR is the same as R2 a The condition codes are found in the SR b The processor power level is set using the SR c When used with some addressing modes, a constant is return d All of the above e 41 Which data structure best describes a stack? FIFO a GIGO b LIFO c Random Access d 45 Which data structure best is used for testing software? FIFO a GIGO b LIFO c Random Access d 49 What are the differences between high-level and low-level languages? High-level languages are not used by "real programmers" a Low-level programming offers better abstraction b Low-level programs are always more efficient than High-level programs c High-level programs generally offer greater productivity d 53 What are the differences between a interpreter and a compiler? An interpreter's output executes faster than the compilers a An interpreter's output is larger than the compilers b An interpreter's output is specific to an ISA c An interpreter's output requires an interpreter to execute d 57 How the pre-processor and linker compare? A linker performs the last pass of the C compiler a A pre-processor performs the 1st pass of the C compiler b Both the pre-processor and a linker accept C code c Both the pre-processor and a linker are part of C program development d 61 What is the difference between syntax and semantics? Compilers detect semantic errors Programmers must work out syntax errors a Interpretors have semantic but not syntax errors b Semantic problems are easier to find than syntax errors c Syntax gets us to hit the target Semantics gets us to the right target d 65 What does a C program look like and how does it function? A C program consists of functions and global variables a Every C program must have a main function b A C function could be reduced to a single line c A C program returns an int value d All of the above e 70 C names for variables, functions and constants are called identifiers What is NOT true of C identifiers? C places no limits to the length of an identifier a C reserved words may be used for identifiers b Identifiers are case sensitive c Only alphabetic characters, numeric digits, and the underscore character (_) are legal in an identifier d The first character of an identifier must be alphabetic or an underscore e 75 What is the difference between local and global variables? Global variables are defined at the beginning of a function a Global variables are static local variables b Global variables begin with 'gv_' c Global variables cannot be defined as external (referenced from another file) d Global variables follow the same scoping rules as local variables e 80 What is the size of an int variable? A short int may be longer than a long int a An int is a double char b An int is 32 bits in length c int will normally reflect the most "natural" size for a particular machine d 84 What is the difference between logical operators and bit-wise operators? Bit-wise operators have lower precedence than logical operators a Bit-wise operators require integral operands b Bit-wise operators return true (1) or false (0) c Logical operators and bit-wise operators may be used on double data types d 88 Which is the tightest binding operator? , a ^ b ~ c | d -> e > b ++ c + d || e && f * g 127 Parentheses used in C expressions can be used to override operator precedence True a False b 129 The value of x and the C expression ((x >> 2)

Ngày đăng: 06/09/2021, 17:29

Xem thêm:

TỪ KHÓA LIÊN QUAN

Mục lục

    CS/ECEn 124 Exam II Pre-test

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

w