Question

In: Computer Science

Q What were the main design goals of the ALGOL programming language? o To describe algorithms...

Q What were the main design goals of the ALGOL programming language?
o To describe algorithms in publications
o To be machine independent
o To teach non-science students
o To mimic standard mathematical notation
o To standardise software development tools

Q The types of variables used in a programming language can be statically declared as part of the source code of a computer program. Define and give an example of explicit variable declaration and implicit variable declaration [2 marks]:

Solutions

Expert Solution

1 )

a ) To describe algorithms in publications

b ) To be machine Independent

c ) To mimic standard mathematical notations

d ) To teach non science students

2 )

Difference between the Implicit and explicit type of declaration is :

Implicit type of declaration is used by the compiler itself

But explicit type of declaration is not done by the computer but by the user

C code :

#include <stdio.h>

void main()

{

int a, float b; char c;

b = c // After the compilation compiler itself turns it into b = (float) c Because the Datatype size of 'b' is greater than 'c'

c = (char) b // Implicit declaration because the size of the Data type of 'c' is less than the Data type of 'b'

}

Explicit declaration is used when the Size of the data type from the Left hand is greater than the Right hand side

Implicit declaration is used when the Size of the data type from the Left hand is less than the Right hand side


Related Solutions

Q From a programming language perspective, describe what orthogonality is, briefly explain any benefits or detriments...
Q From a programming language perspective, describe what orthogonality is, briefly explain any benefits or detriments of having a higher or a lesser degree of orthogonality. Q  In computer memory, variables are bound to specific memory addresses and have a lifetime. Based on their lifetimes, what are the four categories of these storage bindings? Briefly describe each of the four variable storage bindings.
Describe the 3 goals of promotion and how they relate to the PLC o Describe the...
Describe the 3 goals of promotion and how they relate to the PLC o Describe the 3 major types of product advertising o Describe the class of ownerships of retailers o Describe the steps in the communications process and their importance o Give us some advantages and disadvantages of various advertising media o How do the 4P's influence channel selection? o List in detail some advertising approaches used to gain and hold attention o What are the 4 discrepancies marketing...
What is the Big O of the following algorithms along with the worst and average cases:...
What is the Big O of the following algorithms along with the worst and average cases: Euclid's Algorithm Brute-Force Matching Topological Sort Lomuto Partition Russian Peasant Algorithm
What are the main goals of Monetary policy?
What are the main goals of Monetary policy?
What are the main goals of the FOMC? How do they try to achieve those goals?...
What are the main goals of the FOMC? How do they try to achieve those goals? What are open market operations? How do Fed actions effect consumers actions?
1. How is using authoring application to design a project different from using a programming language...
1. How is using authoring application to design a project different from using a programming language to build the same project? 2. What are some concerns about designing multimedia for the internet? 3. Why would you might want use lossy compression or lossless compression for an image? 4. How could you compare vectors to bitmaps?
In JAVA Language Please! Programming Exercise 3.20 required you to design a PID manager that allocated...
In JAVA Language Please! Programming Exercise 3.20 required you to design a PID manager that allocated a unique process identifier to each process. Exercise 4.20 required you to modify your solution to Exercise 3.20 by writing a program that created a number of threads that requested and released process identifiers. Now modify your solution to Exercise 4.20 by ensuring that the data structure used to represent the availability of process identifiers is safe from race conditions. Use Pthreads mutex locks....
Java Programming language. Proof of concept class design based on the following ideas Look at your...
Java Programming language. Proof of concept class design based on the following ideas Look at your refrigerator and think about how you would model it as a class. Considerations include: A refrigerator is made by a company on a manufacturing date and has an overall size based on length, width, and height A refrigerator contains a number of shelves and drawers for storing dairy, meats, and vegetables A refrigerator also has storage areas on the door for things like bottled...
1. Scalability and Replicability One of the main goals of good model/template design is scalability and...
1. Scalability and Replicability One of the main goals of good model/template design is scalability and replicability. What do each of these words mean in the context of model/template building? 2. The budget process is often iterative and may involve a first, second, and even third round of discussions and updates with department managers/senior management. Given this situation, what could we do from an organizational standpoint to effectively keep track of all these changes and why is it important to...
What is the primary goal in using a scripting language for programming work?
What is the primary goal in using a scripting language for programming work?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT