topic/C Programming
Start Test
Question No
Title
Type
Marks
552.
What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
MCQ
5
553.
What does the following declaration mean?int (*ptr)[10];
MCQ
5
554.
In C, if you pass an array as an argument to a function, what actually gets passed?
MCQ
5
660.
Which one of the following statements is correct?
MCQ
5
661.
If a is an array of 5 integers then which of the following is the correct way to increase its size to 10 elements?
MCQ
5
662.
How will you complete the foreach loop in the C#.NET code snippet given below such that it correctly prints all elements of the array a?int[][]a = new int[2][]; a[0] = new int[4]{6, 1 ,4, 3}; a[1] = new int[3]{9, 2, 7}; foreach (int[ ] i in a) { /* Add loop here */ Console.Write(j + " "); Console.WriteLine(); }
MCQ
5
712.
The [Serializable()] attribute gets inspected at
MCQ
5
713.
Which of the following are correct ways to specify the targets for a custom attribute?
MCQ
5
716.
Which of the following is correct ways of applying an attribute?
MCQ
5
571.
Which bitwise operator is suitable for turning off a particular bit in a number?
MCQ
5
Current Page: 1
Prev
1
2
3
4
5
...
9
10
Next