3i Infotech Placement: Sample Questions 971 - 973 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 971
Question MCQ▾
How many squares with sides 1/2 inch long are needed to cover a rectangle that is 4 ft long and 6 ft wide?
Choices
Choice (4) | |
---|---|
a. | 24 |
b. | 13824 |
c. | 3456 |
d. | 96 |
Answer
b.Explanation
We already know that, 1 ft = 12 inches
Length of the rectangle is 4 ft. So, length inches
Width of the rectangle is 6 ft. So, width inches
From the area of rectangle we are making some number of squares. Let it be x.
Length of square is inches.
So,
So, we can make 13824 squares from the given rectangle.
Question 972
Explanation
Malloc () | Calloc () |
Allocates only single block of requested memory | Allocate multiple block or requested memory. |
doesn՚t initialize the allocated memory. | Initialize the allocated memory to zero. |
Contains garbage value | Does not contain garbage value. |
Faster than calloc | Longer than malloc |
Takes one argument that is number of bytes. | Take two arguments those are number of blocks and size of each block. |
Question 973
Explanation
- The most common reason to put a process in the background is to do something else interactively without waiting for the process to complete.
- This is done by adding a special background symbol, & at end of the command.
- Tells the shell to execute the given command in the background.
- Example:
- cp ⚹ . ⚹ . . / backup& (cp is for copy) .