In the von Neumann Computing Model the block is connected to


In the von Neumann Computing Model, the block is connected to the input and output blocks. Problem 5 Given the three C++ numeric data types integer, long double and long integer, what are the other three C++ numeric data types? 1) 2) 3) Problem 6 C++ is a strongly typed programming meaning all objects used in a program must be declared. (True or False) Problem 7 American National Standards Institute (ANSI) defines the binary representation for the characters A and C as follows. A - 01000001 C-01000011 What is the binary representation for B? What is the binary representation for E? Problem 8 What are the symbols for the following operator in C++? Address Pointer Problem 9 List the missing program control structures. 4) Sequence 5) 6) Repetition Problem 10 Write an example of a preprocessor directive in C++. Problem 11 When programming in C++, what are the two symbol types used to indicate a statement is a comment statement. 1) 2)

Solution

4)

in von neumann model single memory block is connected to both input blocks and output blocks.

5)

int,float , double , short int, long int, long double etc are the various numeric data types in c++
as given three numeric data types are int , long int , long double
so other three numeric data types in c++ are:
1) float
2) double
3) short int

6)

C++ is strongly typed labgiage means we have to declare all the variables inside a c++ program
so the statement is true.

7)

binary representation of character A and C is given as :
A = 0100 0001
C = 0100 0011

decimal of A = 65
decimal of C = 67

we need B and E

so it means that decimal valuys for B = 66
and decimal valuys for B = 69

so binary value of B = 0100 0010
binalry value of E = 0100 0101

8)

symbols for the address and pointers in c++ is given as below:

for address ampersand sign & is used
for pointer difference operator * is used

9)

Three types of control structures available in C++ are:

1) Sequence structure
2) Selection structure
3) Loop structure (repetition)

10)

lines procede by # sign is called Preprocessor directives.
The preprocessor check the code before actual compilation of code begins and resolves all these directives before any code is generated by regular statements.

example of preprocessor directive as given below:


To define preprocessor macros we can use #define as given below:
#define size 9

if we declare int array in program like this

int abc[size];

After the preprocessor has replaced size the code becomes equivalent to:

int abc[9];

11)

basically there are two ways with which we can declare a comment

1)
single line comment :
for single line comment // is used
means comment start with // and continue until the end of the line

2)
multi line comment
for multiline comment /* */ is used.
means comment start with /* and end with */

 In the von Neumann Computing Model, the block is connected to the input and output blocks. Problem 5 Given the three C++ numeric data types integer, long doubl
 In the von Neumann Computing Model, the block is connected to the input and output blocks. Problem 5 Given the three C++ numeric data types integer, long doubl

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site