NPTEL Problem Solving Through Programming in C Week 12 Assignment Answers 2024

Sanket
By Sanket

NPTEL Problem Solving Through Programming in C Week 12 Assignment Answers 2024

1. Which of the following are themselves a collection of different data types?

a) string
b) structure
c) char
d) All of the above mentioned

Answer :- For Answers Click Here 

2. Which of the following comments about the usage structures is true?

a) Storage class can be assigned to individual member
b) Individual members can be initialized within a structure type declaration
c) The scope of the member name is confined to the particular structure, within which it is defined
d) None of the above

Answer :- For Answers Click Here 

3. What is actually passed if you pass a structure variable to a function?

a) Copy of structure variable
b) Reference of structure variable
c) Starting address of structure variable
d) Ending address of structure variable

Answer :- 

4.

W12Q04
Answer :- 

5.

W12Q05

a) abcd
b) bcd
c) cd
d) abcdfgh

Answer :- 

6.

W12Q06

a) A-2, B-4, C-1, D-3
b) A-3, B-1, C-2, D-4
c) A-1, B-4, C-3, D-2
d) A-2, B-3, C-4, D-1

Answer :- For Answers Click Here 

7.

W12Q07

a) 2036, 2036, 2036
b) 2012, 4, 2204
c) 2036, 10, 10
d) 2012, 4, 6

Answer :- 

8.

W12Q08

a) The first character in the file
b) A structure which contains a char pointer which points to the first character of a file.
c) The name of the file.
d) The last character in the file

Answer :- 

9.

W12Q09

a) It is wrong to define an empty structure
b) Member variables can be added to a structure even after its first definition
c) There is no use of defining an empty structureint (*funcPtr)(int, int) = add; printf(“%d”, funcPtr(2, 3));
d) None of the above

Answer :- 

10.

W12Q10

a) True
b) False
c) No output
d) Compilation error

Answer :- For Answers Click Here 
Share This Article
Leave a comment