GoConqr has a new look! Let us know what you think.

Quiz

Advanced Digital Security Practice Quiz

Barry O'Sullivan 185 questions 5.0 (1 rating)

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (185)

  1. 1The gets() C function is never safe because
    1. AIt never stops
    2. BIt allocates memory on the heap
    3. CIt uses C strings (array of characters), which is impossible to do correctly
    4. DIt performs no bounds checking
  2. 2There are a number of C functions which are not safe to use, since it is easy to make mistakes that cause software vulnerabilities. Which is these is a safe (preferred) C function, which performs some bounds checking.
    1. Astmcpy
    2. Bstrcpy
    3. Cstrcat
    4. Dgets
  3. 3A buffer overflow in a C program that points the return pointer at somewhere else in the program's logic is known as:
    1. AA race condition
    2. BArbitrary code execution
    3. CArc injection
    4. DA segmentation fault
  4. 4What does the following compiler error indicate?

    cliffe@linux-leedsmet:~> gcc testerr.c -o testerr
    /tmp/ccdrbs9s.o: In function 'main':
    testerr.c:(.text+0x25): warning: the 'gets' function is dangerous and should not be used.
    1. AThat a deprecated function is being used. This indicated that the code potentially includes a buffer overflow
    2. BThat the main function is used, but should not be because it is error prone. Main_init() should be used instead
    3. CThat the code cannot compile because it contains a mistake. The program will not run
    4. DThat that code includes the gets() function, but it is safe to ignore this error message
  5. 5Which of the following is NOT a defence against stack smashing:
    1. ASignature-bases intrusion detection
    2. BAddress space layout randomization (ASLR)
    3. CCanaries
    4. DNon-executable stacks (NX)
  6. 6Compared to Java, C is:
    1. AMore prone to butter overflows, since the langauge is not strongly type-safe
    2. BA higher level langauge with more security features
    3. CSlower, since C is interpreted, but C is therefore more secure
    4. DA type-safe language, therefore more prone to error
  7. 7A buffer overflow in a C program can NOT typically result in:
    1. AA segmentation fault
    2. BA race condition
    3. CArc injection
    4. DArbitrary code execution
  8. 8Which CPU register is used to determine the bottom of the current stack frame?
    1. AEIP
    2. BEBP
    3. CESP
    4. DENP
  9. 9In the GDB debugger, what does the stepi command do?
    1. AIt continues execution for one assembly instruction
    2. BIt stores the EPI register value
    3. CIt prints the current contents of registers to the screen for inspection
    4. DIt runs one line of C code insturction
  10. 10Which CPU register is used to determine the next instruction to process?
    1. AEBP
    2. BESP
    3. CENP
    4. DEIP

Information

Description
Advanced Digital Security Practice Quiz
Language
English
Views
53
Rating
5.0 out of 5 · 1 rating
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?