CS计算机代考程序代写 algorithm Java c++ compiler The von Neumann  model is the basis for today’s computers.

The von Neumann  model is the basis for today’s computers.
YES
_______ is a set of instructions in a computer language that tells the computer what to do with data
  
A program

In a computer, the ________ subsystem accepts data and programs and sends processing results to output devices.
  
input/output 
 In a computer, the ________ subsystem performs calculations and logical operations.
CPU
According to the von Neumann model, ________ are stored in memory.
  
data and programs 
The only language understood by computer hardware is a ________ language. 
machine    
Any high-level language have to be interpreted or compiled into machine language before it could be executed by the computer.
YES
C, C++, and Java can be classified as ________ languages. 
  
high-level
 
In a computer, the ________ subsystem stores data and programs.
memory 
Based on von Neumann architecture, a computer hardware can be divided into 3 subsystems:
  
input/output, CPU, memory
 
Which one of the following shapes is NOT used in basic flowcharts?Correct!
  
Octagon
 ________ is an English-language-like representation of code.
  
 Pseudocode    
________ is a graphic representation of an algorithm. orrect!
  
A  flow chart    
 You need to be an expert in at least one programming language to write pseudo code?
  
False
For a precise, clearly-stated problem, there can be only one algorithm that solves that problem.orrect!

false
 The ________ construct uses a set of actions one after another.
 
  sequence    
________ is a step-by-step method for solving a problem or doing a task.
  
An algorithm 
The ________ construct handles repeated actions. 
repetition   
 An algorithm is a step-by-step sequence of instructions for carrying out some task.
YES
There are ________ basic constructs in algorithm construction in computer -science. rrect!
  
Three
The ________ construct tests a condition and takes one alternative. 
decision
 A sequence of instructions for assembling a bookcase does not qualify as an “algorithm” since the instructions are not written in formal, mathematical notation.Correct!
  
false
 
Which of the followings can be C identifiers?
Correct answer

This_is_a_variable_for_my_program
Backslash
keyword
 what are the values of the variables a, b, c and d after the following statement is executed: 
     Int a, b = 0, c = 0, d = 0; 
     a = ++b +  c++ – –d;
  
a = 2, b = 1, c = 1, d = -1
 Suppose the following code fragment has been executed:   
    double x = 2.9;
    double z; 
    z = (int)x+0.1;
    printf(“%.1f”,z);
2.1
The C expression 
   ‘2’ + 4 
has a value of _____.
  
‘6’
the mathematical expression 
 
is written in C as follo
  
(x*x – y*y)/(a*a + b*b)
Which of the following is a valid name for an identifier in C?
Emp_Num1
which of the followings cannot  be an identifier in C?
  
I-and-you  
for 
start*it  
2easy
 Assume x and y are 2 int variables.  The following C expression 
    x = 0 && y == 1 
has a value of _______.
  
0
Which symbol terminates a C statement?Correct!
  
 ; (semicolon)
 The operator + in a+=4 meansect!
  
 a = a + 4
Which of the followings are invalid?
  
‘ ‘ 
  
‘abc
What is the value of result after executing the following statement in C? 
      result = 6 + 3 * 4 / 5; 
8
A number such as 45.567 needs to be stored in a variable of which data type?
Double
The “\n” character does which of the following operations?
  
 places cursor on the next line
 You can have more than one main function.
False
which of the followings cannot an identifier in C?
3id
The following mathematical expression should be written as ______________ in C. 
  

  
(a+b*h)/(a*b*h)
What is the result of the following C expression? 
5 – 4 * 3 / 5 * 2
  
= 5 – 12/5*2 = 5 – 2*2 = 1
Which operator has the lowest priority ?
  
||
The compiler ignores comments and they are not translated into machine language.
Correct!
  
True