IndiaBIX
IndiaBIX
Start typing & press "Enter" or "ESC" to close
  • Home
  • Jobs
  • Results
  • Current Affairs
  • GK
  • Online Test
  • HR Interview
  • BLOG

Microprocessors - Section 1 (1)

  • Home
  • Electronics & Communication Engineering
  • Electronics and Communication Engineering
  • Microprocessors - Section 1
Directions to Solve

Microprocessors - Section 1

1. 

Consider the following program in Pascal

X = 2.57
X = (X + 0.06) * 10
I = TRUNC (X)
X = I
X = X / 10.0

The final value of X would be

A. 2
B. 2.6
C. 2.63
D. 26.3

Answer: Option B

Explanation:

(2.57 + 0.06) 10 = 26.3 →46-290

View Answer Discuss Workspace Report

2. 

Which of the following is not a valid real constant in C

A. 426
B. 321.0
C. -621.231
D. +201.2314

Answer: Option A

Explanation:

Real constant must have a decimal point.

View Answer Discuss Workspace Report

3. 

Assume that x = 5 and y = 2. Then in Java operation x + = y, the result is

A. x = 7
B. x = 2
C. x = 3
D. x = 2

Answer: Option A

Explanation:

The operator + = means add and assign.

View Answer Discuss Workspace Report

4. 

Which of the following is not a valid integer constant in C (for 16 bit)?

A. 321
B. -162
C. -65321
D. +1

Answer: Option C

Explanation:

The range is from - 32768 to + 32767.

View Answer Discuss Workspace Report

5. 

Let JCOKE = 98 and LPEPSI = 42 Consider the statement

IF (JCOKE - 3 * LPEPSI) 5, 6, 7
5 JCOKE = JCOKE + 5
6 JCOKE = JCOKE + 8
7 JCOKE = JCOKE + 11

The value of JCOKE after the execution of above statement will be

A. 103
B. 106
C. 109
D. none of the above

Answer: Option A

Explanation:

Since (J COKE - 3 x L PEPSI) is negative, statement 5 is executed and the result is 98 + 5 = 103.

View Answer Discuss Workspace Report

6. 

Which of the following is not an integer constant?

A. 0
B. -8
C. +1074
D. -8.1

Answer: Option D

Explanation:

Integer constant should not have decimal point.

View Answer Discuss Workspace Report

7. 
 

Consider the following C program int ram

float alpha, gamma
ram = 6400
alpha = 0.562
gamma = alpha * ram + 1


Now consider the following statements about this program

  1. ram is an integer variable
  2. alpha, gamma are real variables
  3. *, + are arithmetic operators
  4. 0.562 may be an integer constant or real constant
Which of the above are correct?
A. All
B. 1, 2, 3 only
C. 2, 3, 4 only
D. 1, 2, 4 only

Answer: Option B

Explanation:

0.562 is not an integer constant.

View Answer Discuss Workspace Report

8. 

Read the following statements about files in Pascal

  1. A file is a data structure which consists of a sequence of components of the same type.
  2. The number of components in a file is variable.
  3. The components in a file can be accessed only sequentially starting from the beginning of the file.

Which of the above are correct?

A. All
B. 1 and 2 only
C. 2 and 3 only
D. 1 and 3 only

Answer: Option A

Explanation:

All statements are true.

View Answer Discuss Workspace Report

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

Questions & Answers

Aptitude Chemical Engineering Civil Engineering Computer Science & Engineering Current Affairs Data Interpretation Electrical & Electronics Engineering Electronics & Communication Engineering General Knowledge Logical Reasoning Mechanical Engineering Non Verbal Reasoning Verbal Ability Verbal Reasoning

Interviews

HR Interview

Jobs

Sarkari Jobs

Results

Rojgar ResultSarkari Result

Admission

Admission 2023

Admit Card

Admit Card 2023

Answer Key

Answer Key 2023
copyright
Privacy Policy
© 2025 IndiaBIX. All Rights Reserved.

Report