# 3i Infotech Placement: Sample Questions 273 - 275 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

## Question 273

Edit

### Describe in Detail

Essay▾
1. `#include<studio.h>`
2. `main ()`
3. `{`
4. `    int a[2][2][2] ={ { 1, 2, 3, 4}, { 5, 6, 7, 8} };`
5. `    int ⚹p, ⚹q;`
6. `    p =&a[2][2][2];`
7. `    ⚹q =⚹ ⚹⚹ a;`
8. `    printf ( “%d____%d” ⚹p, ⚹q);`
9. `}`

### Explanation

In a program

 a [2] [2] [2] = { {1,2, 3,4} , {5,6, 7,8} } ; Define the array and it՚s value int ⚹ p, ⚹ q; Define the 2 integer pointer p and q p = &a [2] [2] [2] ; You declared only 2D array, but you are trying to access 3D array so, it will print garbage value. ⚹ q =⚹ ⚹⚹ a; Starting address of aIf you print ⚹ q , it will print first element of 3D array (or our 2D array starting address remains the same) printf ( “% d________ % d” ⚹ p, ⚹ q) ; So, the print is SomeGarbageValue________1

## Question 274

### Describe in Detail

Essay▾

For the given graph, draw the DFS and BFS?

### Explanation

BFS: A X G H P E M Y J

DFS: A X H P E Y M J G

## Question 275

### Question

MCQ▾

Can an Alert message be changed at runtime?

### Choices

Choice (4)

a.

Yes

b.

No

c.

Question does not provide sufficient data or is vague

d.

None of the above