ST Microelectronics Papers: Sample Questions 14 - 16 of 40

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 14

MCQ▾

Question

Which one is the declaration of the static string?

Choices

Choice (4) Response

a.

“static string”

b.

Static string

c.

‘static string’

d.

Char string [30]

b.

Explanation

If we want the variable to get defined as static, we need to add static keyword before its name. Its default initial value is always 0. If any variable is defined as static then value of that variable persists between different function calls.

Like,

1. `main ()`
2. `{`
3. `    staticinti;`
4. `    for (i = 0; i< 4; i++ )`
5. `    {`
6. `        printf (“%d”, i);`
7. `    }`
8. `}`

will print 0123

Question number: 15

Write in Short

There is a pipe having diameter 6 mm, then how many pipes having 1 mm diameter will be needed to provide the same amount of water?

Explanation

As we all know pipe is cylindrical in shape.

Volume of pipe (cylinder), V = r2h

Where, r = radius of the circle and h = height of cylinder

Here, for r1 = 6 mm,

V1 = 36h mm3

And for r2 = 1 mm,

V2 = 1πh mm3

Number of required pipes = V1 / V2

= = 36

So, number of pipes required to provide the same amount of water = 36

Question number: 16

Write in Short

Sister’s age is twice than that of the brother. If the brother’s age is six, what is the sister’s age after two years?

Explanation

• At present,
• Brother’s age, b = 6 years
• Sister’s age, s = 2b = 12 years
• After 2 years,
• Brother’s age, = b + 2 = 8 years
• Sister’s age = s + 2 = 14 years
• After two years sister’s age will be 14 years.