Professional Documents
Culture Documents
:___________________
RK UNIVERSITY
B.TECH./SEM-II/REMEDIAL/AUG.-2019
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Programmable calculator is not permissible.
Q.1 (a) Select the most appropriate option: (Each of one mark) 06
1. What does a==b means?
a. Stores the value
b. Compares the value
c. pass the value
d. None of above
2. What is the size of an int data type?
a. 4 Bytes
b. 8 Bytes
c. Depends on the system/compiler
d. Cannot be determined
3. Comment on the following pointer declaration.
int *ptr, p;
a. ptr is a pointer to integer, p is not
b. ptr and p, both are pointers to integer
c. ptr is a pointer to integer, p may or may not be
d. ptr and p both are not pointers to integer
4. Which of the following is a correct comment?
a. */ comments */
b. /* comment */
c. /// comments
d. {comments}
5. What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *str = "hello, world\n";
printf("%d", strlen(str));
}
Page 1 of 2
a. Compilation error
b. Undefined behavior
c. 13
d. 11
6. Which operator connects the structure name to its member name?
a. - (dash)
b. . (dot)
c. &
d. None
*************
Page 2 of 2