Please select a subject first
Advertisements
Advertisements
Write the definition of a function AddUp(int Arr[], int N) in C++, in which all even positions (i.e., 0,2,4, ... ) of the array should be added with the content of the element in the next position and odd positions (i.e., 1,3,5, ... ) elements should be incremented by 10
Example: if the array Arr contains
| 23 | 30 | 45 | 10 | 15 | 25 |
Then the array should become
| 53 | 40 | 55 | 20 | 40 | 35 |
Note:
- The function should only alter the content in the same array.
- The function should not copy the altered content in another array.
- The function should not display the altered content of the array.
- Assuming, the Number of elements in the array are Even.
Concept: undefined >> undefined
Write a definition for a function SUMMIDCOL(int MATRIX [10], int N, int M) in C++, which finds the sum of the middle column's elements of the MATRIX (Assuming N represents a number of rows and M represents the number of columns, which is an odd integer).
Example: If the content of array MATRIX having N as 5 and M as 3 is as follows
| 1 | 2 | 1 |
| 2 | 1 | 4 |
| 3 | 4 | 5 |
| 4 | 5 | 3 |
| 5 | 3 | 2 |
The function should calculate the sum and display the following :
Sum of Middle Column: 15
Concept: undefined >> undefined
Advertisements
Write the definition of a function Change(int P[], int N) in C++, which should change all the multiples of 10 in the array to 10 and rest of the elements as 1. For example, if an array of 10 integers is as follows:
| P[0] | P[1] | P[2] | P[3] | P[4] | P[5] | P[6] | P[7] | P[8] | P[9] |
| 100 | 43 | 20 | 56 | 32 | 91 | 80 | 40 | 45 | 21 |
After executing the function, the array content should be changed as follows:
| P[0] | P[1] | P[2] | P[3] | P[4] | P[5] | P[6] | P[7] | P[8] | P[9] |
| 10 | 1 | 10 | 1 | 1 | 1 | 10 | 10 | 1 | 1 |
Concept: undefined >> undefined
Polina Raj has used a text editing software to type some text in an article. After saving the article as MYNOTES.TXT, she realised that she has wrongly typed alphabet K in place of alphabet C everywhere in the article.
Write a function definition for PURETEXT() in C++ that would display the corrected version of the entire article of the file MYNOTES.TXT with all the alphabets "K" to be displayed as an alphabet "C" on screen.
Note: Assuming that MYNOTES.TXT does not contain any c alphabet otherwise
Example:
If Polina has stored the following content in the file MYNOTES.TXT
|
I OWN A KUTE LITTLE KAR I KARE FOR IT AS MY KHILD |
The function PURETEXT() should display the following content
|
I OWN A CUTE LITTLE CAR I CARE FOR IT AS MY CHILD. |
Concept: undefined >> undefined
Classify the following Web Scripting as Client-Side Scripting and Server Side Scripting
Java Scripting
Concept: undefined >> undefined
Classify the following Web Scripting as Client-Side Scripting and Server Side Scripting
ASP
Concept: undefined >> undefined
Classify the following Web Scripting as Client-Side Scripting and Server Side Scripting
VB Scripting
Concept: undefined >> undefined
Classify the following Web Scripting as Client-Side Scripting and Server Side Scripting
JSP
Concept: undefined >> undefined
What does the third level refer to?
Concept: undefined >> undefined
Would Charley ever go back to the ticket-counter on the third level to buy tickets to Galesburg for himself and his wife?
Concept: undefined >> undefined
Do you think that the third leve was a medium of escape for Charley? Why?
Concept: undefined >> undefined
What do you infer from Sam's letter to Charley?
Concept: undefined >> undefined
'The modern world is full of insecurity, fear, war, worry and stress.' What are the ways in which we attempt to overcome them?
Concept: undefined >> undefined
Do you see an intersection of time and space in the story?
Concept: undefined >> undefined
Apparent illogicality sometimes turns out to be a futuristic projection? Discus.
Concept: undefined >> undefined
Philately helps keep the past alive. Discuss other ways in which this is done. What do you think of the human tendency to constantly move between the past, the present and the future?
Concept: undefined >> undefined
You have read 'Adventure' by Jayant Narlikar in Hornbill Class XI. Compare the interweaving of fantasy and reality in the two stories.
Concept: undefined >> undefined
‘It’s easy to judge others and give advice, but much more difficult to apply it to ourselves.’ Elaborate with reference to the character of Sam in The Third Level.
Concept: undefined >> undefined
Answer the following question in about 120-150 words.
In the story, ‘The Third Level’ by Jack Finney, Charley is obsessed with finding the third level. In an attempt to thrash out whether this obsession is a good quality or a harmful one, Charley’s wife expresses her thoughts in a diary entry.
As Louisa, Charley’s wife, write this diary entry. Support your response with reference to the story.
You may begin this way:
I have been married to Charley for a few years now and I have always known him to be an intelligent man with an imaginative mind. However, his recent obsession with finding the Third Level has …
Concept: undefined >> undefined
Read the given extract and answer the questions.
| The clerk figured the fare – he glanced at my fancy hat band, but he figured the fare – and I had enough for two coach tickets, one way. But when I counted out the money and looked up, the clerk was staring at me. He nodded at the bills. ‘‘That ain’t money, mister,’’ he said, ‘‘and if you’re trying to skin me, you won’t get very far,’’ and he glanced at the cash drawer beside him. Of course the money was old-style bills, half again as big as the money we use nowadays, and different-looking. |
- Why did Charley ask for two tickets? (1)
- Complete the sentence by choosing the correct option: (1)
When Charley offered money to the booking clerk, the latter stared at Charley because the booking clerk ______.
- thought it wasn't money
- did not trust Charley
- thought Charley was trying to tease him
- thought that Charley had given him less money
- Select the option that best describes Charley in this extract. (1)
He is ______.- a cheat
- gullible
- an opportunist
- an escapist
- 'If you're trying to skin me' suggests ______. (1)
Concept: undefined >> undefined
