0% found this document useful (0 votes)
2 views5 pages

Programming in C

The document outlines the structure and rules for the ECAP010 Programming in C exam, which includes 20 multiple choice questions and 6 descriptive questions across four sections. Each section has specific time limits and scoring criteria, with instructions for scanning and uploading answers. The exam is proctored and requires the use of specific browsers and permissions for monitoring.

Uploaded by

logme2nausheen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

Programming in C

The document outlines the structure and rules for the ECAP010 Programming in C exam, which includes 20 multiple choice questions and 6 descriptive questions across four sections. Each section has specific time limits and scoring criteria, with instructions for scanning and uploading answers. The exam is proctored and requires the use of specific browsers and permissions for monitoring.

Uploaded by

logme2nausheen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

COURSE CODE: ECAP010

COURSE NAME: Programming in C


Time Allowed: 02:00 hrs. Max. Marks: 70

Read all the instructions carefully

1. There are 20 multiple choice and 3 descriptive questions in this exam.


2. Section - 1: contain(s) 20 question(s) and each question carries 2 mark(s). Each question in this
section has a time limit of 2 minutes. Once you go to next question, you can never come back to
the previously seen question in this section.
3. Section - 2: contain(s) 2 descriptive question(s) and each question carries 10 mark(s). Attempt any
1 question within 26 minutes in this section. You can navigate between the 2 questions in this
section.
4. Section - 3: contain(s) 2 descriptive question(s) and each question carries 10 mark(s). Attempt any
1 question within 27 minutes in this section. You can navigate between the 2 questions in this
section.
5. Section - 4: contain(s) 2 descriptive question(s) and each question carries 10 mark(s). Attempt any
1 question within 27 minutes in this section. You can navigate between the 2 questions in this
section.
6. You can skip a question if you do not know the answer by clicking on the Next button.
7. A correctly answered question will score the allocated mark.
8. Skipping a question without answering will result in 0 marks for that question
9. The entire exam is recorded along with all your actions during the exam.
10. Do not try to leave the test window during the exam.
11. Since this is a proctored exam, you will have to provide permissions to share your location,
webcam, microphone (and screen if the proctor demands).
12. Make sure to use the latest Chrome browser on Android, Windows, Linux, Mac OS. For iOS
devices, use only Safari browser.
Instructions for DESCRIPTIVE questions requiring SCAN & UPLOAD
13. Make sure to upload your scans immediately after you answer every question. Do NOT wait till the
end to avoid panic at the end.
14. The exam time is inclusive of time for scanning & uploading answers.
15. If using laptop + mobile for the exam, click on Open Test on laptop and click on Scan & Upload
on mobile.
16. If using laptop + mobile for the exam, when scanning and uploading from mobile, ensure that the
correct question is open on the laptop.
17. When clicking on Camera button on a smart phone for scanning and uploading, you have 2
camera applications available to scan the answer: your phone's native camera and an alternative
Low Memory Camera. Click on the Low Memory Camera in case your browser shows an error
due to low memory.
18. If you are using only mobile phone to take the exam, then click on “Open Test” button to start the
exam and click on "Camera" button under each question to scan the answer sheets.
Click Finish only after completion of the Exam.

Page | 1
Section 1: Attempt All the Questions

1. Which of the following language instructions execute very fast?


A. Machine language Instructions
B. Hardwired Instructions
C. Procedural language Instructions
D. Assembly language Instructions

2. Which of the following is part of computer system.


A. Hardware
B. Programming
C. Software
D. Hardware & Software

3. Which of the following special symbols is allowed in a variable name?


A. * (asterisk)
B. _ (underscore)
C. | (pipeline)
D. – (hyphen)

4.In C programming language, which of the following type of operators have the highest
precedence
A. Relational operators
B. Equality operators
C. Logical operators
D. Arithmetic operators

5.Relational operator is used with


A. 1 operand.
B. 2 operands
C. Both 1 operand and 2 operand
D. none of above

6. Which of the following is an invalid if-else statement?


A. if (if (a == 1)){}
B. if (func1 (a)){}
C. if (a){}

Page | 2
D. if ((char) a){}

7. The label in goto statement is same like


A. Case in switch statement
B. Initialization in for loop
C. Continuation condition in for loop
D. All of them

8. Choose the right statement


A. User defined functions is known as sub-program.
B. Sub program is a constant in C program
C. Sub program and main function is same
D. All of above

9. Which from the following is a jumping statement?


A. Break statement
B. Continue statement
C. Switch statement
D. All of them

10. Which keyword is used to come out of a loop only for that iteration?
A. break
B. continue
C. return
D. none of the mentioned

11.Call by value and call by reference is part of ______


A. pointers
B. array
C. functions
D. loops

12. In program we can modify original value in


A. Call by value
B. Call by reference
C. None of above

Page | 3
D. above all

13. A function is called indirect recursive ______


A. if it calls the same function.
B. if it calls another function.
C. Execute other function
D. Above all

14.Before using a pointer variable


A. It should be declared
B. It should be initialized
C. It should be both declared and initialized
D. None of above

15. Which is correct statement for expression?


Int *ptr, p;
A. ptr is a pointer to integer, p is not an integer variable.
B. ptr and p, both are pointers to integer.
C. ptr is pointer to integer, p may or may not be.
D. ptr and p both are not pointers to integer.

16.DMA stands for


A. Dynamite Memory Access
B. Dynamic Memory Available
C. Direct Memory Access
D. None of Above

17. Which of the following is memory allocation technique


A. Static Memory Allocation
B. Dynamic Memory Allocation
C. All of above
D. None of above

18. What are the part of Conditional Compilation?


A. #endif
B. #define

Page | 4
C. #undef
D. None of above

19. Extension of text file is


A. .com
B. .in
C. .txt
D. .ppt

20. Macro is defined by__________


A. #endif
B. #define
C. #else
D. #ifdef

Section 2: Attempt any one question out of two


1. Given the length and breadth of a rectangle, write a program to find whether the area of the rectangle is
greater than its perimeter. For example, the area of the rectangle with length = 5 and breadth = 4 is greater than
its perimeter.

2. What happens if one uses variables in scanf() without using the address of operator (&)? Discuss.

Section 3: Attempt any one question out of two


1. Write a program to print all the ASCII values and their equivalent characters using a while loop.

2. How will you initialize a three-dimensional array threed[3][2][3]? How will you refer to the first and last
element in this array?

Section 4: Attempt any one question out of two


1. Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how many of
them are positive, how many are negative, how many are even and how many odd.

2. What do mean by random file access? How C implements the concept of random file access?

--------------------------------------END OF QUESTION PAPER--------------------------------------

Page | 5

You might also like