Podcast
Questions and Answers
Which of the following is a correct statement about the given text?
Which of the following is a correct statement about the given text?
- The maximum marks for Q.1 is 5.
- The time allocated for the exam is 2.5 hours.
- Questions 2 to 5 carry equal marks. (correct)
- The total number of pages is 14.
What is the correct pseudocode to check if a number is positive or negative?
What is the correct pseudocode to check if a number is positive or negative?
- if (num >= 0) print 'Positive'; else print 'Negative'; (correct)
- if (num < 0) print 'Positive'; else print 'Negative';
- if (num > 0) print 'Positive'; else print 'Negative';
- if (num != 0) print 'Positive'; else print 'Negative';
Which of the following statements about arrays is true?
Which of the following statements about arrays is true?
- Arrays can store elements of different data types.
- Arrays cannot store more than 10 elements.
- Arrays automatically resize based on the number of elements.
- Arrays can only store elements of the same data type. (correct)
What is the difference between getchar and gets?
What is the difference between getchar and gets?
What is the correct pseudocode to find the addition of the first 20 numbers and print it?
What is the correct pseudocode to find the addition of the first 20 numbers and print it?