Sdp4 Quiz

124 Questions | Attempts: 110
Share

SettingsSettingsSettings
Math Quizzes & Trivia

.


Questions and Answers
  • 1. 

    "PDSA" what does it mean?

    • A.

      Performance, data service and algorithms

    • B.

      Performance, digital service and algorithms

    • C.

      Performance, data structures and algorithms

    • D.

      Performance, digital structures and algorithms

    Correct Answer
    C. Performance, data structures and algorithms
  • 2. 

    What does Unix command - mkdir ?

    • A.

      Displays the path of the current directory

    • B.

      Refers to the current directory

    • C.

      Lists the contents of a directory

    • D.

      Creates directory

    Correct Answer
    D. Creates directory
  • 3. 

    Your task in Ex-22 is to...

    • A.

      Enhance the program to recognize octal numbers

    • B.

      Add recognition of string tokens

    • C.

      Add recognition of Unumber

    • D.

      Enhance the program to recognize C-style identifier tokens

    Correct Answer
    D. Enhance the program to recognize C-style identifier tokens
  • 4. 

    Character "d" represents command:

    • A.

      Nonzero digit

    • B.

      Any digit

    • C.

      Hexadecimal digit

    • D.

      Octal digit

    Correct Answer
    B. Any digit
  • 5. 

    The command language used int the pattern definition strigns explained in detail in the comment header for the method:

    • A.

      Tokenizer()

    • B.

      InitializeTables()

    • C.

      RunFSM()

    • D.

      LoadFSM()

    Correct Answer
    D. LoadFSM()
  • 6. 

    Character "o" represents command:

    • A.

      Hexadecimal digit

    • B.

      Nonzero digit

    • C.

      Any digit

    • D.

      Octal digit

    Correct Answer
    D. Octal digit
  • 7. 

    Ex-22. Java tokenizer program recognizes... (2 right answers)

    • A.

      Number

    • B.

      Unumber

    • C.

      Char tokens

    • D.

      String tokens

    Correct Answer(s)
    A. Number
    D. String tokens
  • 8. 

    Character "c" represents command:

    • A.

      Final state

    • B.

      Pointer

    • C.

      Specific character

    • D.

      Printable ascii

    Correct Answer
    C. Specific character
  • 9. 

    Ex-25 program was enhaced to recognize: (2 right answers)

    • A.

      Operators

    • B.

      Special characters

    • C.

      Comments

    • D.

      Reserved words

    Correct Answer(s)
    A. Operators
    D. Reserved words
  • 10. 

    Character "h" represents command:

    • A.

      Octal digit

    • B.

      Any digit

    • C.

      Final state

    • D.

      Hexadecimal digit

    Correct Answer
    D. Hexadecimal digit
  • 11. 

    Character "f" represents command:

    • A.

      Octal digit

    • B.

      Final state

    • C.

      Hexadecimal digit

    • D.

      Any digit

    Correct Answer
    B. Final state
  • 12. 

    Character "a" represents command:

    • A.

      A specific character

    • B.

      An any character

    • C.

      A printable ascii

    • D.

      An alpha character

    Correct Answer
    D. An alpha character
  • 13. 

    Project 5. You are expected to produce four versions of the solution from this baseline 

    • A.

      ArrayList solution

    • B.

      AVL BST solution

    • C.

      Hash Table solution

    • D.

      DoubleList solution

    • E.

      Array solution

    Correct Answer(s)
    B. AVL BST solution
    C. Hash Table solution
  • 14. 

    When the tree is better?

    • A.

      The number of items is very large

    • B.

      The number of items is small

    Correct Answer
    A. The number of items is very large
  • 15. 

    Ex-43. What is a "white box" testing? (2 right answers)

    • A.

      Means testing to the requirements of a program

    • B.

      Tests how the program works using knowledge of how functionality is implemented in the program

    • C.

      Testing that is geared towards what the program is supposed to do, without knowing how it actually does it

    • D.

      Tests are geared to testing specific code in the program

    Correct Answer(s)
    B. Tests how the program works using knowledge of how functionality is implemented in the program
    D. Tests are geared to testing specific code in the program
  • 16. 

    Ex-40. What is "profiling" as used in software development? Profiling is a form of dynamic program analysis that measures things like: (3 right answers)

    • A.

      Performance information

    • B.

      Memory usage

    • C.

      Instruction usage

    • D.

      Sorting quality

    • E.

      Method calls

    Correct Answer(s)
    B. Memory usage
    C. Instruction usage
    E. Method calls
  • 17. 

    Ex-31. AVL tree is:

    • A.

      Balanced binary tree

    • B.

      Native binary tree

    • C.

      Binary search tree

    • D.

      Bill binary tree

    Correct Answer
    A. Balanced binary tree
  • 18. 

    How to try to delete some files in Unix terminal?

    • A.

      With command - del

    • B.

      With command - mv

    • C.

      With command - make clean

    • D.

      With command - cp

    Correct Answer
    C. With command - make clean
  • 19. 

    The name of compiled file with option "-o ex02.out" is

    • A.

      A.out

    • B.

      Ex02

    • C.

      Ex02.out

    • D.

      Ex02.c

    Correct Answer
    B. Ex02
  • 20. 

    What does "makefile" include? (2 right answers)

    • A.

      %50% dependencies

    • B.

      %50% targets

    • C.

      %50% text of warning messages

    • D.

      %50% descriptions

    Correct Answer(s)
    A. %50% dependencies
    B. %50% targets
  • 21. 

    What should we do to delete all files in local directory (i.e. executable and intermediate build files)?

    • A.

      Make rm

    • B.

      Rm *

    • C.

      Rm clean

    • D.

      Make del

    Correct Answer
    B. Rm *
  • 22. 

    What Unix command should we use in order to refresh modification time of file?

    • A.

      Modify

    • B.

      Make

    • C.

      Touch

    • D.

      Make update

    Correct Answer
    C. Touch
  • 23. 

    What does in Unix command "./" the dot "." specify?

    • A.

      Local file

    • B.

      Entity of excutable file

    • C.

      Current directory

    • D.

      Execute only compiled files

    Correct Answer
    C. Current directory
  • 24. 

    In Unix path command "~/" tilde "~" specify?

    • A.

      Root directory

    • B.

      Home directory

    • C.

      Current directory

    • D.

      Containing directory

    Correct Answer
    B. Home directory
  • 25. 

    What does Unix command - "mkdir ../dom"

    • A.

      Creates directory "dom" in containing directory

    • B.

      Creates directory "dom" in home directory

    • C.

      Creates directory "dom" in local directory

    • D.

      Creates directory "dom" in current directory

    Correct Answer
    A. Creates directory "dom" in containing directory
  • 26. 

    The name of compiled file with option "-o task_01" is

    • A.

      A.out

    • B.

      Task_01

    • C.

      Task_01.out

    • D.

      Task_01.c

    Correct Answer
    B. Task_01
  • 27. 

    With what option we can display warnings while compile with command "gcc"?

    • A.

      -o

    • B.

      -Wall

    • C.

      -I

    • D.

      -print-sysroot

    Correct Answer
    B. -Wall
  • 28. 

    What does file extension have source code file in C?

    • A.

      .o

    • B.

      .h

    • C.

      .c

    • D.

      .f

    Correct Answer
    C. .c
  • 29. 

    How to try to delete something in Unix terminal?

    • A.

      With command - del

    • B.

      With command - mv

    • C.

      With command - mkdir

    • D.

      With command - rmdir

    Correct Answer
    D. With command - rmdir
  • 30. 

    What does Unix command - '../make_file' ?

    • A.

      Compile file with name 'make_file'

    • B.

      Try to compile and show warnings

    • C.

      Refers to an entity called 'make_file' in the current directory

    • D.

      Runs excutable file 'make_file' in the containing directory

    Correct Answer
    D. Runs excutable file 'make_file' in the containing directory
  • 31. 

    Exercise-03. With Unix command "make" we can use targets at command promt, please select them: (2 right answers)

    • A.

      %50% clean

    • B.

      %50% all

    • C.

      %50% touch

    • D.

      %50% makefile

    Correct Answer(s)
    A. %50% clean
    B. %50% all
  • 32. 

    What does in Unix command "../" dots ".." specify?

    • A.

      Root directory

    • B.

      Home directory

    • C.

      Current directory

    • D.

      Containing directory

    Correct Answer
    D. Containing directory
  • 33. 

    "UPM" what does it mean in Project-01?

    • A.

      Universal Precision Math

    • B.

      Unlimited Precision Model

    • C.

      Universal Precision Model

    • D.

      Universal Processor Math

    • E.

      Unlimited Precision Math

    Correct Answer
    E. Unlimited Precision Math
  • 34. 

    Exercise-05. How to right look in third section of man pages about function "clock"?

    • A.

      Man clock 3

    • B.

      Man -3 clock

    • C.

      Man ./3 clock

    • D.

      Man 3 clock

    Correct Answer
    D. Man 3 clock
  • 35. 

    Exercise-05. What header file (C library) we should insert in code for using "clock" function?

    • A.

      Time.h

    • B.

      NanoTime.h

    • C.

      Clocks.h

    • D.

      Chock.h

    Correct Answer
    A. Time.h
  • 36. 

    What was search algorithm used in exercise-8?

    • A.

      Recursive search

    • B.

      Binary search

    • C.

      Insertion

    • D.

      Selection

    Correct Answer
    A. Recursive search
  • 37. 

    What was sort algorithm used in exercise-7?

    • A.

      Bubble

    • B.

      Insertion

    • C.

      Selection

    • D.

      Merge

    Correct Answer
    B. Insertion
  • 38. 

    For what did we use conditional compilation in exercise-8?

    • A.

      For calling library

    • B.

      For debugging information

    • C.

      For sorting array of doubles

    • D.

      For extra output

    Correct Answer
    D. For extra output
  • 39. 

    What have we learned in exercise-9 for minimizing errors in code?

    • A.

      Using bubble sort

    • B.

      Using constants

    • C.

      Using libraries

    • D.

      Using pointers

    Correct Answer
    B. Using constants
  • 40. 

    What is period range of parameter DEBUG in exercise-9?

    • A.

      0 - 2

    • B.

      0 - 3

    • C.

      0 - 4

    • D.

      0 - 5

    Correct Answer
    B. 0 - 3
  • 41. 

    Ex-09. Step-12: In which function is the problem with ASCENDING and DESCENDING ?

    • A.

      Bubble_sort

    • B.

      Binary_search

    • C.

      Main

    • D.

      Insertion_sort

    Correct Answer
    A. Bubble_sort
  • 42. 

    Ex-08. For #ifdef/#endif pair is right:

    • A.

      Checks to see if a constant is not defined

    • B.

      Checks to see if a constant is defined

    • C.

      Checks to see if a CFLAG is not defined

    • D.

      Checks to see if a CFLAG is defined

    Correct Answer
    B. Checks to see if a constant is defined
  • 43. 

    Ex-08. With what option we can define constant as a parameter to the compiler (for conditional compilation)?

    • A.

      Gcc -Wall -I. -DDEBUG

    • B.

      Gcc -Wall -I. -DEBUG

    • C.

      Gcc -Wall -I. -DCFLAGS

    • D.

      Gcc -Wall -I. -CFLAGS

    Correct Answer
    A. Gcc -Wall -I. -DDEBUG
  • 44. 

    Function malloc is contained in library:

    • A.

      Stdlib.h

    • B.

      Time.h

    • C.

      Stdio.h

    • D.

      Stdbool.h

    Correct Answer
    A. Stdlib.h
  • 45. 

    Ex-10. What does UNumber structure include? (3 right answers)

    • A.

      %33.33333% sign

    • B.

      %33.33333% decimal power

    • C.

      %33.33333% value

    • D.

      %33.33333% range

    • E.

      %33.33333% decimal point

    • F.

      %33.33333% count

    Correct Answer(s)
    A. %33.33333% sign
    B. %33.33333% decimal power
    C. %33.33333% value
  • 46. 

    Ex-13. Is it right for "Memory tracing"? Memory tracking simply involves counting the number of times malloc and free are called.

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
  • 47. 

    Ex-13. With what format in function printf can program display the values of pointers?

    • A.

      %f

    • B.

      %v

    • C.

      %s

    • D.

      %p

    Correct Answer
    D. %p
  • 48. 

    What is result of "5" + "2" in ASCII codes?

    • A.

      7

    • B.

      103

    • C.

      52

    • D.

      155

    Correct Answer
    B. 103
  • 49. 

    What is false for Double Linked List?

    • A.

      Has head and tail nodes

    • B.

      Has pointer for previous node

    • C.

      We can move node by node only to one direction

    • D.

      We can insert node

    Correct Answer
    C. We can move node by node only to one direction
  • 50. 

    With what function we allocate memory?

    • A.

      Givmem

    • B.

      Free

    • C.

      Malloc

    • D.

      Alloc

    Correct Answer
    C. Malloc

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • May 24, 2018
    Quiz Edited by
    ProProfs Editorial Team
  • May 24, 2018
    Quiz Created by
    Daniyar
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.