4/10/2019
Problem solving through Programming In C - - Unit 12 - Week 10
X
[email protected] ▼
Courses » Problem solving through Programming In C
Announcements
Course
Ask a Question
Progress
FAQ
Unit 12 - Week 10 Register for Certification exam
Course outline How to access the portal Week 0 Week 1 Week 2 Week 3
Assignment 10 Due date for this assignment: 2019-04-10, 23:59 IST. Assignment not submitted Assignment 10 1) What
is the best time complexity of bubble sort?
a) b) c) d)
1 point
N2 NlogN N N(logN)2
2) How can you improve the best case efficiency in bubble sort? (The input is already sorted)
1 point
Week 4 Week 5 Week 6 Week 7 Week 8 Week 9 Week 10 Lecture 46: Bubble Sort (Contd.) Lecture 47: Use of Pointer in Function : Context Bubble Sort Lecture 48: Arrays at Strings Lecture 49: Data https://onlinecourses.nptel.ac.in/noc19_cs06/unit?unit=69&assessment=184
1/7
4/10/2019
Problem solving through Programming In C - - Unit 12 - Week 10
Representation Lecture 50: Bisection Method Week-10 Program-01 Week-10 Program-02 Week-10 Program-03 Week-10 Program-04 Week-10 Program-05 Quiz : Assignment 10 Feedback for Week 10
Week 11 DOWNLOAD VIDEOS Detailed Solution
3) Bisection
method is used to find
1 point
Derivative of a function at a given point Numerical integration of a function within a range Root of a function None of the above
https://onlinecourses.nptel.ac.in/noc19_cs06/unit?unit=69&assessment=184
2/7
4/10/2019
Problem solving through Programming In C - - Unit 12 - Week 10
4)
1 point
a) b) c) d)
PT PP NP NN
5)
1 point
a) b) c) d)
15,7 25,15 25,12 12,7
6)
7,7 Hint Answer exactly according to the given print statement i.e. separated by comma (,) and no blank space between them 1 point
https://onlinecourses.nptel.ac.in/noc19_cs06/unit?unit=69&assessment=184
3/7
4/10/2019
Problem solving through Programming In C - - Unit 12 - Week 10
7)
1 point
a) b) c) d)
string gnirts no output compilation error
8)
1 point
a) 2 b) 4 c) 7 d) 5 9)
1 point
a) b) c) d)
12 18 18 18 15 15 12 15
https://onlinecourses.nptel.ac.in/noc19_cs06/unit?unit=69&assessment=184
4/7
4/10/2019
Problem solving through Programming In C - - Unit 12 - Week 10
10)What would be the equivalent pointer expression for referring the array element a[i][j][k][l]?
1 point
a) (((*(a+i)+j)+k)+l) b) *(*(*(*(a+i)+j)+k)+l) c) (*(*(a+i)+j)+k+l) d) *((a+i)+j+k+l) 11)Given an array arr = {2, 8, 77, 82, 99} and key = 82; How many iterations are done until the element is found using binary search?
1 point
a) 1 b) 2 c) 3 d) 4 12)Select
the appropriate pseudocode that performs selection sort
https://onlinecourses.nptel.ac.in/noc19_cs06/unit?unit=69&assessment=184
1 point
5/7
4/10/2019
Problem solving through Programming In C - - Unit 12 - Week 10
13)The
C pre-processors directives is specified with _________symbol
1 point
a) # b) $ c) & d) * 14)
Hint 1 point 15)
https://onlinecourses.nptel.ac.in/noc19_cs06/unit?unit=69&assessment=184
1 point
6/7
4/10/2019
Problem solving through Programming In C - - Unit 12 - Week 10
a) Y is [1 2 3 4 5 6 7 8 9 10] and x < 10 b) Y is [1 3 5 7 9 11 13 15 17 19] and x < 1 c) Y is [2 2 2 2 2 2 2 2 2 2] and x > 2 d) Y is [2 4 6 8 10 12 14 16 18 20] and 2 < x < 20 and x is even You may submit any number of times before the due date. The final submission will be considered for grading.
Submit Answers
Previous Page
End
© 2014 NPTEL - Privacy & Terms - Honor Code - FAQs A project of
In association with
Funded by
Powered by
https://onlinecourses.nptel.ac.in/noc19_cs06/unit?unit=69&assessment=184
7/7