comp_sci_flashcards - Which of the following is not a...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Which of the following is not a control statement?,assignment statement In an artificial neural network, what input values will cause the processing unit below to produce an output of 1. input : 1 -2 1 threshold: .5,Any combination in which the center input is 0 and at least one other input is 1 Which of the following does not require a Boolean structure?,assignment statement Which of the following is actually constructed during a heuristic search?,search tree what is ignored by the compiler?,comment statements Which of the following is not constructed by a typical compiler?,source code Most machine languages are based on the,Imperative paradigm Correct Which of the following is the scope of a variable?,The portion of the program in which the variable can be accessed Which of the following learning technique results in an agent merely performing a pre-recorded sequence of steps?,imitation Which of the following is not a step in the process of translating a program?,executing the program Which of the following is not associated with object-oriented programming?,resolution which of the following is not a type of statement found in a typical high-level imperative programming language?,Exclamatory statement positions within arrays are identified by means of numbers called,indices In an artificial neural network, which of the following pairs of weights would cause a processing unit with two inputs and a threshold value of 3 to produce an output of 1 only when both of its inputs are 1?,2 and 2 Correct Because transistors were smaller and produced less heat than vacuum tubes, they allowed for the design of smaller and faster computers.,true is one of several individuals credited for inventing the World Wide Web,tim berners-lee The Hollerith Tabulating Co. eventually became Hewlett Packard.,false became IBM What is the maximum number of items the binary search algorithm would check when searching a list with 8 items?,4 What is the maximum number of items the sequential search algorithm would check when searching a list with 8 items?,8 n the TurtleSim program, the following code is supposed to move in a square. What is the missing command? x = 4; while (x > 0) { _____________; x = x - 1; },left(90); right(90);
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Which of the following set of instructions defines an algorithm in the formal, strict sense?,x = 3; while (x > 0) { x = x - 1; } In the TurtleSim program, what is the command to declare a variable called y?,double y; When searching within the list (Lewis, Maurice, Nathan, Oliver, Pat, Quincy, Roger, Stan, Tom) which of the following entries will be found most quickly using the sequential search algorithm?,lewis Write the value of y after the algorithm finishes x = 5; y = 7 + x;,12 Choose all numbers that will be printed by the code below? X = 5; while (X < 8) { print (X); X = X + 1 },5 6 7 Suppose the binary search algorithm was being used to search for the entry Pat in the list (Nathan, Oliver, Pat, Quincy, Roger, Stacey, Tom).
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern