Art of C Programming - Unit 2 - Week 02

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

8/19/2021 Art of C Programming - - Unit 2 - Week 02


(https://swayam.gov.in)      

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

vikas701040@gmail.com 

CEC (https://swayam.gov.in/explorer?ncCode=CEC)
»
Art of C Programming (course)

Course outline
Week2_Assessment
Week 01 The due date for submitting this assignment has passed.
Due on 2021-01-24, 23:59 IST.
Week 02 As per our records you have not submitted this assignment.

Programming 1) #include <stdio.h>


1 point
Concepts (unit? {
unit=6&lesson=9)     int  x = 100;
  {
C-
FUNDAMENTALS
    int x = 200;
(unit?     printf(“%d”, x );
unit=6&lesson=10)   }
    printf(“%d  ”, x );
Quiz:
}
Week2_Assessment
The output of this program is:

(assessment?
name=55)

Will not work. main() is not included
Week 03
100  100

200  100
Week 04
100  200

Week 05 No, the answer is incorrect.

Score: 0
Accepted Answers:
Week 06 Will not work. main() is not included

Week 07 2) Which of the following special symbol allowed in a variable name ? 1 point


* (asterisk)
Week 08

| (pipeline)
Week 09
- (hyphen)

_ (underscore)
Week 10
No, the answer is incorrect.

Score: 0
 
Accepted Answers:
_ (underscore)

3) Failing to put punctuation is an example of ________ 1 point


Syntax error

https://onlinecourses.swayam2.ac.in/cec21_cs05/unit?unit=6&assessment=55 1/3
8/19/2021 Art of C Programming - - Unit 2 - Week 02


Logical error

Run time error

None of the above
No, the answer is incorrect.

Score: 0
Accepted Answers:
Syntax error

4) The process of subdividing a computer program into separate sub-programs called ________ 1 point


High level programming

Modular programming

Low level programming

None of the above
No, the answer is incorrect.

Score: 0
Accepted Answers:
Modular programming

5) By default a real number is treated as a ________ 1 point


Float

Double

Long Double

Far Double
No, the answer is incorrect.

Score: 0
Accepted Answers:
Double

6) What is the output of the program? 1 point


#include<stdio.h>

int main()
{
extern int a;
printf("%d\n", a);
return 0;
}
int a=20;


20

0

Garbage Value

Error
No, the answer is incorrect.

Score: 0
Accepted Answers:
20

7) Is the statement " extern int i; " a declaration or definition ? 1 point


Declaration

Definition

Function

Error
No, the answer is incorrect.

Score: 0
Accepted Answers:
Declaration

https://onlinecourses.swayam2.ac.in/cec21_cs05/unit?unit=6&assessment=55 2/3
8/19/2021 Art of C Programming - - Unit 2 - Week 02

8) stdio.h is a ________ 1 point


Function name in C

Declaration Statement in C

Keyword of C

Header file
No, the answer is incorrect.

Score: 0
Accepted Answers:
Function name in C

9) Dennis MacAlistair Ritchie or  Dennies Ritchie is ________ 1 point


American astronomer

American musician

Developer of C

Basketball player
No, the answer is incorrect.

Score: 0
Accepted Answers:
Developer of C

10) C Language implements modular programming by using ........ 1 point


{ }

main function

sub programs

variables
No, the answer is incorrect.

Score: 0
Accepted Answers:
sub programs

https://onlinecourses.swayam2.ac.in/cec21_cs05/unit?unit=6&assessment=55 3/3

You might also like