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.     inta[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

Table Shows the 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 a

If 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?

Image Showing the Graph

Explanation

Difference between DFS and BFS

BFS: A X G H P E M Y J

The BFS Graphs

DFS: A X H P E Y M J G

Shows the DFS Graph

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

Answer

a.

Explanation

Using Predefine and Customizing Predefine Alerts
  • Yes, Alert message can be changed at runtime.
  • We can use SET_ALERT_PROPERTY built-in to set the title of the alert.
  • Title, message and button label properties can be changed by using SET_ALERT_PROPERTY and SET_ALERT_BUTTON_PROPERTY.
  • Alert style and default alert button can also be changed but not at runtime- it is set at design time.

Developed by: