How many simple paths are there for vertex a to vertex b

Assignment Help Basic Computer Science
Reference no: EM131054338

1. Which of the following is the key shaded part?

2425_Figure.jpg

a) 17
b) 24
c) 19
d) 31
e) 33

2. Set of terminal symbol {a, b} and non terminal symbols is {S, A} and starting symbol is S

S → SS
S → aAb
A → aAb
A → b
A → ε

Which strings is not generated by the grammar?
a) ab
b) aabb
c) abab
d) abba
e) ababb

3) What is the decimal value of the sum of the binary number 11001 and hexadecimal number 84 ?
a) 153
b) 154
c) 155
d) 156
e) 157

4) UML diagram

546_Figure1.jpg

Which of the following possibilities classes A and B be modeled by this diagram?
   Class A    Class B
a) car         Vehicle
b) chapter   book
c) country   capital city
d) building    Floor
e) Judge      Lawyer

5)

1010_Figure2.jpg

How many simple paths are there for vertex A to vertex B?
a) 12   c) 45   e) 81
b) 20   d) 64

6) (x, y) Vectors

x
y
1

homogeneous coordinates

Which 3 x3 matrices represent transformation that will mark point (x, y) to point ( x+2, 3 y)?

 

a ) 1 0 0
c)  1 2 0

0 3 1

0 1 3

2 0 1

0 0 1









b ) 1 0 2
d)  2 0 0

0 3 0

0 1 3

0 0 1

0 0 1









e)  2 0 1





0 3 1





1 0 1




7) Which of these are not desired characteristics of a hash function in used to construct a hash table?
a) h(x) is an integer value
b) if x = y, then h(x) - h(y)
c) given x, it is easy to computer h(x)
d) given h(x), it is easy to computer x
e) h(x) produces evenly distributed values

8) When value in a programming is said to have first class status if it has which characters?
a) it can be passed as a parameter
b) it can be returned from a function
c) it can be assigned to a variable

this has more than one answer

9) Which number when maximum flow from note S to note T?

1201_Figure3.jpg

a) 5
b) 6
c) 7
d) 8
e) 9

10 (aaa + bbb) * (bb +c) *(acb*)(acba*)

Which length of the shortest string in the language represented by the expression?
a) 2
b) 4
c) 5
d) 7
e) 16

11 ) Database management system, an attribute of one table that matches the primary key of another table
a) candidate key
b) composite key
c) foreign key
d) primary key
e) secondary key

12 Quickest algorithm (nlogn)
Which one is the worst case running ?
a) (nlog2n)
b) (n3/2)
c) (n2)
d) (n2logn)
e) (n3)

13 Which binary strings of length 10 contain either exactly one 0 or exactly the 0's?
a) 45
b) 55
c) 100
d) 450
e) 1024

14) "All cold things are wet"
"no blabs are purple"
"same purple things are cold"
Which one of these?
a) some wet things are not blobs
b) some cold things are blabs
c) some blabs are not cold
d) all wet things are purple
e) all purple things are wet

15) Testing to detect the introduction of errors into software that way previously corrected is called?
a) unit testing
b) system testing
c) regression testing
d) integration testing
e) debugging

16 ) Asymptotic ordering from least to greatest of the these functions?

√n, nlog2n, log2(n2)

17) 3 step random walk that starts at node A
The next node will be visited randomly chosen from among two nodes adjacent to the current node.
What is the probability the 3 steps random walk will end at node B?
a) 0
b) 1/8
c) ¼
d) 3/8
e) ½

18. Consider tables R and S
R

A

B

0

0

0

1

2

1


S

B

C

0

1

1

0

1

2

How many types are in the natural join of R and S?
a) 3
b) 4
c) 5
d) 6
e) 7

19. An Euler path

311_figure.jpg

This graph is known to have an Euler path because it is planner; all nodes have a degree greater than or equal 2.
Which are of these are true?
a) it has more edges then nodes
b) it has exactly two add degree nodes
c) it has an add number of nodes
There can be more than one answer

20 which of the following two input Boolean function cannot be learned by a single layer neural network such as a perception?
a) AND
b) OR
c) NAND
d) NOR
e) XOR

21) Consider a computer system with 32 bit address, 4 GB of byte addressable RAM, and a data cache that has 32 byte blocks. What additional information can be used to compute the size of a tag in the data cache?

a) The size of the data cache in byte and the number of blocks per ser
b) the number of page table entries and the number of sets in the data cache
c) the size of the data cache in bytes and the size of a page
d) the size of the cache divided by the number of blocks per set
e) the number of translation look aside buffer (TLB) entries and the number of set in the data cache.

22) The computer graphics operation of rotations, translation, and projection can be all be implemented using matrix transformation from linear algebra. For this reason advanced graphics units (GPU) commonly found in today's microcomputer from which class of computer architecture?
a) SISD
b) SIMD
c) MIMD
e) NUMA

I need some help with my computer science assignment. There are 22 computer science questions in multiple choice. You can just circle the write answers or make a list.

Reference no: EM131054338

Questions Cloud

Angular momentum of the electron : For a particle moving in a circular orbit, the quantity mvr (mass x velocity x radius of the orbit) is a fundamental quantity called the angular momentum of the particle. Show that equation 2(3.144)r=n(lambda) is equivalent to the condition that t..
Change margins vertical alignment and font and font size : Change margins, vertical alignment, line spacing, and font and font size, and delete blank lines. Set tab stops using the ruler to line up information. Set tab stops and add leaders to create lines for users to fill in information.
Electrochemical cell made from a magnesium electrode : Draw an electrochemical cell made from a magnesium electrode in a 1.0 M MgSO4 solution and a nickel electrode immersed in a 1.0 M solution of NiSO4 , showing the items listed below, and send it to me (email) for extra credit.
Molecular mass of the gas : An unknown Gas is placed in a 1.50 L bulb at pressure of 356mm Hg and a temputure 22.5c and is found to weight 0.9266 g. What is molecular mass of the gas use the ideal gas law to determine the answer
How many simple paths are there for vertex a to vertex b : What is the decimal value of the sum of the binary number 11001 and hexadecimal number 84 - Which of the following possibilities classes A and B be modeled by this diagram
Write the chemical formula : Look around your house for products like shampoo, conditioner, supplements, oils, etc. Identify at least five compounds from these products and attempt to write the chemical formula. Be sure to tell us what product you found the compounds in.
Octahedral crystal field : Explain why the d-orbitals on a metal ion split (in energy) as they do in an octahedral crystal field.
Determine the molar solubility of lead : A student does an experiment to determine the molar solubility of lead(II) chloride. He constructs a voltaic cell at 298 K consisting of 0.864 M lead nitrate solution and a lead electrode in the cathode compartment,
Type and magnitude of stress that develops : Determine the type and magnitude of stress that develops. Assume that at 20OC the rod is stress free. What will be the stress magnitude if a rod 1 m long is used?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a program that asks the user for names of two files

write a program that asks the user for the names of two files. the first file should be opened for reading and the second file should be opened for writing . the program should read the contents of the first file, change all characters to uppercas..

  Search the internet for owasp

Define the acronym and locate the most current top 10 Web-application security risks

  Draw an event-graph of a distributed system

Draw an event-graph of a distributed system of three concurrent processes which are communicating messages, and synchronized by their respective logical clocks

  Who delivers supplies to its customer

In what ways does IT planning help managers exercise control in a situation? Does IT impact the truck driver of a company who delivers supplies to its customer?

  Various translation reside

1. Describe how one string value like "Hello" can be displayed in different languages. How is the string stored in the widget? Where does the various translation reside?

  Distribute music on the internet.

an architecture for a system (such as iTunes) that is used to sell and distribute music on the Internet. What architectural patterns did you use as the basis for this architecture? Why are these patterns appropriate?

  Activity diagram of each step of ordering pizza

Draw an activity diagram representing each step of the process; from the moment you pick up the phone to the point where you are eating the pizza.

  Write a code/program to evaluate

Write a code/program to evaluate the following arithmetic expression: X= (A - B) * ( ( ( C - D * E ) / F ) / G )

  Explain nefarious computer activities called ping sweeps

Your boss has just heard about some nefarious computer activities called ping sweeps and port scans. He wants to know more about them and what their impact might be on the company. Write a brief description of what they are, and include your asses..

  Write a short structured design-using pseudocode

Write a short, structured design-using pseudocode only-that accomplishes this task.

  Describe the different types of database requests and

Describe the different types of database requests and transactions.  Explain the need for the two-phase commit protocol. Then describe the two phases.  What is the objective of query optimization functions? To which transparency feature are the query..

  Compressed video and data networks

Compressed Video and Data Networks

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd