The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
1.Which of the following statements about file state is false?
Which of the following statements about pointer casting is false?
|
||||||||
| Output files are opened in the write state. | ||||||||
| Error files are opened in the error state. | ||||||||
| To move from the read state to the write state, a file position function must be called. | ||||||||
| Append files are opened in the write state. |
2. Given a two-dimensional array of five rows and ten columns, which of the following array index notations is equivalent to the following expression when i is 3 and j is6? Â
*(*(ary + i) + j)
| ary[][10] |
| ary[*][10] |
| ary[i][j] |
| *ary |
| *ary[i] |
3. Given the following list, the first element to be tested using the sequential search and a target of 5 is:
{1, 2, 3, 4, 5, 6, 7, 8, 9}
| 1 |
| 2 |
| 5 |
| 7 |
| Â |
4. Given an employee structure variable containing a name field, which of the following statements correctly references the name?
| employee |
| employee_name |
| employee.name |
| ptr->employee_name |
| ptr->employee.name |
Â
-----------