On the 软考初级 程序员 计算机硬软件基础知识 paper, what is the decimal value of hexadecimal 0x2A?
Data Representation And Computer Organization
Question · Easy
On 软考初级 程序员 计算机硬软件基础知识, convert the unsigned binary integer 10110 to decimal.
In 8-bit two's complement (补码), which bit pattern represents −1?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Convert unsigned octal 157 to decimal, the kind of 数制转换 item 软考初级 程序员 tests.
Question · Medium
What is the 8-bit two's-complement (补码) representation of −5?
An 8-bit register holds two's-complement value 10000001. What signed decimal integer is stored?
Compute the bitwise AND of the 8-bit patterns 10110100 and 11001100. What is the 8-bit result?
In the CPU of a stored-program computer, which unit performs arithmetic (add, subtract) and logic (AND, OR, NOT) on data?
After an ordinary sequential instruction is fetched, which register is typically updated to the address of the following instruction?
The 程序员 考试说明 includes 排列组合. How many ways can a project lead choose 2 testers from 5 distinct testers if order does not matter?
What is the Hamming distance between the 7-bit strings 1100101 and 1010111?
Question · Hard
In the memory hierarchy tested on 软考初级 程序员, what is the primary role of Cache?
A byte-addressable memory is decoded with 20 address lines and no extra chip-select banking. What is the maximum addressable capacity?
Compared with programmed I/O that transfers one word under CPU control, what is the distinctive advantage of DMA for a large disk block?
A 5-stage instruction pipeline has a 2 ns clock. Ignoring stalls and assuming one instruction enters per cycle after fill, how long does it take to complete 200 instructions?
In a typical floating-point format taught for 软考初级 程序员, which statement is correct?
A processor sees Cache hits in 90% of accesses. Cache access is 8 ns and a miss is satisfied from main memory in 80 ns (this 80 ns already includes the Cache miss path). What is the average memory access time?
A CPU runs at 1 GHz with average CPI = 4. What is its instruction throughput in MIPS?
According to the 程序员 考试说明 emphasis on operating-system basics, which set best names the classic OS resource-management functions?
Operating Systems And Programming Languages
In OS teaching used by 软考初级 程序员, how does a process differ from a program stored on disk?
Which language-processing program translates a complete high-level source file into object (or machine) code before the resulting program is run?
Which CPU scheduling policy gives each ready process a fixed time quantum and then moves it to the tail of the ready queue if it has not finished?
Which four conditions are necessary for deadlock among processes competing for resources (Coffman conditions)?
What does virtual memory primarily enable on a paged system?
How does a classic interpreter differ from a compiler in the 程序员 language-processor model?
Which description matches machine language as used in 软考初级 程序员 language basics?
A process is waiting in the ready queue. What must happen for it to enter the running state?
In contiguous memory allocation, external fragmentation is best described as which situation?
Three processes arrive at time 0 with CPU bursts A=6, B=3, C=3. Using non-preemptive SJF (ties broken by name B then C then A), what is the average waiting time?
Pages are 1024 bytes. A logical address has page number 2 and offset 100. The page table maps page 0→4, 1→7, 2→1 (frame numbers). What is the physical address?
In C, after int x = 5; x = x + 1; what is the value of x?
C And Second Language Programming
In C, if int a[4] = {10, 20, 30, 40}; which expression equals 20?
In C, what marks the end of a string stored in a character array?
How many times does the loop body of for (i = 0; i < 3; i++) { } execute in C?
In C, int a = 5, b = 2; int c = a++ + ++b; What is c?
int a[] = {1, 2, 3, 4}; What does *(a + 2) evaluate to in C?
In C, what is sizeof("AB") (the size of the string literal, in bytes, assuming a C implementation where char is 1 byte)?
In C, what is the value of the int expression 7 / 2?
In C, if int x = 8; what is x << 2?
int x = 1, y = 0; switch (x) { case 1: y += 1; case 2: y += 2; default: y += 4; } After this C fragment (no break statements), what is y?
In C++, a class typically groups data members with member functions that operate on them and can hide data behind private. What principle is that?
In Java, after String s = "AB"; s.concat("C"); what is s?
Java source is typically compiled to bytecode that runs on which component?
void inc(int x) { x = x + 1; } int a = 1; inc(a); After this C call, what is a?
After #define SQR(x) x*x the C preprocessor expands SQR(1+2). What is the value of that expanded expression?
int a[] = {2, 4, 6, 8, 10}; int *p = a + 4; What is p[-2] in C?
Visual Basic, listed in the 程序员 考试说明 as one allowed second language, is typically described as which kind of programming model for desktop forms?
Loading more…