A)the differenc b/w compiler and interpreter
| BASIS FOR COMPARISON | COMPILER | INTERPRETER |
|---|---|---|
| Input | It takes an entire program at a time. | It takes a single line of code or instruction at a time. |
| Output | It generates intermediate object code. | It does not produce any intermediate object code. |
| Working mechanism | The compilation is done before execution. | Compilation and execution take place simultaneously. |
| Speed |
Comparatively faster | Slower |
| Memory |
Memory requirement is more due to the creation of object code. | It requires less memory as it does not create intermediate object code. |
| Errors | Display all errors after compilation, all at the same time. | Displays error of each line one by one. |
| Error detection | Difficult | Easier comparatively |
B)modulus operator
4%2=0 here ans is 0 and 4%3=1 here ans is 1
here modulus operator returns reminder of divisoin
D)the default value forloop is 1
C)
Two or more relations can be logically joined using the logical operators AND and OR. Logical operators combine relations according to the following rules:
9 Write a short note for the following: a. Difference between compiler & Interpreters. b. Usages...
5. Write a short technical note about Tiny C compiler. 6. What is the difference between an empty string and empty ser 7. Debugger checks for errors in compilation process. True or False? Explain. (-2 for wrong answer) 8. Explain the term Regular Language. 9. Discuss the term Context-free grammar. 10. What is an Interpreter? Write hort notes about 2 of them.
.. Which of the following is the main difference between the short term and the long term: A. Direct labor can be adjusted in the long term but not in the short term B. Direct labor can be adjusted in the short term but not in the long term C. Capacity resources can be adjusted in the long term but not in the short term D. Capacity resources can be adjusted in the short term but not in the long...
IL. Write short notes on the following statements:(Total 10 points, 5points each) 1. Explain the difference between line authority and staff authority. What type of authority do human resource managers have? 2.In some business situations, a person's race, nationality or religion may be a requirement for a job. Give some examples.
IL. Write short notes on the following statements:(CTotal 10 polints, Spaints each) 1. Explain the difference between line authority and staff authority. Whst type of authority do humen resource managers have? 2.In some business situations, a person's race, nationality or religion may be a requirement for a job. Give some examples.
Word Bank:
a) python
b) computer science
c) algorithm
d) program
e) interpreter
f) compiler
g) syntax
h) semantics
i) value
J) variable
k) operator
l) operand
m) expression
n) statement
o) input
p)output
q)call
r) arguments
s) library
t) bug
u) variable scope
v) local variable
w)global variable
x) variable lifetime
y) relational operators
z) logical operators
1) Compares operands and results in a bool: 2) The duration of a variable's existence: 3) A list of instructions to solve...
Write short notes on each of the following: a. What is your understanding of the executive summary? Kindly state why it is one of, if not, the most important sections of a good business plan b. Briefly describe your understanding and the purpose of (i) Income statement, (ii) Balance sheet, and (iii) Statement of cash flows. c. With the aid of examples, explain the difference between internal and external growth strategies?
Write MARIE assembly language programs that do the following: I. Write a program that inputs three integers, a, b, and c, in that order. It computes the following ia-bi-fc+ c The result should be written to output 2. Write a program that inputs integers, s. y, and z. It outputs the difference of the langest and first element entered. You may assume x. y, and z all have different values. So if 8, 12, and 9 are input, the output...
Write code to implement the following function: /* * Generate mask indicating leftmost 1 in x. Assume w=32. * For example 0xFF00 -> 0x8000, and 0x6600 --> 0x4000. * If x = 0,then return 0. */ int leftmost_one(unsigned x); Your function should follow the above bit-level integer coding rules, except that you may assume that data type int has w=32 bits. Your code should contain a total of at most 15 arithmetic, bit-wise, and logical operations. In C++ and has...
9. Select the right answer below. • The difference between the 10-year Treasury bond yield and the 1-year Treasury bond yield gives us the __________________(1) premium. • The difference between the 10-year General Motors bond yield and the 10-year Treasury bond yield gives us the __________________(2)premium. • The difference between the yields of a CCC-rated corporate bond and an AAA-rated corporate bond, both of 10-year maturity, and both of companies of the same size, and in the same industry, gives...
1. Write a short note on three of the following. Each answer should be no longer than two pages long. (a) With the aid of an example outline Modigliani and Miller's capital structure propositions 1 and 2 with corporation tax. (b)You are hired by a large corporation as chief financial officer (CFO). The corporation has yet to pay a dividend but is considering doing so. Based on your knowledge of the relevant literature, outline to the corporation at least two...