Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
35 views
3 pages
Question Paper 2022
Uploaded by
Tridib Bhunia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Question Paper 2022 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
35 views
3 pages
Question Paper 2022
Uploaded by
Tridib Bhunia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Question Paper 2022 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
1374 June 2022 307/1(N) COMPUTER PROGRAMMING IN C Time Allowed: 3 Hours Full Marks: 60 Answer the following questions from Group-A, B & C as directed. GROUP-A 1. Choose the correct alternative (Any ten) 1x 10-10 i) ‘C’ is often called aa) Object oriented language b) High level language c) Assembly language d) Machine level language ii) Which operator has the lowest priority? a)++ b)% c)+ d) I iii) Which escape character can be used to begin anew line inC?-a)\a_b)\b-c)im_— d\n iv) Which is false? a) A variable defined once can be defined again with different scope. b) A single variable cannot be defined with two different types in the same scope. c) A variable must be declared and defined at the same time. d) A variable refers to a location in memory. vy) The function Strepy(s1,s2) call means_ a) copies s1 string into s2 b)copies s2 string into s1 c)copies both si and s2 d) None of these Vi) File manipulation functions in C available in header file _ a) streams.h b)stdio.h c)stdlib.h d)files.h vii) What is the limit for number of functions in a C Program? a) 16 b) 31 c)32 _d) No Limit Viii) Address stored in the pointer variable is of type -a) Integer b) Float c) Array d) Character ix) int mainQ) { inti=-5; int k =i %4; printf("%d\n", k); i a) Compile time error b) -1 c) 1 d) None x) How many times will the following loop execute for(j = 1; j <= 10; j =j-1)? A) forever b) never ¢) 0 djl xi What is the output of the following program? Hinclude
main() { int r, x =2; float 1=y%x; printf("%d", 1); a) 1 bo 2 d) Compile error 1xii) The machine registers are sometimes called a) local variables b) global variables c) accumulators d) static variables xiii) The value of -17%-Sis_a)3.4b) 3 ¢)-3. d) None xiv) x=5; y=xt+; The values of x and y will be _ a) x=5y=6 — b)Y=S.x=6 0) x=S.y=5 d) xv) Which is valid C expression? a) int my_num = 100,000; b) int my_num = 100000; c) int my num = 1000; d) int Smy_num = 10000 2. Fill in the blanks (Any ten): 1x 10-10 i) Long int I; In 32-bit compiler occupies bytes in main memory. ii) The C language consist of number of keywords. iii) Each string is terminated with a character. iv) scanft) is @ predefined function in header file. v) The is equivalent to a= a-l vi) is unconditional control structure in C. vii) The EOF is equivalent to viii) Ifthe function returns no value then it is called . ix) The union holds x) By default a variable is assigned with in static storage class. xi) Array subscripts in C always start at xii) The run time library is collection of, files xiii) The operator “- -”’ is known as ~ operator. xiv) Ifa is an integer variable, a=11/2 will store in a . xv) The C language was originally developed from. Tanguage. 3. Answer the following question (any ten) 1x 10=10 i) What is keywords? ii) What is prototype declaration of a function? iii) What do you mean by library function in C program? iv) What do you mean by debugging? v) What is the difference between declaring a header file with > and” “? vi) What is the use of a ‘\0" character? vii) What is a syntax error? viii) What is token? ix) Write the difference between = an x) What is global variable? xi) What is malloc ()? xiii) What is typecasting? xiv) What is the job of Assembler in C programming? xv) What are macros? = in C programming, GROUP -B 4, Answer the questions (Any six) 2x6=12 i) What is Bit wise operation in C? ii) What is header file? iii) Write down the advantage of the Structured program. iv) State the types of User-Defined Functions.‘v) What is the difference between do-while and while loop? vi) Evaluate c=at++--b-at++b where a=8,b=4. vii) Convert (167) base 10 to binary. viii) Explain size of operator with example ix) Write the differences between Compiler and Interpreter. x) Name the types of Arrays. xi) What is looping in C? xii) Differentiate Source Codes from Object Codes. GROUP -C 5. Answer the question (any one) 6x1 a) What do you mean by associativity of an operator? Explain break and continue statement with an example, b) Write a program to calculate GCD of two numbers. Why goto statement should be avoided in c? ) What do you mean by nested loop structure? b) Write a program in C to find the sum of the series 1+(1+2)4(1+243)+ _. up to ‘n’ terms, the value of ‘n’ should be given from the keyboard. 6. Answer the question (any one) 6x1 ) Discuss with programming examples the different types of String Handling Function in C b) Discuss different Storage Class with example. c) Write a C program to find reverse of a string 7. Answer the question (any one) 6x1 4) What do you mean by a pointer to a function? Write a C program to access a one dimensional array using pointer. b) Write a recursive funetion to obtain the returning sum of first 25 natural numbers. Write a program to find weather a year is leap year or not ©) Write a c program for reading and writing some integer value using the concept of Dynamic Memory Allocation.
You might also like
Document
PDF
No ratings yet
Document
36 pages
Diwali H.w- Computer (Std-10)
PDF
No ratings yet
Diwali H.w- Computer (Std-10)
11 pages
(CC-102 ) (Introduction to Programming )-2018
PDF
No ratings yet
(CC-102 ) (Introduction to Programming )-2018
8 pages
Bca Bca 103 Introduction To Programming 2011
PDF
No ratings yet
Bca Bca 103 Introduction To Programming 2011
7 pages
CPR - Question-Bank Fyej RSM
PDF
No ratings yet
CPR - Question-Bank Fyej RSM
58 pages
C Language 2018
PDF
No ratings yet
C Language 2018
6 pages
II Sem Bcom Programming With c c Internal i (2)
PDF
No ratings yet
II Sem Bcom Programming With c c Internal i (2)
7 pages
Final Round - C Language
PDF
No ratings yet
Final Round - C Language
7 pages
Part One - 40 Part Two - 60
PDF
No ratings yet
Part One - 40 Part Two - 60
7 pages
Suggestive MCQ Questions of JAVA
PDF
No ratings yet
Suggestive MCQ Questions of JAVA
15 pages
TATA CPRG
PDF
No ratings yet
TATA CPRG
5 pages
303105104_5910_Question_Paper
PDF
No ratings yet
303105104_5910_Question_Paper
3 pages
Cprogrammingwithans
PDF
No ratings yet
Cprogrammingwithans
34 pages
Global Soft Computer Technology
PDF
No ratings yet
Global Soft Computer Technology
9 pages
Bigbull Education Xii-computer 2024-2025
PDF
No ratings yet
Bigbull Education Xii-computer 2024-2025
3 pages
FDS S.E. MCQ's For All Units (Pune University) PDF
PDF
65% (23)
FDS S.E. MCQ's For All Units (Pune University) PDF
92 pages
pyq_c(2017-2024)
PDF
No ratings yet
pyq_c(2017-2024)
20 pages
C Language
PDF
No ratings yet
C Language
9 pages
Programmig C sample paper
PDF
No ratings yet
Programmig C sample paper
1 page
pyq_c(2022)
PDF
No ratings yet
pyq_c(2022)
3 pages
Suggestion Answer
PDF
No ratings yet
Suggestion Answer
75 pages
Computer Programming in C (2022)
PDF
No ratings yet
Computer Programming in C (2022)
3 pages
Fundamental of Programming_16-2-2022
PDF
No ratings yet
Fundamental of Programming_16-2-2022
2 pages
ComputerScience II C Optional
PDF
No ratings yet
ComputerScience II C Optional
6 pages
Unit2-2marks
PDF
No ratings yet
Unit2-2marks
9 pages
CST 3 Sem Computer Programmin in C 307 1 N Jun 2022
PDF
No ratings yet
CST 3 Sem Computer Programmin in C 307 1 N Jun 2022
3 pages
03 C Language
PDF
No ratings yet
03 C Language
2 pages
PROGRAMMING FOR PROBLEM SOLVING (CSEN 1001)
PDF
No ratings yet
PROGRAMMING FOR PROBLEM SOLVING (CSEN 1001)
5 pages
pyq_c(2023)
PDF
No ratings yet
pyq_c(2023)
3 pages
Finance Report
PDF
No ratings yet
Finance Report
5 pages
Al-Razi Guess Paper Computer Science (EM)
PDF
No ratings yet
Al-Razi Guess Paper Computer Science (EM)
4 pages
Intro.-to-CS---Previous-Midterm-Exams-ANSWER-KEYs-(3-Exams---2023)
PDF
No ratings yet
Intro.-to-CS---Previous-Midterm-Exams-ANSWER-KEYs-(3-Exams---2023)
6 pages
NMCC
PDF
No ratings yet
NMCC
6 pages
TCS Placement Paper 2
PDF
No ratings yet
TCS Placement Paper 2
13 pages
C Programming MCQ Final
PDF
No ratings yet
C Programming MCQ Final
9 pages
COM101 (HNU) Midterm Exam (Fall 2023) ANSWER KEY
PDF
No ratings yet
COM101 (HNU) Midterm Exam (Fall 2023) ANSWER KEY
2 pages
C
PDF
40% (5)
C
138 pages
C Question Bank
PDF
No ratings yet
C Question Bank
5 pages
Programming & Problem Solving Through Language: Total Time: 3 Hrs
PDF
No ratings yet
Programming & Problem Solving Through Language: Total Time: 3 Hrs
5 pages
EE 171 UE 1st SEMESTER WITH ANS
PDF
No ratings yet
EE 171 UE 1st SEMESTER WITH ANS
6 pages
Subject-C Programming Section - A: Tick The Correct Answer From The Option Given
PDF
No ratings yet
Subject-C Programming Section - A: Tick The Correct Answer From The Option Given
4 pages
C Language - DMCA
PDF
No ratings yet
C Language - DMCA
2 pages
Mcqs For All Units
PDF
100% (1)
Mcqs For All Units
92 pages
Bca Bca 103 Introduction To Programming 2012
PDF
No ratings yet
Bca Bca 103 Introduction To Programming 2012
7 pages
Question For C Programing Rajesh
PDF
No ratings yet
Question For C Programing Rajesh
7 pages
AL-Razi Guess Paper Computer (E - M) 10th
PDF
No ratings yet
AL-Razi Guess Paper Computer (E - M) 10th
4 pages
C Programming Theory Quiz - SOLUTION
PDF
No ratings yet
C Programming Theory Quiz - SOLUTION
4 pages
C C++ Tcs
PDF
No ratings yet
C C++ Tcs
8 pages
Great Learning Applications of AI
PDF
No ratings yet
Great Learning Applications of AI
1 page
Example
PDF
No ratings yet
Example
14 pages
2nd Year Computer 2nd Half (R)
PDF
No ratings yet
2nd Year Computer 2nd Half (R)
1 page
Mock1 Computer 2021
PDF
No ratings yet
Mock1 Computer 2021
26 pages
Prev Year Questions
PDF
No ratings yet
Prev Year Questions
9 pages
R20-Ppsc-Unitwise Multiple Choice Questions
PDF
No ratings yet
R20-Ppsc-Unitwise Multiple Choice Questions
16 pages
C Programming MCQ
PDF
No ratings yet
C Programming MCQ
7 pages
DocScanner 05 Jan 2024 2 48 PM
PDF
No ratings yet
DocScanner 05 Jan 2024 2 48 PM
6 pages
PPS Mid 1 Objective 2024
PDF
No ratings yet
PPS Mid 1 Objective 2024
10 pages
C Ojective Questions
PDF
No ratings yet
C Ojective Questions
19 pages
PPS - Unit 1-Question Bank
PDF
100% (1)
PPS - Unit 1-Question Bank
16 pages
22218-C-Programming-Language-sample-question-paper
PDF
No ratings yet
22218-C-Programming-Language-sample-question-paper
4 pages
Curriculum Vitae Sunanda Ghosh: Career Objective
PDF
No ratings yet
Curriculum Vitae Sunanda Ghosh: Career Objective
3 pages
C Multiple Choice Questions and Answers MCQ With Ans
PDF
No ratings yet
C Multiple Choice Questions and Answers MCQ With Ans
22 pages
BSc IT CA3
PDF
No ratings yet
BSc IT CA3
2 pages
CMCQ
PDF
No ratings yet
CMCQ
18 pages
Class Work
PDF
No ratings yet
Class Work
2 pages
C Questions
PDF
No ratings yet
C Questions
12 pages
Pps - Question Bank
PDF
No ratings yet
Pps - Question Bank
65 pages
C Aptitude Questions 50
PDF
No ratings yet
C Aptitude Questions 50
14 pages