DBC Itanagar

All India News

NPTEL Software Testing Week 6 Assignment Answers 2024

Sanket

1. Typically, how do logical constraints occur in pre-conditions and postconditions that specify assumptions on inputs to methods or describe the properties of the methods?

  • The logical conditions can be any logical predicate.
  • The logical conditions occur in conjunctive or disjunctive normal form.
  • The logical conditions are a simple OR or AND combinations of two or more clauses.
  • The logical conditions always describe what the methods should not process as inputs.

2. State true or false: It is desired that a logical predicate used in a decision statement be a tautology.

3. How do logical predicates occur in finite state machines?

  • They occur as guards in the transitions of a finite state machine.
  • They occur as predicates in the states of a finite state machine.
  • They occur in the actions labeling the transitions of a finite state machine.
  • They occur in the events of a finite state machine.

4. State true or false: The logical predicates occuring in the condition statements of a method are all simple propositional logic formulas.

Consider the following code that has two conditional statements and the corresponding two logical predicates. Answer the following questions with reference to logical coverage criteria on this code.

5. Which of the options below best describe what the above program computes?

  • It computes the sum of all the numbers up to the limit l.
  • It computes the sum of all the even numbers up to the limit l.
  • It computes the sum of all the odd numbers up to the limit l.
  • It computes the number of odd numbers up to the limit l.

6. How many clauses are there in the above program, per predicate?

  • There are two predicates, each having one clause.
  • There are two clauses in the program, to be considered as a part of the second predicate.
  • There are four clauses in the program, two per predicate.
  • There are l different clauses in the program, one for each iteration of the loop.

7. What does predicate coverage test for the second clause in the above program?

  • It tests for the number being odd or even.
  • It tests for the number being within or outside the limit.

8. What does the test case for predicate coverage evaluating to true for the first predicate mean in the above program?

  • The first predicate evaluating to true indicates repeated iterations of the for loop.
  • The first predicate evaluating to true indicates exit from the for loop.

9. State true or false: Clause coverage and predicate coverage are the same for both the predicates in the above program?

10. In the ith iteration of the for loop, which of the following represents the actual predicate corresponding to the if statement?

  • The predicate in the ith iteration is s%2 == 1.
  • The predicate in the ith iteration is (1 + i)%2 == 1.
  • The predicate in the ith iteration is i%2 == 1.
  • The predicate in the ith iteration is 1%2 == 1.

{Week 1, 2} NPTEL Software Engineering Assignment Answers 2023

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

Latest News

NPTEL 5G Wireless Standard Design Week 2 Assignment Answers 2024

NPTEL 5G Wireless Standard Design Week 7 Assignment Answers 2024

NPTEL Introduction to Operating Systems Week Assignment Answers

NPTEL Introduction to Operating Systems Week 6 Assignment Answers 2024

NPTEL Learning Analytics Tools Week 1 Assignment Answers

NPTEL Learning Analytics Tools Week 6 Assignment Answers 2024

NPTEL Conservation Geography Week 2 Assignment Answers

NPTEL Conservation Geography Week 6 Anssignment Answers 2024

NPTEL Theory of Computation Week 2 Assignment Answers

NPTEL Theory of Computation Week 6 Assignment Answers 2024

programming in c nptel assignment week 1

Sign in to your account

Username or Email Address

Remember Me

  • Monday, September 2, 2024

NPTEL Programming In Modern C++ Week 1 Programming Assignment

NPTEL Programming In Modern C++ Week1 Programming Assignment

There has been a continual debate on which programming language/s to learn, to use. As the latest TIOBE Programming Community Index for August 2021 indicates – C (13%), Python (12%), C++ (7%), Java (10%), and C#(5%) together control nearly half the programming activities worldwide. Further, C Programming Language Family (C, C++, C#, Objective C etc.) dominate more than 25% of activities. Hence, learning C++ is important as one learns about the entire family, about Object-Oriented Programming and gets a solid foundation to also migrate to Java and Python as needed. C++ is the mother of most general purpose of languages. It is multi-paradigm encompassing procedural, object-oriented, generic, and even functional programming. C++ has primarily been the systems language till C++03 which punches efficiency of the code with the efficacy of OOP. Then, why should I learn it if my primary focus is on applications? This is where the recent updates of C++, namely, C++11 and several later offer excellent depths and flexibility for C++ that no language can match. These extensions attempt to alleviate some of the long-standing shortcomings for C++ including porous resource management, error-prone pointer handling, expression semantics, and better readability. The present course builds up on the knowledge of C programming and basic data structure (array, list, stack, queue etc.) to create a strong familiarity with C++98 / C++03. Besides the constructs, syntax and semantics of C++ (over C), we also focus on various idioms of C++ and attempt to go to depth with every C++ feature justifying and illustrating them with several examples and assignment problems. On the way, we illustrate various OOP concepts. The course also covers important advances in C++11 and later released features..

Programming In Modern C++ Week 1 Programming Assignment 2022.

INTENDED AUDIENCE :   Any interested audience PREREQUISITES :   10th standard/high school INDUSTRY SUPPORT :   Programming in C++ is so fundamental that all companies dealing with systems as well as application development (including web, IoT, embedded systems) have a need for the same. These include – Microsoft, Samsung, Xerox, Yahoo, Oracle, Google, IBM, TCS, Infosys, Amazon, Flipkart, etc. This course would help industry developers to be up-to-date with the advances in C++ so that they can remain at the state-of-the-art.

Course Layout

Programming assignment q1.

programming in c nptel assignment week 1

Programming Assignment Q2

Programming assignment q3.

swayam-logo

Introduction to programming in C

  • What is an algorithmic solution to the problem?
  • How do we translate the algorithm into C code?
  • How efficient is the code?
  • How maintainable is the code?
  • Attempting algorithmic solutions to problems
  • Designing and coding moderate sized programs running to the order of a few hundred lines of code, and
  • Reading, understanding and modifying code written by others.
--> --> --> --> --> --> --> --> --> --> --> --> --> --> --> --> --> -->

Note: This exam date is subject to change based on seat availability. You can check final exam date on your hall ticket.

Page Visits

Course layout, instructor bio.

programming in c nptel assignment week 1

Prof. Satyadev Nandakumar

Course certificate.

programming in c nptel assignment week 1

DOWNLOAD APP

programming in c nptel assignment week 1

SWAYAM SUPPORT

Please choose the SWAYAM National Coordinator for support. * :

Navigation Menu

Search code, repositories, users, issues, pull requests..., provide feedback.

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly.

To see all available qualifiers, see our documentation .

  • Notifications You must be signed in to change notification settings

This repository contains the solutions of all the programming and quiz assignments of Programming in C++ NPTEL course by By Prof. Partha Pratim Das, IIT Kharagpur

rajarshisur/Programming-in-CPP-NPTEL

Folders and files.

Course Status : Completed
Course Type : Elective
Duration : 8 weeks
Category :
Credit Points : 2
Undergraduate/Postgraduate
Start Date : 22 Jan 2024
End Date : 15 Mar 2024
Enrollment Ends : 05 Feb 2024
Exam Registration Ends : 16 Feb 2024
Exam Date : 23 Mar 2024 IST
NameName
26 Commits

Repository files navigation

Programming-in-c++.

Programming in C++ - Week 1 Quiz

C++ Week 1:Q1 Consider the following code snippet. Fill in the blank at LINE-1 to create a stack and at LINE-2 to fill the stack with the value of array str.

C++ Week 1:Q2 Consider the following program and fill the blank at LINE-1 to check if s1 is not greater than s2. Look at the the sample input and output to understand the comparison operation and write proper return statements at LINE-2 and LINE-3.

C++ Week 1:Q3 Consider the following program and fill in the blanks at LINE-1 to define a function pointer type Fun_Ptr such that it can be used to create a pointer to point add() function. At LINE-2 create function pointer fp to point to function add()

Programming in C++ - Week 2 Quiz

C++ Week 2:Q1 To call the method print() of class Student first and then call print() method of class School.

C++ Week 2:Q2 To call the method print() of class given class Printer to print the following:

C++ Week 2:Q3 To call print() method of class Question by creating a method named ‘studentMethod()’.

C++ Week 2:Q4 To call default constructor first and then any other constructor in the class.

C++ Week 2:Q5 To debug / complete the program which is intended to print 'NPTEL JAVA'.

IMAGES

  1. PROBLEM SOLVING THROUGH PROGRAMMING IN C

    programming in c nptel assignment week 1

  2. NPTEL Introduction To Programming In C Assignment Week 1 Answer

    programming in c nptel assignment week 1

  3. Programming in C++ || Week-1, Assignment-1|| NPTEL Assignment Answer || 2020

    programming in c nptel assignment week 1

  4. {Week 1} NPTEL Programming In Modern C++ Assignment Answers 2024 » DBC

    programming in c nptel assignment week 1

  5. Introduction To Programming In C

    programming in c nptel assignment week 1

  6. NPTEL Introduction To Programming In C WEEK 1 ASSIGNMENT ANSWERS

    programming in c nptel assignment week 1

VIDEO

  1. NPTEL Problem Solving Through Programming In C Week-2 Quiz Assignment Solution

  2. NPTEL Problem solving through Programming In C WEEK 5 Programming Assignment Solutions

  3. Introduction To Programming In C

  4. Problem Solving Through Programming in C NPTEL Assignment 3 week 3 answers 2024

  5. Introduction To Programming In C

  6. NPTEL: Programming ,Data Structures and Algorithm Using Python week 5 programming Ans with code link

COMMENTS

  1. Problem Solving Through Programming In C

    Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course. ( All assignments in a particular week will be counted towards final scoring - quizzes and programming assignments). Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam - out of 100

  2. Introduction To Programming In C

    This is a course in programming in C. No prior programming experience is assumed; however, mathematical maturity at the level of a second year science or eng...

  3. Introduction To Programming In C

    Introduction To Programming In C | Week 1 : Assignment 1 | Answers | Jan-2024 | NPTEL | SwayamJoin our Telegram Channel : https://telegram.me/SwayamSolverJoi...

  4. PDF Assignment 1

    03/07/2020 Problem solving through Programming In C - - Unit 3 - Week 1 https://onlinecourses.nptel.ac.in/noc20_cs06/unit?unit=2&assessment=93 3/4

  5. Problem solving through Programming In C

    This course is aimed at enabling the students toFormulate simple algorithms for arithmetic and logical problems.Translate the algorithms to programs (in C la...

  6. PDF Week 1

    Week 1 - Programming Assignment 1 Write a program that reads in a number n and prints out n rows each containing n star characters, '*'. ... NPTEL online course work? Week 0 Week 1 Lecture 1 Part 1: Introduction (unit? unit=17&lesson=25) Lecture 1 Part 2 : Introduction unit? unit=17&lesson=29) Lecture 1 Part

  7. Introduction to Programming in C

    Assignment score = 25% of average of best 6 assignments out of the total 8 assignments given in the course. ( All assignments in a particular week will be counted towards final scoring - quizzes and programming assignments). Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam - out of 100

  8. Computer Science and Engineering

    Week 1. Lecture 1 : Introduction. Lecture 2 : Idea of Algorithms. Lecture 3 : Flow Chart and Pseudocode. Lecture 4 : Introduction to Programming Language Concepts. Lecture 5 : Variables and Memory. Week 2. Lecture 6 : Types of Software and Compilers. Lecture 7 : Introduction to C Programming Language.

  9. NPTEL Week 1 Solution C 2020

    NPTEL Week 1 Solution C 2020 - Free download as PDF File (.pdf), Text File (.txt) or read online for free. This document is an assessment for a course on problem solving through programming in C. It contains 10 multiple choice questions testing concepts covered in unit 3, week 1 such as flow charts, pseudocode, memory, compilers, and computer components like the ALU and RAM.

  10. NPTEL Assignment Answers 2024 with Solutions (July-Dec)

    NPTEL Assignment Answers and Solutions 2024 (July-Dec). Get Answers of Week 1 2 3 4 5 6 7 8 8 10 11 12 for all courses. This guide offers clear and accurate answers ...

  11. GitHub

    If you're enrolled in any of the NPTEL courses, this post will help you find the relevant assignment answers for Week 1. Ensure to submit your assignments by August 8, 2024. Are you looking for NPTEL Week 1 assignment answers for 2024 for July Dec Session !

  12. Assignment -1 || Week -1 || Problem Solving Through Programming In C

    Here's a full videos Solution of the NPTEL Swayam Problem Solving Through Programming In C Week 1 Assignment 1 answers.#nptelassignmentsolution #nptel2022 ...

  13. PDF Week 1 Assignment 1

    Week 0 Week 1 Module 1 : Recap of C (Lecture 01) (unit? unit=3&lesson=12) Module 1 : Recap of C (Lecture 02) (unit? unit=3&lesson=13) Module 1 : Recap of C (Lecture 03) (unit? unit=3&lesson=14) Module 2 : Programs with IO and Loop (Lecture 04) (unit? unit=3&lesson=15) Module 3 : Arrays and Due on 2020-02-12, 23:59 IST. 1) 2 p o i n ts Week 1 ...

  14. GitHub

    Week-04 Program-04 ~ Write a Program to find the sum of all even numbers from 1 to N where the value of N is taken as input. [For example when N is 10 then the sum is 2+4+6+8+10 = 30] Week-05 Problem-01 ~ Write a C program to check whether a given number (N) is a perfect number or not?

  15. Problem Solving Through Programming In C

    Course layout. Week 1 : Introduction to Problem Solving through programs, Flowcharts/Pseudo codes, the compilation process, Syntax and Semantic errors, Variables and Data Types Week 2 : Arithmetic expressions, Relational Operations, Logical expressions; Introduction to Conditional BranchingWeek 3 : Conditional Branching and Iterative LoopsWeek ...

  16. NPTEL Software Testing Week 6 Assignment Answers 2024

    NPTEL Software Testing Week 6 Assignment Answers 2024. 1. Typically, how do logical constraints occur in pre-conditions and postconditions that specify assumptions on inputs to methods or describe the properties of the methods? The logical conditions can be any logical predicate. The logical conditions occur in conjunctive or disjunctive normal ...

  17. NPTEL Problem Solving Through Programming In C Week 1 Quiz Assignment

    🔊NPTEL Problem Solving Through Programming In C Week 1 Quiz Assignment Solution | July 2022 | IIT Kharagpur🔴ABOUT THE COURSE :This course is aimed at enabl...

  18. NPTEL Programming In Modern C++ Week 1 Programming Assignment

    NPTEL Programming In Modern C++ Week 1 Programming Assignment. July 21, 2022. Faheem Ahmad. There has been a continual debate on which programming language/s to learn, to use. As the latest TIOBE Programming Community Index for August 2021 indicates - C (13%), Python (12%), C++ (7%), Java (10%), and C# (5%) together control nearly half the ...

  19. Problem Solving Through Programming In C

    Learners enrolled: 41778. ABOUT THE COURSE : This course is aimed at enabling the students to. Formulate simple algorithms for arithmetic and logical problems. Translate the algorithms to programs (in C language) Test and execute the programs and correct syntax and logical errors. Implement conditional branching, iteration and recursion.

  20. PDF Week 1 Quiz 1

    1) 1 p o i n t Week 1 Quiz 1 The due date for submitting this assignment has passed. As per our records you have not submitted this assignment.-----Fill in the blank in the following program that draws a figure resembling the letter 'M' (lying on its side). Remember that the turtle starts at the center of the canvas and facing right.

  21. Introduction to programming in C

    The course is free to enroll and learn from. But if you want a certificate, you have to register and write the proctored exam conducted by us in person at any of the designated exam centres.The exam is optional for a fee of Rs 1000/- (Rupees one thousand only).Date and Time of Exams:23 March 2024Morning session 9am to 12 noon; Afternoon Session ...

  22. C Programming and Assembly Language Week 1 Assignment ...

    In this video, we provide the complete solution for the Week 1 assignment of the NPTEL course "C Programming and Assembly Language" offered by IIT Madras in ...

  23. rajarshisur/Programming-in-CPP-NPTEL

    Programming in C++ - Week 1 Quiz. C++ Week 1:Q1 Consider the following code snippet. Fill in the blank at LINE-1 to create a stack and at LINE-2 to fill the stack with the value of array str. C++ Week 1:Q2 Consider the following program and fill the blank at LINE-1 to check if s1 is not greater than s2. Look at the the sample input and output ...

  24. Programming in Modern C++

    There has been a continual debate on which programming language/s to learn, to use. As the latest TIOBE Programming Community Index for August 2021 indicates...