0% found this document useful (0 votes)
52 views

Noc20-Cs06 Week 06 Assignment 01

This document is a quiz for an online NPTEL course on problem solving through programming in C. It contains 10 multiple choice questions testing concepts about arrays in C programming, including proper array initialization and indexing, memory allocation for arrays, and valid array assignments. The student has not yet passed the quiz by answering all questions correctly.

Uploaded by

Suhas Hatti
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

Noc20-Cs06 Week 06 Assignment 01

This document is a quiz for an online NPTEL course on problem solving through programming in C. It contains 10 multiple choice questions testing concepts about arrays in C programming, including proper array initialization and indexing, memory allocation for arrays, and valid array assignments. The student has not yet passed the quiz by answering all questions correctly.

Uploaded by

Suhas Hatti
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

03/07/2020 Problem solving through Programming In C - - Unit 8 - Week 6

(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Problem solving through Programming In C (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs06/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 8 - Week 6

Course
outline Assignment 6
How does an The due date for submitting this assignment has passed. Due on 2020-03-11, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Which of the following statement(s) is/are correct ? 1 point
Week 0 int num[7];
num[7]=8;
Week 1
a) In the first statement 7 specifies a particular element, whereas in the
Week 2 second statement it specifies a type;
b) In the first statement 7 specifies a particular element, whereas in the
Week 3 second statement it specifies the array size.
c) In the first statement 7 specifies the array size, whereas in the second
Week 4 statement it specifies a particular element of array.
d) In both the statement 7 specifies array size.
Week 5
No, the answer is incorrect.
Score: 0
Week 6
Accepted Answers:
c) In the first statement 7 specifies the array size, whereas in the second statemen
Lecture 26:
Introduction to it specifies a particular element of array.
Arrays (unit?
2) What is the right way to initialize array in C? 1 point
unit=7&lesson=40)

Lecture 27: a) int arr{}={1,2,5,6,9}


Arrays (Contd.) b) int arr[5]={1,2,5,6,9}
(unit?
unit=7&lesson=41)
c) int arr{5}={1,2,5,6,9}
d) int arr()={1,2,5,6,9}
Lecture 28:
Arrays (Contd.) No, the answer is incorrect.
(unit?
Score: 0
unit=7&lesson=42) Accepted Answers:
b) int arr[5]={1,2,5,6,9}

https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=7&assessment=124 1/6
03/07/2020 Problem solving through Programming In C - - Unit 8 - Week 6

Lecture 29: 3) An integer array of size 10 is declared in a C program. The memory location of 1 point
Program using the first byte of the array is 1000. What will be the location of the 7th element of the array?
Arrays (unit? (integer takes 2 bytes of memory)
unit=7&lesson=43)
a) 1014
Lecture 30:
Array Problem b) 1012
(unit? c) 1010
unit=7&lesson=44)
d) 1016
Quiz :
No, the answer is incorrect.
Assignment 6 Score: 0
(assessment?
Accepted Answers:
name=124)
b) 1012
Week-06
4) Which of the statement is correct? 1 point
Program-01
(/noc20_cs06/progassignment?
name=125)
a) An array may contain more than one element
b) All elements of array has to be of same data type
Week-06
Program-02 c) The size of array has to be declared upfront
(/noc20_cs06/progassignment? d) All of the above
name=126)
No, the answer is incorrect.
Week-06 Score: 0
Program-03 Accepted Answers:
d)
(/noc20_cs06/progassignment? All of the above
name=127)
5)
Week-06
Program-04
(/noc20_cs06/progassignment?
name=128)

Week-06
Program-05
(/noc20_cs06/progassignment?
name=129)

Feedback For
Week 6 (unit?
unit=7&lesson=139)

Week 7

Week 8

Week 9

Week 10

Week 11

Week 12

DOWNLOAD Hint
VIDEOS
No, the answer is incorrect.
Assignment Score: 0
Solution Accepted Answers:
(Type: Numeric) 4

https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=7&assessment=124 2/6
03/07/2020 Problem solving through Programming In C - - Unit 8 - Week 6

1 point

6) Which assignment is not valid for integer arrays in C programming? (arr, arr1 and 1 point
arr2 are integer arrays)

a) arr[4]={1,2.5,3,4};
b) arr[]={1,2,3,4}
c) arr1=arr2
d) All are valid assignment
No, the answer is incorrect.
Score: 0
Accepted Answers:
c) arr1=arr2
7) 1 point

a) i=5, j=5, k=2


b) i=6, j=5, k=3
a) i=6, j=4, k=2
d) i=5, j=4, k=2
No, the answer is incorrect.
Score: 0
Accepted Answers:
a) i=5, j=5, k=2
8)

https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=7&assessment=124 3/6
03/07/2020 Problem solving through Programming In C - - Unit 8 - Week 6

Hint

No, the answer is incorrect.


Score: 0
Accepted Answers:
(Type: String) IIT MADRAS

1 point

9)

https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=7&assessment=124 4/6
03/07/2020 Problem solving through Programming In C - - Unit 8 - Week 6

Hint

No, the answer is incorrect.


Score: 0
Accepted Answers:
(Type: Numeric) 6

1 point

https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=7&assessment=124 5/6
03/07/2020 Problem solving through Programming In C - - Unit 8 - Week 6

10) 1 point

a) 5,4
b) 5,5
c) 4,4
d) 3,4
No, the answer is incorrect.
Score: 0
Accepted Answers:
c) 4,4

https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=7&assessment=124 6/6

You might also like