SDP4 by Zharas

Descrição

sdp4 Quiz sobre SDP4 by Zharas, criado por Жарас Мергазы em 25-05-2017.
Жарас Мергазы
Quiz por Жарас Мергазы, atualizado more than 1 year ago
Жарас Мергазы
Criado por Жарас Мергазы mais de 7 anos atrás
1069
13

Resumo de Recurso

Questão 1

Questão
1. With what option we can display warnings while compile with command "gcc"?
Responda
  • -o
  • -Wall
  • -I
  • -print-sysroot

Questão 2

Questão
What number of classes (*.java) has project-01?
Responda
  • 3
  • 5
  • 2
  • 4

Questão 3

Questão
What number of source code files has ex-05 in project-01?
Responda
  • 3
  • 2
  • 4
  • 5

Questão 4

Questão
What number wasn’t tested in TestMainline class in prject01?
Responda
  • 4
  • 2
  • 81
  • 64
  • 91

Questão 5

Questão
In exercises 11-13 nodes are stored?
Responda
  • Position and salary
  • Name and study year
  • Position and birth year
  • Name and age

Questão 6

Questão
Ex-16. what is size of matrix in given large.txt?
Responda
  • 60
  • 50
  • 80
  • 30

Questão 7

Questão
What is range of verify numbers for square root in proj2?
Responda
  • 2 to 1000
  • 2 to 100
  • 2 to 100000
  • 2 to 10000

Questão 8

Questão
What are files in C portion of proj2?
Responda
  • Sqr.c sqr.h unumber.c unumber.h
  • Makefile, sqr.c, unumber.c, unumber.h
  • Makefile, sqr.c, sqr.h, unumber.c
  • Makefile , sqr.c , unumber.c, squareRootTwo.text

Questão 9

Questão
Ex-10 what does UNumber structure include ?
Responda
  • Value
  • Range
  • Decimal point
  • Decimal power
  • Count
  • Sign

Questão 10

Questão
What number of errors has code in Exercise-03?
Responda
  • 3
  • 1
  • 4
  • 2

Questão 11

Questão
2. "pdsa" what does it mean? (Please select the best answer)
Responda
  • name of created folder in excercise 01
  • abbreviation of SDP-4 course name
  • performance, data storage and algorithms
  • special folder where all our deliverables are stored

Questão 12

Questão
What does Unix command - ls?
Responda
  • refers to your home directory
  • lists the contents of a directory
  • refers to the current directory
  • displays the path of the current directory

Questão 13

Questão
. On a 32bit system CLOCKS_PER_SEC equals
Responda
  • 100000
  • 1000000
  • 1000000000000
  • 1000000000
  • 10000000

Questão 14

Questão
What should we do to remove executable and the intermediate build files?
Responda
  • rm *
  • make clean
  • make del
  • . make rm

Questão 15

Questão
What main benefit gives us "makefile" in doing exercises? (Please select the best answer)
Responda
  • . shows us more detailed information about errors
  • saves our time while we debugging program code
  • quick compile in short command - 'make'
  • enriches our compile options

Questão 16

Questão
. Project 01 ends on what number of exercises?
Responda
  • 8
  • 7
  • 5
  • 6

Questão 17

Questão
What does Unix command - './file'?
Responda
  • . refers to a directory called 'file'
  • execute first file in current directory
  • compile called 'file'
  • refers to an entity called 'file' in the current directory

Questão 18

Questão
The default name of the compiled program is
Responda
  • d.out
  • a.out
  • c.out
  • the same name as source file, but with .out

Questão 19

Questão
2. Ex-09. What was the number of values in data.txt?
Responda
  • 300
  • 25
  • 200
  • 10
  • 500

Questão 20

Questão
3. What number of array's size is large enough in ex-15?
Responda
  • ~ 1 000
  • ~ 10
  • ~ 1 000 000
  • ~ 100

Questão 21

Questão
4. Type macros bool is contained in library:
Responda
  • ~ stdlib.h
  • ~ time.h
  • ~ stdio.h
  • ~ stdbool.h

Questão 22

Questão
5. What number of Exercises in Project-01?
Responda
  • 4
  • 3
  • 2
  • 5

Questão 23

Questão
To get result time in miliseconds (in Java program) what should we do in Ex05 with calculated time? To get result time in miliseconds (in Java program) what should we do in Ex05?
Responda
  • ~ / 100
  • ~* 10 000
  • ~ * 1 000
  • ~ * 100 000
  • ~ / 1 000 000

Questão 24

Questão
7. In exercise-04 we used 1E+10 to...
Responda
  • to put limit of numbers after point
  • establish the limit for ending the loop
  • setup the limit number of loop iterations
  • establish the maximum of delta between guess and new_guess numbers

Questão 25

Questão
8. In exercise-04 for loop we used 2nd limit for ending, and limit was what number of cycles?
Responda
  • 1+E10
  • 10
  • 20
  • 100
  • 200
  • 1000
  • 1000000

Questão 26

Questão
name: "PDSA" what does it mean? "PDSA" what does it mean? (Please select the best answer){
Responda
  • performance, data service and algorithms
  • performance, digital service and algorithms
  • performance, data structures and algorithms
  • performance, digital structures and algorithms

Questão 27

Questão
name: What does Unix command - mkdir ? What does Unix command - mkdir ?{
Responda
  • displays the path of the current directory
  • refers to the current directory
  • lists the contents of a directory
  • creates directory

Questão 28

Questão
How to delete files in Unix terminal? How to try to delete some files in Unix terminal?{
Responda
  • with command - del
  • with command - mv
  • with command - make clean
  • with command - cp

Questão 29

Questão
The default name with option "-o ex02" of the compiled program is: The name of compiled file with option "-o ex02.out" is\:
Responda
  • a.out
  • ex02
  • ex02.out
  • ex02.c

Questão 30

Questão
What does "makefile" include? (2 right answers){
Responda
  • %50% dependencies
  • %50% targets
  • %50% text of warning messages
  • %50% descriptions

Questão 31

Questão
What should we do to remove executable, intermediate build files and all others? What should we do to delete all files in local directory (i.e. executable and intermediate build files)?
Responda
  • make rm
  • rm *
  • rm clean
  • make del

Questão 32

Questão
What Unix command should we use in order to refresh modification time of file? Exercise-03. What Unix command should we use in order to refresh modification time of file?
Responda
  • modify
  • make
  • touch
  • make update

Questão 33

Questão
What does in Unix command "./" the dot "." specify?
Responda
  • local file
  • entity of excutable file
  • current directory
  • excute only compiled files

Questão 34

Questão
In Unix path command "~/" tilde "~" specify?
Responda
  • root directory
  • home directory
  • current directory
  • containing directory

Questão 35

Questão
What does Unix command - "mkdir ../dom" ?
Responda
  • creates directory "dom" in containing directory
  • creates directory "dom" in home directory
  • creates directory "dom" in local directory
  • creates directory "dom" in current directory

Questão 36

Questão
The default name with option "-o task_01" of the compiled program is: The name of compiled file with option "-o task_01" is
Responda
  • a.out
  • task_01
  • task_01.out
  • task_01.c

Questão 37

Questão
With what option we can display warnings while compile with command "gcc"?{
Responda
  • -o
  • -Wall
  • -I
  • -print-sysroot

Questão 38

Questão
What does file extension have source code file in C
Responda
  • *.o
  • *.h
  • *.c
  • *.f

Questão 39

Questão
How to try to delete something in Unix terminal?
Responda
  • with command - del
  • with command - mv
  • with command - mkdir
  • with command - rmdir

Questão 40

Questão
What does Unix command - '../make_file' ?
Responda
  • compile file with name 'make_file'
  • try to compile and show warnings
  • refers to an entity called 'make_file' in the current directory
  • runs excutable file 'make_file' in the containing directory

Questão 41

Questão
How we calculate new_guess number in our Newton's method?
Responda
  • new_guess \~ value / 2;
  • new_guess \~ (old_guess + value) / 2.0;
  • new_guess \~ (old_guess + value / old_guess) / 2.0;
  • new_guess \~ (old_guess + value / 2) / 2;

Questão 42

Questão
Exercise-03. With Unix command "make" we can use targets at command promt, please select them: (2 right answers)
Responda
  • ~%50% clean
  • ~%50% all
  • ~%50% touch
  • ~%50% makefile

Questão 43

Questão
What does in Unix command "../" dots ".." specify?
Responda
  • root directory
  • home directory
  • current directory
  • containing directory

Questão 44

Questão
"UPM" what does it mean in Project-01?
Responda
  • Universal Precision Math
  • Unlimited Precision Model
  • Universal Precision Model
  • Universal Processor Math
  • Unlimited Precision Math

Questão 45

Questão
Exercise-05. How to right look in third section of man pages?
Responda
  • man clock 3
  • man -3 clock
  • man ./3 clock
  • man 3 clock

Questão 46

Questão
What header file (C library) we should insert in code for using "clock" function?
Responda
  • time.h
  • nanoTime.h
  • clocks.h
  • clock.h

Questão 47

Questão
What was search algorithm used in exercise-8?
Responda
  • recursive search
  • binary search
  • insertion
  • selection

Questão 48

Questão
We have C library calc.h and calc.o, what we have to do next for using this library?
Responda
  • while compile just add in console command calc.h at the end
  • modify make file by adding new object in it
  • write in source code define calc.h
  • write in source code include calc.o

Questão 49

Questão
What was sort algorithm used in exercise-7?
Responda
  • bubble
  • insertion
  • selection
  • merge

Questão 50

Questão
For what did we use conditional compilation in exercise-8?
Responda
  • for calling library
  • for debugging information
  • for sorting array of doubles
  • for extra output

Questão 51

Questão
What have we learned in exercise-9 for minimizing errors in code?
Responda
  • using bubble sort
  • using constants
  • using libraries
  • using pointers

Questão 52

Questão
What is period of DEBUG in exercise-9?
Responda
  • 0 - 2
  • 0 - 3
  • 0 - 4
  • 0 - 5

Questão 53

Questão
Ex-09. Step-12: In which function is the problem? Ex-09. Step-12: In which function is the problem with ASCENDING and DESCENDING ?
Responda
  • bubble_sort
  • binary_search
  • main
  • insertion_sort

Questão 54

Questão
Ex-08. For #ifdef/#endif pair is right: (Please select the best answer)
Responda
  • checks to see if a constant is not defined
  • checks to see if a constant is defined
  • checks to see if a CFLAG is not defined
  • checks to see if a CFLAG is defined

Questão 55

Questão
Ex-08. With what option we can define constant as a parameter to the compiler (for conditional compilation)?
Responda
  • gcc -Wall -I. -DDEBUG
  • gcc -Wall -I. -DEBUG
  • gcc -Wall -I. -DCFLAGS
  • gcc -Wall -I. -CFLAGS

Questão 56

Questão
Function malloc is contained in library:
Responda
  • stdlib.h
  • time.h
  • stdio.h
  • stdbool.h

Questão 57

Questão
Ex-10. What does UNumber structure include? (3 right answers){
Responda
  • sign
  • decimal power
  • value
  • range
  • decimal point
  • count

Questão 58

Questão
Ex-13. Is it right for "Memory tracing"? Memory tracking simply involves counting the number of times malloc and free are called
Responda
  • True
  • False

Questão 59

Questão
Ex-13. With what format in function printf can program display the values of pointers?
Responda
  • %f
  • %v
  • %s
  • %p

Questão 60

Questão
What is result of "5" + "2" in ASCII codes?
Responda
  • 7
  • 103
  • 52
  • 155

Questão 61

Questão
What is false for Single Linked List?
Responda
  • has head and tail nodes
  • has pointer for previous node
  • we can move node by node only to one direction
  • we can insert node

Questão 62

Questão
What is false for Double Linked List?
Responda
  • has head and tail nodes
  • has pointer for previous node
  • we can move node by node only to one direction
  • we can insert node

Questão 63

Questão
With what function we allocate memory?
Responda
  • givmem
  • free
  • malloc
  • alloc

Questão 64

Questão
Exercise-14. You can build Java programs at the command line using command:
Responda
  • make
  • gcc -Wall
  • javac
  • java

Questão 65

Questão
What is result of "8" + "7" in ASCII codes?
Responda
  • 15
  • 111
  • 87
  • 159

Questão 66

Questão
Exercise-14. You can run Java programs at the command line using command:
Responda
  • .\
  • gcc -Wall
  • javac
  • java

Questão 67

Questão
With what function we release memory?
Responda
  • calloc
  • free
  • malloc
  • alloc

Questão 68

Questão
What is result of "8" + "3" in ASCII codes?
Responda
  • 11
  • 107
  • 83
  • 159

Questão 69

Questão
What is true for Single Linked List?
Responda
  • has head and tail nodes
  • easy display list in any direction
  • node has two pointers
  • we can move node by node only to one direction
  • we can remove node

Questão 70

Questão
What is true for Double Linked List?
Responda
  • has head node and not tail node
  • has pointer for previous node
  • we can move node by node to any direction
  • every node has pointer to next node which is always tail
  • we can remove node

Questão 71

Questão
Ex-16. Conway Game of Life. Will this colony "111" of three live cells disappear on next iteration?
Responda
  • True
  • False

Questão 72

Questão
Pointer arithmetric formula for 2-dim arrays in C?
Responda
  • p + (num_cols * row) + col
  • p * (num_cols * row) + col
  • p + (num_cols + row) * col

Questão 73

Questão
CONWAY GAME OF LIFE. Is this rule true? CONWAY GAME OF LIFE. Is this rule true? Any live cell with fewer than two live neighbors dies
Responda
  • True
  • False

Questão 74

Questão
CONWAY GAME OF LIFE. Is this rule true? Any live cell with two or three live neighbors dies on to the next generation
Responda
  • True
  • False

Questão 75

Questão
Ex-16. Conway Game of Life. What colony of cells (size: 3x3 written in one line like: 111 101 111) will die on next iteration?
Responda
  • 111 111 000
  • 110 110 000
  • 000 101 101
  • 001 100 100

Questão 76

Questão
Ex-16. Conway Game of Life. What colony of cells (size: 3x3 written in one line like: 111 101 111) will die on next iteration?
Responda
  • 001 110 000
  • 110 110 000
  • 100 000 001
  • 001 100 100

Questão 77

Questão
CONWAY GAME OF LIFE. Is this rule true? Any live cell with more than three live neighbors dies, as if by overcrowding
Responda
  • True
  • False

Questão 78

Questão
Ex-16. Conway Game of Life. What colony of cells will survive on next iteration?
Responda
  • 111
  • 10101
  • 11011
  • 101

Questão 79

Questão
Ex-16. Conway Game of Life. What colony of cells (size: 3x3 written in one line like: 111 101 111) will die on next iteration?
Responda
  • 000 111 000
  • 110 110 000
  • 110 100 000
  • 101 101 000

Questão 80

Questão
What is purpose of argument -s in Project-02?
Responda
  • specifies the number of value which we should input to sqr function
  • specifies the number of significant digits
  • specifies the name of the comparison input file
  • specifies the name of the input file with test values

Questão 81

Questão
What does Lex do?
Responda
  • recognizes whether an input string is an instance of a specified pattern
  • generates code for a lexical analyzer based on definitions in an input file
  • recognizes tokens in a stream of characters
  • generates definitions for a lexical analyzer based on patterns

Questão 82

Questão
What does the following regular expression match?[-+]?[[\:digit\:]]+/[[\:digit\:]]+</p>
Responda
  • <p>+4/5</p>
  • <p>+2/3+</p>
  • <p>-+2/6</p>
  • <p>-4/5+</p>

Questão 83

Questão
What does the following regular expression match?[-+]?[[\:digit\:]]+</p>
Responda
  • ~<p>75</p>
  • ~<p>+23a</p>
  • ~<p>-26g</p>
  • ~<p>?32f</p>

Questão 84

Questão
What is FSM?
Responda
  • Finite System Machine
  • Finite Service Machine
  • Final System Model
  • Finite State Machine

Questão 85

Questão
Which string is right for FSM with model\: ( 0 ) \~ a-z \~ ( 1 ) \~ 0-9 \~ ( 2 ) \~ @ \~ ( 3 ) \~ a-z \~ (( 4 ))
Responda
  • 012@34
  • tt@r
  • 0a12@a
  • f0@x

Questão 86

Questão
The Lex program has existed since the...
Responda
  • 1960
  • 1980
  • 1970
  • 1990

Questão 87

Questão
Select a regular expression that matches : 10k or 10K
Responda
  • ~[[:digit:]]+[kK]
  • ~[[:digit:]]+[kK]?
  • ~[[:digit:]][kK]*
  • ~[[:digit:]][k]

Questão 88

Questão
Select a regular expression that matches : Strings that contain an optional minus or plus followed by zero or more alphabetic characters
Responda
  • ~[-+][[:alnum:]]*
  • ~[-+][[:alpha:]]*
  • ~[-+][[:alnum:]]+
  • ~[-+]?[[:alpha:]]+
  • ~[-+]?[[:alpha:]]*

Questão 89

Questão
What do the following regular expressions match [-+][[:digit:]]*?
Responda
  • Strings that contain a required minus or a plus followed by zero or more digits
  • Strings that contain a required minus or a plus followed by one or more digits
  • Strings that contain an optional minus or plus followed by one or more digits
  • Strings that contain an optional minus or plus followed by zero or more digits.

Questão 90

Questão
What FSM recognizes this string token? "2*2~4"
Responda
  • ( 0 ) --- 0-9 --- ( 1 ) --- * --- ( 2 ) --- 0-9 --- ( 3 ) --- \~ --- ( 4 ) --- 0-9 --- (( 5 ))
  • ( 0 ) --- 0-9 --- ( 1 ) --- a-z --- ( 2 ) --- 0-9 --- ( 3 ) --- a-z --- ( 4 ) --- 0-9 --- (( 5 ))
  • ( 0 ) --- 0-9 --- ( 1 ) --- a-z --- ( 2 ) --- 0-9 --- ( 3 ) --- \~ --- ( 4 ) --- 0-9 --- (( 5 ))
  • ( 0 ) --- 0-9 --- ( 1 ) --- * --- ( 2 ) --- 0-9 --- ( 3 ) --- a-z --- ( 4 ) --- 0-9 --- (( 5 ))

Questão 91

Questão
Select a regular expression that matches : Strings that contain a required minus or a plus followed by zero or more alpha-numeric characters
Responda
  • [-+][[:alnum:]]*
  • [-+]?[[:alpha:]]*
  • [-+][[:alnum:]]+
  • [-+]?[[:digit:]]+
  • [-+][[:alpha:]]+

Questão 92

Questão
What does the following regular expression match?[-+]?[[\:digit\:]]+</p>
Responda
  • <p>23</p>
  • <p>+45</p>
  • <p>26g+</p>
  • <p>?32f</p>

Questão 93

Questão
What does the following regular expression match?[-+]?[[\:alnum\:]]+/[^$]+</p>
Responda
  • <p>gf26/dsfeg</p>
  • <p>gf23/dsfeg$</p>
  • <p>-123g/ffef$</p>
  • <p>?123f/ffef</p>

Questão 94

Questão
9. What does the following regular expression match? [-+]?[[\:alnum\:]]+/[^$]+
Responda
  • <p>abs123/ffef</p>
  • <p>abs123/ffef$</p>
  • <p>-26g/dsfeg$</p>
  • <p>?32f/wrw$</p>

Questão 95

Questão
10. What does this Unix commad\: lex baseline.lex?
Responda
  • generate a definition file
  • run the resulting program
  • generate a source code file called lex.yy.c
  • compile the generated source file, resulting executable is a.out

Questão 96

Questão
What do the following regular expressions match "iitu[!]?" ?
Responda
  • Lines that contain the letter sequence i, i, t, u and probably !.
  • Lines that contain the letter sequence i, t, u, ! and ?.
  • Lines that contain the letter sequence ii, t, u, and !.
  • Lines that contain the letter sequence ii, t, u and probably !.

Questão 97

Questão
What FSM recognizes this string token? "d7@r"
Responda
  • ( 0 ) \~ a-z \~ ( 1 ) \~ a-z \~ ( 2 ) \~ @ \~ ( 3 ) \~ a-z \~ (( 4 ))
  • ( 0 ) \~ a-z \~ ( 1 ) \~ 0-9 \~ ( 2 ) \~ @ \~ ( 3 ) \~ a-z \~ ( 4 ) \~ a-z \~ (( 5 ))
  • ( 0 ) \~ a-z \~ ( 1 ) \~ 0-9 \~ ( 2 ) \~ 0-9 \~ ( 3 ) \~ @ \~ ( 4 ) \~ a-z \~ (( 5 ))
  • ( 0 ) \~ a-z \~ ( 1 ) \~ 0-9 \~ ( 2 ) \~ @ \~ ( 3 ) \~ a-z \~ (( 4 ))

Questão 98

Questão
For calling FSM program we need:
Responda
  • token file
  • definition file
  • input file
  • note file

Questão 99

Questão
In UNIX console "ls *.[ch]" command what will do?
Responda
  • list all files in the current directory that end with .ch
  • list all files in the current directory that end with .[ch]
  • list all files in the current directory that end with .c or .h
  • list all files in the current directory that end with .ch, .c or .h

Questão 100

Questão
What FSM recognizes this string token? "apt-7,bld#2"
Responda
  • ( 0 ) \~ a-z \~ ( 1 ) \~ a-z \~ ( 2 ) \~ @ \~ ( 3 ) \~ a-z \~ (( 4 ))
  • ( 0 ) \~ a-z \~ ( 1 ) \~ 0-9 \~ ( 2 ) \~ @ \~ ( 3 ) \~ a-z \~ (( 4 ))
  • ( 0 ) \~ apt \~ ( 1 ) \~ - \~ ( 2 ) \~ 0-9 \~ ( 3 ) \~ ,bld\# \~ ( 4 ) \~ 0-9 \~ (( 5 ))
  • ( 0 ) \~ a-z \~ ( 1 ) \~ - \~ ( 2 ) \~ 0-9 \~ ( 3 ) \~ , \~ ( 4 ) \~ a-z \~ ( 5 ) \~ \# \~ ( 6 ) \~ 0-9 \~ (( 7 ))
  • ( 0 ) \~ apt- \~ ( 1 ) \~ 0-9 \~ ( 2 ) \~ , \~ ( 3 ) \~ bld \~ ( 4 ) \~ \#0-9 \~ (( 5 ))

Questão 101

Questão
For calling FSM program we need
Responda
  • token file
  • file with definitions
  • output file
  • note file

Questão 102

Questão
Ex-16. Conway Game of Life. What colony of cells will survive on next iteration? Conway Game of Life. What colony of cells will die on next iteration?{
Responda
  • 11100
  • 10101
  • 11011
  • 00111

Questão 103

Questão
Ex1-4. The name of compiled file with option "-o wall2" is
Responda
  • a.out
  • wall2
  • wall2.out
  • wall2.o

Questão 104

Questão
Ex-22. Java tokenizer program recognizes... (2 right answers)
Responda
  • Unumber
  • number
  • string tokens
  • char tokens

Questão 105

Questão
Ex-23 program was enhaced to skip: (2 right answers)
Responda
  • octal numbers
  • comments
  • white space
  • Unknown tokens

Questão 106

Questão
Ex-25 program was enhaced to recognize: (2 right answers)
Responda
  • special characters
  • reserved words
  • operators
  • comments

Questão 107

Questão
In Ex-22 we don't recognize fully those tokens : (2 right answers)
Responda
  • number
  • UNKNOWN
  • octal
  • string

Questão 108

Questão
Character "f" represents command
Responda
  • hexadecimal digit
  • octal digit
  • final state
  • any digit

Questão 109

Questão
Character "h" represents command
Responda
  • hexadecimal digit
  • octal digit
  • final state
  • any digit

Questão 110

Questão
Character "d" represents command
Responda
  • hexadecimal digit
  • octal digit
  • nonzero digit
  • any digit

Questão 111

Questão
Character "z" represents command
Responda
  • hexadecimal digit
  • octal digit
  • nonzero digit
  • any digit

Questão 112

Questão
Character "o" represents command:
Responda
  • hexadecimal digit
  • octal digit
  • nonzero digit
  • any digit

Questão 113

Questão
Character "p" represents command:
Responda
  • specific character
  • pointer
  • final state
  • printable ascii

Questão 114

Questão
Character "c" represents command
Responda
  • specific character
  • pointer
  • final state
  • printable ascii

Questão 115

Questão
Character "a" represents command:
Responda
  • a specific character
  • an alpha character
  • an any character
  • a printable ascii

Questão 116

Questão
For those characters that are not recognized by the FSM, all transitions for the row are set to...
Responda
  • 0
  • -1
  • f
  • *

Questão 117

Questão
Ex-25. What are words reserved? (2 right answers)
Responda
  • GREATER_THAN
  • AUTO
  • STATIC
  • EQUAL

Questão 118

Questão
Ex-25. What are words NOT reserved, they are operators? (2 right answers)
Responda
  • REGISTER
  • NOT
  • MINUS_MINUS
  • SWITCH

Questão 119

Questão
Ex-25. nonzero digit from: "0 z 1\n". Task please write your structure for printable characters (without double quotes)
Responda
  • 1 p 1\n
  • 1 p \1n
  • 1 1 p\n

Questão 120

Questão
Ex-29. A naive binary search tree is...
Responda
  • balanced
  • full
  • general
  • complete
  • perfect

Questão 121

Questão
Ex-30. What is right for relative search time for trees with random and sorted data?(2 right answers)
Responda
  • as tree height decreases, search time also increases
  • search time is closely related to the height of the tree
  • as tree height increases, search time also increases

Questão 122

Questão
Ex-31. AVL tree is...
Responda
  • naive binary tree
  • binary search tree
  • full binary tree
  • balanced binary tree

Questão 123

Questão
ex-29: the program is missing code:
Responda
  • adding notes
  • getting nodes.
  • Inserting nodes
  • Deleting nodes

Questão 124

Questão
. An AVL tree is...{
Responda
  • a self-completing binary search tree
  • a naive binary search tree
  • a self-routed binary search tree
  • a self-balancing binary search tree

Questão 125

Questão
Ex-31. The height of an AVL tree is most
Responda
  • 1.44*log2(n)
  • 3.14*log2(n+2)-1
  • log2(n+2)-1
  • 1.44*log2(n+2)-1

Questão 126

Questão
Ex-31. The height of a tree of one billion nodes will be: (Please type just one any number)
Responda
  • 42
  • 43
  • 44
  • 45

Questão 127

Questão
What are methods we have added in ChainHashTable.java?(2 right answers)
Responda
  • insert()
  • get()
  • hash()
  • del()

Questão 128

Questão
Ex-32. What are advantages have Hash table?(2 right answers)
Responda
  • perfomance is slower than that of a binary tree
  • perfomance is faster than that of a binary tree
  • memory allocation is smaller than a comparable binary tree node
  • memory allocation is larger than a comparable binary tree node

Questão 129

Questão
Ex-33. With what 2 values you can change setup of Experiment.java?(2 right answers)
Responda
  • hashCode
  • keyRadix
  • hashPrime
  • avgKey

Questão 130

Questão
Lec. Binary tree is:(2 right answers)
Responda
  • left tree
  • a root
  • left subtree
  • right tree

Questão 131

Questão
Lec. Binary tree's properties:(2 right answers)
Responda
  • average depth of left subtree
  • max of leaves
  • max of nodes
  • average depth of leaves

Questão 132

Questão
Lec. Binary Search Tree's properties: (2 right answers)
Responda
  • each node has more 2 children
  • left node smaller than his root node
  • right node lager than his root node
  • each node has less 2 children

Questão 133

Questão
Lec. Hash Tables:(2 right answers)
Responda
  • Large-scale distributed systems
  • Effective way of implementing dictionaries
  • Generalization of ordinary arrays
  • Memory-management tables in operating systems

Questão 134

Questão
Ex-37. In exercise the enhanced program has been modified: (3 right answers)
Responda
  • Build expression trees for Boolean expressions
  • to recognize Boolean expressions
  • evaluate boolean expressions
  • to recognize arithmetic expressions
  • build expression trees for arithmetic expressions

Questão 135

Questão
Many languages allow overloading of operators. The is true or false in java?
Responda
  • True
  • False

Questão 136

Questão
Ex-37. For example, the "+" operator does different things depending on what its operands are: (3 right answers
Responda
  • If the operands are doubles, a floating-point addition is performed
  • If the operands are integers, an integer addition is performed
  • If the operands are strings, a string concatenation is performed
  • if the operands are strings, a floating-point addition is performed
  • If the operands are integers, a string concatenation is performed

Questão 137

Questão
Ex-37. In exercise we can have 3 classes of operators: (3 right answers)
Responda
  • Arithmetic
  • relational
  • logical
  • logic
  • relation

Questão 138

Questão
Ex-34. The program prompts the user for commands, then executes the commands. Unrecognized command is
Responda
  • Insert
  • Quit
  • Dump
  • Set
  • Print
  • Reset

Questão 139

Questão
Ex-35. Which activity was NOT performed?
Responda
  • Collect data by running the program
  • Collect data by checking the program
  • Collect data by executing the program

Questão 140

Questão
Ex-30. What are varying values for variables have used?(2 right answers)
Responda
  • Step
  • Maxsize
  • MinSize
  • Level

Questão 141

Questão
Ex-32. What are methods we have added in ChainHashTable.java?(2 right answers)
Responda
  • Add()
  • hashtabletostring()
  • setIn()
  • gettable()

Questão 142

Questão
Ex-32. What are advantages have BST?(2 right answers)
Responda
  • Finding closest lower and greater elements is faster than a hash table
  • All operations are guaranted to work in O(login) time
  • Performance much faster that that of a hashtable()
  • Memory allocation is lower than a hash table

Questão 143

Questão
Ex-41. When the linked list is better?
Responda
  • The number of items is very large
  • The number of items Is small

Questão 144

Questão
Ex-41. When the tree is better?
Responda
  • The number of items Is small
  • The number of items is very large

Questão 145

Questão
Ex-41. What are advatanges have a double linked list and linear search?
Responda
  • fast search
  • small code
  • simple algorithm
  • more complex code

Questão 146

Questão
In project 05 what 2 types of algorithms are used?
Responda
  • BBT AWL
  • BST AVL
  • Hash Table
  • Hash Tree

Questão 147

Questão
Project 5 length?
Responda
  • 5
  • 4
  • 3
  • 6

Questão 148

Questão
Project 5 height
Responda
  • 12
  • 14
  • 16
  • 15

Questão 149

Questão
Project 5: the static analysis of the hash table should include:
Responda
  • The longest length chain
  • Average length of non-zero length chain
  • The shortest length chain
  • Average length of non-zero height chain

Questão 150

Questão
Ex-42. what is whatchpoint?
Responda
  • Changing variable
  • Creating variable
  • Writing varibale
  • Changing value

Questão 151

Questão
Project 5. for the last two solutions you will need to?
Responda
  • Minimal node in tree
  • Tree height
  • Avl expected tree limit
  • Average length of non-zero chains

Questão 152

Questão
Project 5 four versions:
Responda
  • arraylist, array, avl BST, hash table
  • arraylist, value, avl BST, hash table
  • arraylist, array, variable, hash table

Questão 153

Questão
Project 5 words?
Responda
  • 250 000 words
  • 50 000 words
  • 100 000 words
  • 1000 000 words

Questão 154

Questão
Project 5 found at first time:
Responda
  • 25000
  • 50000
  • 100000
  • 250000

Questão 155

Questão
Project 5 didn’t find at first time:
Responda
  • 25000
  • 50000
  • 250000
  • 100000

Questão 156

Questão
Write a regular expression that matches the writing: d23, D23 or 23). For example for numbers: -4, 3 or +5; right regular expression is written like that:[+-]?[[:digit:]]+
Responda
  • [dD]?[[:digit:]]+
  • [Dd]?[[:digit:]]+
  • [Dd]?[[:digit:]]

Questão 157

Questão
Write a regular expression that matches the exponent part of a floating point number written in scientific notation (e.g. e10 or E10). Sample for -4, 3 or +5 answer is [+-]?[[:digit:]]+{
Responda
  • [eE][[:digit:]]+
  • [eE][[:digits:]]+
  • [dD][[:digit:]]+

Questão 158

Questão
Write a regular expression that matches the writing number of apartment (e.g. n23 or N23). For example for numbers: -4, 3 or +5; right regular expression is written like that:[+-]?[[:digit:]]+{
Responda
  • [nN][[:digit:]]+
  • [nN][[:digit:]]
  • [eE][[:digit:]]+
  • [dD][[:digit:]]+

Questão 159

Questão
Write a regular expression that matches the writing number with pi (e.g. 2pi, -33pi or +5pi). For example for numbers: -4, 3 or +5; right regular expression is written like that:[+-]?[[:digit:]]+{
Responda
  • [+-]?[[:digit:]]+[[:alpha:]]+
  • [+-]?[[:digit:]]+[pi]
  • [+-]?[[:digit::]]+[pi]

Questão 160

Questão
Ex-40. Why might using a profiler on your code be useful? (2 right answers)
Responda
  • A profiler can be used to guide efforts to improve a program.
  • For example, measuring timing information can help guide efforts to improve performance.
  • A profiler cannot be used to guide efforts to improve a program.

Questão 161

Questão
Ex-40. In what method is the program spending most of its time when executing the List All command?{
Responda
  • ArrayListDictionary.listAll().
  • dictionary.dictEntry.toString()

Questão 162

Questão
Ex-40. What method is called the most times?{
Responda
  • ArrayListDictionary.listAll().
  • dictionary.dictEntry.toString() is called once for each entry in the dictionary.

Questão 163

Questão
Ex-40. What are some possible improvements that could be investigated for this problem (low performance)? (2 right answers)
Responda
  • StringBuilder or StringBuffer
  • StringBuild or StringBuffer
  • StringBuilder or StringBuff

Questão 164

Questão
Ex-41. What are examples of goals when optimizing code? (3 right answers)
Responda
  • The most common goals of optimization are to maximize performance (execution speed), minimize program size (memory footprint), and/or minimize memory usage (RAM).
  • The most common goals of optimization are to maximize performance (execution speed), minimize program size (memory footprint), and/or maximize memory usage (RAM).
  • The most common goals of optimization are to minimize performance (execution speed), minimize program size (memory footprint), and/or minimize memory usage (RAM).

Questão 165

Questão
Ex-41. What is the 90/10 rule or law of program optimization? Please select right examples: (2 right answers){
Responda
  • 90% of execution time of a program is spent in 10% of the code and 90% of the time is spent developing/debugging 10% of the code.
  • 10% of execution time of a program is spent in 90% of the code and 90% of the time is spent developing/debugging 10% of the code.
  • 90% of execution time of a program is spent in 10% of the code and 10% of the time is spent developing/debugging 90% of the code.

Questão 166

Questão
Project 5 finish:
Responda
  • compare the results from data stored randomly, stored alphabetically and stored in reverse
  • do a static analysis
  • alphabetic order
  • provide an analysis of the results from running the four different solutions
  • look at search times

Questão 167

Questão
What was the error out of type range in ex-9?
Responda
  • 101211
  • Ascending –descending
  • Num-items – 1000
  • Array[0] - 32767

Questão 168

Questão
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){
Responda
  • memory usage, instruction usage, method calls, timing information, e.g., how much time spent in particular methods
  • memory usage, instruction usage, timing information, e.g., how much time spent in particular methods
  • memory usage, instructions, method calls, timing information, e.g., how much time spent in particular methods

Questão 169

Questão
Infix: ( (4 * 2) + (5 - 2) + ( ( 6 + 4) * (1 + 1) ) ) What is postfix?
Responda
  • 4 2 * 5 2 - + 6 4 + 1 1 + * +
  • 4 2 * 5 2 - + 6 4 + 1 1 + +*
  • 4 *2 5 -2 + 6 4 + 1 1 + * +

Questão 170

Questão
Infix: ( (4 * 2) + (5 - 2) + ( ( 6 + 4) * (1 + 1) ) ) What is Prefix :
Responda
  • +*42-52*+64+11
  • *+42-52*+64+11
  • +*42-52+*64+11

Questão 171

Questão
Infix: ((8-5)*((4+2)/3)) What is Postfix:
Responda
  • 8 5 - 4 2 + 3 / *
  • 8 5 - 4 2 + 3 */
  • 8 5 +4 2 - 3 / *

Questão 172

Questão
Infix: ((8-5)*((4+2)/3)) What is Prefix :
Responda
  • *-85/+423
  • -*85/+423
  • *-85+/423

Questão 173

Questão
What is Infix: ((3*((7+1)/4))+(17-5)) What is Postfix:
Responda
  • 3 7 1 + 4 / * 17 5 - +
  • 3 7 1 + 4 / * 17 5 + -
  • 3 7 1 + 4 * / 17 5 - +

Questão 174

Questão
What is Infix: ((3*((7+1)/4))+(17-5)) What is Prefix:
Responda
  • *+3/+714-175
  • +*3/+714-175
  • +*3+/714-175

Questão 175

Questão
Infix: ((3+4)*((6-2)/7)) What is Postfix:
Responda
  • 3 4 + 6 2 - /7 *
  • 3 4 + 6 2 - 7 */
  • 3 4 + 6 2 - 7 / *

Questão 176

Questão
Infix: ((3+4)*((6-2)/7)) What is Prefix:
Responda
  • *+34/-627
  • +*34/-627
  • *+34/6-27

Semelhante

Orações Subordinadas Adverbiais
criismoreir
Literatura Brasileira
Alessandra S.
Principais Temas para estudar Geografia
Marina Faria
Vestibular - Crase
GoConqr suporte .
Fórmulas de Física
GoConqr suporte .
Fonética, ortografia e acentuação gráfica
GoConqr suporte .
Principais Fórmulas de Física
Luiz Fernando
Ramos do Direito
Felipe Lima x.
Substantivos
Peter Ensi
Célula Animal X Célula Vegetal
Marília Mendes
Sistema Único de Saúde
Vanessa Campos