System programming quiz

avovana

New Member
Joined
Nov 6, 2023
Messages
1
Reaction score
0
Credits
12
Good morning!

Once received this quiz during interview. Have my own answers. Interesting to know more opinions about questions) Can you help me with correct answers here? There is only correct answer to the question.
1. What kind of memory are created when make new thread?
A. heap
B. stack
C. data segment
D. code segment

2. Can be signals block SIGHUP, SIGKILL, SIGTERM
A. yes, all of them
B. only SIGHUP
C. only SIGKILL
D. only SIGTERM
E. only SIGHUP and SIGKILL
F. only SIGHUP and SIGTERM
G. only SIGKILL and SIGTERM

3. Program don't have SIGUSR1 handler. What will happen if this signal arrives?
A. signal will be ignore
B. OS will call default handler
C. program will stop, exit
D. program state will be "waiting"
 


Code:
1. What kind of memory are created when make new thread?
A. heap
B. stack
C. data segment
D. code segment

Definitely we're beyond "medium memory model" and stuff like that programming for 16-bit computers. Although even in 64-bit there is separation of code and data somehow, but not as restrictive as it was with 16-bit. It's more like it was in 8-bit, the only difference is that 8-bit had to hold everything in 64KB. On MS-DOS and predecessors COM-suffix files for 8-bit instead of EXE files which were necessary to move up to Windows. I don't know if GNU/Linux had to make a similar progression.
 

Staff online

Members online


Top