C Question Paper
C Question Paper
Course Name: CERTIFICATE IN TALLY PRIME WITH GST Date: 31/07/2023 @ 06:00: pm
Student Name: Divya Laxman Sonawane PRN NO: 94364778
Institute Name: JIJAU COMPUTERS AND KNOWLEDGE INSTITUTE Institute Code: ITT50285
Exam Duration: 60 Minutes Total Questions: 30 Total Marks: 60
Passing Marks: 40 Marks/Question: 2 Type of Questions: Multiple Choice
6. Which of the following is the correct syntax to print the message in C++
language?
1. Out <<"Hello world!;
2. cout <<"Hello world!";
3. Cout << Hello world! ;
4. None of the above
1
7. Which of the following can be considered as the correct syntax for
declaring an array of pointers of integers that has a size of 10 in
C++?
1. int *arr = new int*[10]
2. int *arr = new int[10];
3. int arr = new int[10];
4. int **arr = new int*[10];
2
13. What did we call an array of the one-dimensional array?
1. Multi-Dimensional array
2. Single Dimensional array
3. 2D Array (or 2-Dimensional array)
4. All of above
14. Which of the following gives the 4th element of the array?
1. Array[0];
2. Array[0];
3. Array[3];
4. None of the above
16. Which of the following is the correct syntax for declaring the array?
1. int array [5];
2. init array []
3. Array[5];
4. None of the above
5.
17. If we stored five elements or data items in an array, what will be the
index address or the index number of the array's last data item?
1. 88
2. 5
3. 4
4. 3
18. Which of the following is the original creator of the C++ language?
1. Dennis Ritchie
2. Ken Thompson
3. Bjarne Stroustrup
4. Brian Kernighan
3
20. Which one of the following represents the tab?
1. \t
2. \n
3. \r
4. None of the above
4
27. Which header file is essential for using strcmp() function?
1. string.h
2. strings.h
3. text.h
4. strcmp.h