100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Languages(bus 4406)questions well answered $22.99   Add to cart

Exam (elaborations)

Languages(bus 4406)questions well answered

 11 views  0 purchase
  • Course
  • Bus 4406
  • Institution
  • Bus 4406

Languages(bus 4406)questions well answered

Preview 4 out of 42  pages

  • September 10, 2024
  • 42
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Bus 4406
  • Bus 4406
avatar-seller
BravelRadon
Languages(bus 4406)questions well
answered

True/False: Java is an example of a functional programming language - correct answer ✔✔false



which of the following is NOT a characteristic of imperative programming languages?

a) not referentially transparent

b) programming specifies the result not the steps

c) based upon the assignment

d) is dependent on state - correct answer ✔✔programming specifies the result not the steps



True/False: the revolutionary innovation that von Neumann introduced in his computer architecture was
the use of registers within the ALU - correct answer ✔✔false



which of the following NOT an example of an imperative programming language?

a) Cobol

b) Java

c) Prolog

d) Fortran - correct answer ✔✔Prolog



True/False: Programming languages offer abstraction from the details of the computer hardware. This
abstraction resulted in less programming effort but also loss of 'detail' that could potentially result in less
efficient code? - correct answer ✔✔True



True/False: the assembler language was an early step towards abstraction that allowed programmers to
use symbols for machine instructions and not binary numbers? - correct answer ✔✔true



True/False: A bus with less bits has an advantage because it operates faster and can move more data. -
correct answer ✔✔false

,True/False: the development of the C language is associated with the development of the Unix operating
system? - correct answer ✔✔true



What feature of the von Neumann architecture was unique at the time and is an element of virtually
every modern computer today?

Select one:

a. Programs and data are stored in memory to facilitate general purpose computing.

b. The use of a bus to move data between the components of the architecture

c. The use of registers in the arithmetic logic unit

d. The introduction of a control unit - correct answer ✔✔Programs and data are stored in memory to
facilitate general purpose computing.



True/False: in syntactical analysis the top-down approach is referred to LL analysis? - correct answer
✔✔true



which of the following expressions can be evaluated as syntactically correct by the following grammar?

E = N | E "+" E

N = "1" | "2" | "3" | "4" - correct answer ✔✔4 + 2 + 1



True/False: type checking is a part of the compilation process that occurs in step 2 syntax analysis -
correct answer ✔✔false



True/False: Perl is an example of a static typed programming language. - correct answer ✔✔True



True/False: the EBNF approach to grammar specification was a rewrite of the original BNF developed by
John Backus designed to normalize grammar specification? - correct answer ✔✔false



True/False: an array is comprised of a collection of elementary data types which can all be of different
types - correct answer ✔✔false

,True/False: the scope of a variable refers to the domain where a specific binding refers to the same
location in memory - correct answer ✔✔True



Which of the following is NOT one of the attributes of a variable.



a) scope

b) lifetime

c) r-value

d) name

e) all of these choices are attributes of a variable - correct answer ✔✔all of these choices are attributes
of a variable



What is the binary equivalent of decimal 25 in 2's complement? - correct answer ✔✔00011001



Specific data elements in an array are accessed using an:

a) index

b) hash

c) key

d) pointer - correct answer ✔✔index



Consider the following code segment:

for (int k=0; k<20; k=k+2)

{

if (k%3 == 1)

System.out.print(k+" ");

}

What is printed when this code is executed? - correct answer ✔✔4 10 16



The correct looping statement to use when the number of

, iterations is known is:

a. The for loop

b. The while loop

c. The do .. while loop

d. None of these answers - correct answer ✔✔the for loop



True/False: The semantics in which the address of a variable is

bound to the name of the formal parameter variable is known as

copy-in semantics or call-by-value. - correct answer ✔✔False



True/False: Actual parameters can only be specified as variables - correct answer ✔✔False



The following code segment is an example of:

void f() {

... g() ...

}

void g() {

... f() ...

} - correct answer ✔✔an indirect recursive call



True/False: The following segment of JavaScript code is valid.

if (how == "reverse")

{

parent.page1.location.href="page2.html"

}

else

{

parent.page2.location.href="page2.html"

} - correct answer ✔✔False

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller BravelRadon. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $22.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80202 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$22.99
  • (0)
  Add to cart