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)
4 views
IP
Ok. Done
Uploaded by
ajayvempuluru123
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 now
Download
Save IP For Later
Download
Save
Save IP For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
4 views
IP
Ok. Done
Uploaded by
ajayvempuluru123
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 now
Download
Save IP For Later
Carousel Previous
Carousel Next
Save
Save IP For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 10
Search
Fullscreen
NELLORE @..@< WY NARAYANA ENGINEERING COLLEGE: COT Freshmen Engineering Department ma ‘Academic Yea Course Code: 23ES1001 lass 7 1 B.TECH course Title : Introduction to Programming Branch : Common to All MODEL QUESTIONS MODULE-1 troduction to Programming and Problem Solving S.NO Questions: CO] BL [Marks 7 [What are the characteristics of a computer? 1] 2] 2 7 _| Define Software and hardware? Lesa 2 3 Pilferentiaie between ‘Compiler and Interpreter. 1} 2 2 | Piferentate RAM and ROM aul eee [eas 7} [Wats an Kdenifier? Write any two rules oFnaming Cidentifiers. |, | > | 2 | Differentiate formatted and unformatted V/0. rl2/2 7 aplsingetchar() and putehar{) functions bane fo g_ pxplain ternary operator in C. cha a - *c)/ 10; b= 10; c= 15;d=5. 9 Praluatiee= a * 6) malereleea 10 Differentiate top down and bottom-up approaches. 1 2 2ine basic Organization of a What is 2 Computer? Explain fiagram. at ding ‘pes OF programming computer with ne _ : 1? Explain What is a program 2 flanguages. : - in characteristics of 3 | ® What is an algorithm? Explait an 2 5 algorithm. : +) Write an algorithm to exchange the values of two variables 5 using third variable. - 7 | What is a flow chart? Explain various symbols used id 7 5 flow char. ; b) Design a flow chart to find whether a given number i 3 even or odd. 5 _| Explain the compilation and execution process. 5 i ¢ | Explain the basic structure ofa Cprogram witha diagram. |], |=) What is a data type? Explain various data types in © witht 10 7_| examples. ieee g | What is@ constant? Explain different types of C ial oer constants with examples. > | ee is a Variable? Explain the rules for naming the, | > 5 variables. b) Write aC program to add given two integers and display 5 the result. 19 | Explain about the basic Input and Output functions in C. i] 3] 0 Explain di : 11 | Explain different C Operators with examples. tile33 to Explai ; 12. | ® Explain about Type Conversion and Type Casting 1] 3 3 5 b) Explais Palin Tin an Space complexities of algorithms.gyre ac RAR RA ce op ~Controt Seractures Control SO CO] BL [Marks ‘SNO Questions 2 ii What are Simple sequential programs? 3 s ie of ifelse statement anlar . [Draw Flowshart to show te working pine ns: ‘wo integers. 2A, Beil 72 rite a C program to find the greatest among giver lAns: fee Kc > int main Q) int mumt, murn2; num =12,num2"13; if (ouml = num2) printf("both are equal’ else if (aural > num2) printf("%d is great", uml); else printf("%6d is greater", num2); return 0; IWrite a C program to print the ASCII Value ofa given Character. ns : include
int main) { char ¢; printi("Enter a character: "); seanf("%e", &e); 1/ Yd displays the integer value of a character 1/ %e displays the actual character printf("ASCII value of %c = %d", ¢, ¢); return 0;ite the synlax of ns if (oso Vy arement 1; —s le if conten 2) ee if oon What isthe se of break Keyword in Switch statement? ns: The break statement to end processing of @ particular labele in the switch statement. It branches to the end of the swite | the program continues 0 the next labele Statement Wi statement. Without break tatement, executing the statements until a break or the end of th statement is reached Then is the default Block executed in Switch statement? |Ans: The default statement is executed if no case constant-expressi falue is equal to the value of expression . If there's no default statement find no case match is found, none of the statements in the switch body get -xecuted. There can be at most one default statement. |What is anested loop in C? Ans : A nested loop means @ loop statement inside another loo} statement, That is why nested loops are also called “loop inside loops“. [There is no specific limit to how many for loops can be nested ins another for loop Write a C program to print alphabels rom AtoZ: Jans: include
nt main) ( charPi = aed controlled and exit coniratied loops inc. aay 5 ; e loop in which test condition is checked in the beginning of th poop are Known as entry controlled loop. For Example: while loop jereas when statements inside the loop body is ‘executed and then th condition is checked that loop is known to be 35 exit controlled loop. Ex do while loop. MODULE-I Control Structures S.NO CO | BL | Marks 1 Explain the following: 2 bo2 fs (i) Simple if Statement (ji) if else Statement : |Explain the following: 2 a 2 |G) Nested if Statement (i) else if Ladder Statement 2 3 3 _ | Explain switch statement in C language with an example. 71 2 no 7 Eexlain in detail about while Loop Statement with an example] 2 | 5 a fprogram. j Explain in detail about do while Loop Statement with an ages rs Lxample program. Explain in detail about Tor Loop Statement with an exampld 2 |, ; program. ?, o [Explain in detail about break and continue Statements with an | "2 10 7 _ example programs. 2 g Pela in detail about goto Sttemens with an omar {example programs. 10 =) Explain the working principle of while Toop. I 9 |4) Write a C program to find whether the given number i 2 5 palindrome or not. 3 10 Design Algorithm and Flow chart to the problem of finding | 2 whether the given number is Even or Odd. 3 5 ) Write a C Program tothe above suid problem and show the 5 expected Result.}ODULE-IIT yeand Strings ‘Ans: ‘aera < estions c SN Questi 0 oO 1 | Whatisan Array? 3 Daline and Graw the memory model ofa one-dimensional Array. | 3 2 3 | How to initialize 0 ne-dimensional array? 3 3 op | Whats Array traversal? 3 : 5 | How to declare a two-dimensional array? 3 2 Differentiate one-dimensional and two-dimensional arrays. 3 2 6 7 _| Can we declare an array without specifying the size ofan array? | 3 5 g_ | How to access the elements of an array? 2 2 9 | Why NULL characters used in String? 3 10, | Explain any two, string manipulation library functions. 3 2 MODULE-UL ‘Arrays and StringsWhat is a String? Explain Declaring and Initializing of | 3 10 7 | Strings with examples 2 8 Explain 2D array with matrix addition program as an] 3 2 10 example, 9 Explain Printing of Strings with examples. 3 2 10 Explain String manipulation functions I 10 3 10 MODULE-IV Pointers & User Defined data types SN ‘Questions: CT] BL | Mark ° ° s 1 | What are the advantages of pointers in C? P23 What is syntax and example for declaring a pointer variable? +P 2 ZI - - = 3 | What is syntax and example for initializing a pointer variable? a) 2the data variable direagy a5 f T [How to access the value 0 indirectly? inter? What is the purpose of a void point i inter? 6 | What is the purpose of pointer to point 7 declaring a structure’ What is the syntax for pa variable for structure? 8.__| What is the syntax for creat - — 9. | What is the syntax for declaring a union? 10. "| What is the syntax for initializing a structure? MODULE-IV ‘| Pointers & User defined data types | SN ©] 8 ] Mar ° Of/ re | 1 [ 8) What is a pointer? Explain declaration and initialization | 4} > 3 of @ pointer in ¢ with syntax and examples, 5 b) Explain array of pointers. 3) Explain about referencing dereferencing of pointer | 4 oI 2 | variables with an examples, 3 5 b) Explain in detail about multiple indirection in C. 3° | Explain in detail about pointer arithmetic in C 43) iD ‘4 [Explain in deta sGout array manipulation using pote] 4] 3} To 3 | 8. Why do we need amcuncy ee d in C language? win a Stucture? How to declare oat intalize structure with syntax and example prowen 7 agi snzes [a0 7 10 EER ae eee[Explain about Nesting of Structures wi ‘and example program, rest sy 2 to What are the differences between structure and union. z 10 Explain about the following: 7 = a) Array of structures b) Self referential structures z MODULE-V Functions & File Handling S.N Questions C | BL | Mark 0 ° s 1 | What is a Function? 5 2 2 2. | What is Function declaration? em ee 3. | What is Function call? S|) 2m 2 4_| What isa function argument? 5] 2 2 What is the use of return statement in functions? 5 2 2 5 @ | Write a function in C that accepts two integers and return the 5 2 2 ‘Sum of them. 7 | What are the types of functions based on argumentsand return — | > | 2 2 values? 8 | What are library functions? 3|.2 p2 9. | What isa File in C? How many types are C Files? 3 2 2 10. | Differentiate Text and Binary Files in C. sfo2 [2Cy] B | Mar | oft ims | Tay What so Function? What are advantages of using |~5 | ~2 3] i functions in C? | | |b) Explain Function declaration with examples. | ; 5 | } | Explain Function definition with ‘examples. 5 110 } > Bal t= - ary | [3] Explain () Function Declaration (ii) Function Call oT 3 Saal | Ios | [¥_| Develop a C program by writing a function that finds the sy) 4] ] | maximum of two numbers. | | | | [S| Explain Function return types and arguments. sys] | |__| Explain parameter passing techniques. ~Psy,s] wv] | Fas’ | [7] Explain storage classes in C. Y s.| 3 | to | | ‘ | I [S_|@) What is @ File? Explain advantages of using files. 5 pal | b) Explain the types of files in C. [eee | | | 9] Explain the Operations on Files in C. Je ies | lo | | | T6. | Explain random access to files in G. Siig | ete |
You might also like
CS8251 Programming in C-Question Bank With Answer Keys
PDF
81% (53)
CS8251 Programming in C-Question Bank With Answer Keys
40 pages
CP_Viva_Questions_First_Year_Engineering_v3
PDF
No ratings yet
CP_Viva_Questions_First_Year_Engineering_v3
5 pages
Ipl Notes
PDF
No ratings yet
Ipl Notes
9 pages
Computer Programming Question Bank: Constant, or A String Literal. There Are Also Enumeration Constants As Well
PDF
No ratings yet
Computer Programming Question Bank: Constant, or A String Literal. There Are Also Enumeration Constants As Well
22 pages
c programmimg Answer
PDF
No ratings yet
c programmimg Answer
40 pages
QUESTION BANK V UNITS
PDF
No ratings yet
QUESTION BANK V UNITS
22 pages
CP Unit Ii QB
PDF
No ratings yet
CP Unit Ii QB
24 pages
C Programming
PDF
No ratings yet
C Programming
19 pages
oops qb sem 3
PDF
No ratings yet
oops qb sem 3
37 pages
Unit - I (2 Marks)
PDF
No ratings yet
Unit - I (2 Marks)
9 pages
Report Mayank
PDF
No ratings yet
Report Mayank
26 pages
Programming in C - SAE1A
PDF
No ratings yet
Programming in C - SAE1A
33 pages
Advanced C 2 Marks
PDF
No ratings yet
Advanced C 2 Marks
25 pages
CS3353 QB - Question Bank
PDF
No ratings yet
CS3353 QB - Question Bank
60 pages
Top 100 C Programming Interview Questions Amp Answers 2022
PDF
No ratings yet
Top 100 C Programming Interview Questions Amp Answers 2022
16 pages
CP Viva Question by MUSA NEP 2020
PDF
No ratings yet
CP Viva Question by MUSA NEP 2020
7 pages
cs3353-qb-question-bank
PDF
No ratings yet
cs3353-qb-question-bank
60 pages
UNIT - 2 C' Programming Basics Part - A (2mark Questions)
PDF
No ratings yet
UNIT - 2 C' Programming Basics Part - A (2mark Questions)
7 pages
cs3353-qb-question-bank
PDF
No ratings yet
cs3353-qb-question-bank
60 pages
Sample of C Question & Answer
PDF
No ratings yet
Sample of C Question & Answer
12 pages
PSCP QB (2 Marks) (1-5)
PDF
No ratings yet
PSCP QB (2 Marks) (1-5)
23 pages
ITP Short Answer Questions (AutoRecovered)
PDF
No ratings yet
ITP Short Answer Questions (AutoRecovered)
6 pages
C One Mark Questions
PDF
No ratings yet
C One Mark Questions
2 pages
Unit 1 PDF
PDF
No ratings yet
Unit 1 PDF
29 pages
C Interview Question Answers
PDF
No ratings yet
C Interview Question Answers
36 pages
Introduction to Programming Important Revised Questions
PDF
No ratings yet
Introduction to Programming Important Revised Questions
5 pages
C Programming Interview Questions
PDF
No ratings yet
C Programming Interview Questions
8 pages
Unit 1 CS3353 - C Programming and Data Structures
PDF
100% (2)
Unit 1 CS3353 - C Programming and Data Structures
6 pages
CTSD QUESTION BANK
PDF
No ratings yet
CTSD QUESTION BANK
3 pages
Vimp 4M Que
PDF
No ratings yet
Vimp 4M Que
15 pages
c lang Q
PDF
No ratings yet
c lang Q
9 pages
Programming in C DR P Rizwan Ahmed
PDF
50% (2)
Programming in C DR P Rizwan Ahmed
8 pages
MKR
PDF
No ratings yet
MKR
34 pages
Unit2-2marks
PDF
No ratings yet
Unit2-2marks
9 pages
CIA 2 QUESTION BANK
PDF
No ratings yet
CIA 2 QUESTION BANK
20 pages
C Viva Questions
PDF
No ratings yet
C Viva Questions
8 pages
Studentnotes C
PDF
No ratings yet
Studentnotes C
29 pages
CPDS Unit 1 QB
PDF
No ratings yet
CPDS Unit 1 QB
6 pages
C PROGRAM VIVA
PDF
No ratings yet
C PROGRAM VIVA
10 pages
Programming in C
PDF
No ratings yet
Programming in C
48 pages
Unit 01 Part1 Notes
PDF
No ratings yet
Unit 01 Part1 Notes
180 pages
C Prog Handouts
PDF
100% (1)
C Prog Handouts
16 pages
Dca1102 - Programming in C
PDF
No ratings yet
Dca1102 - Programming in C
12 pages
CP Viva
PDF
No ratings yet
CP Viva
14 pages
Amazon Coding Placement Paper
PDF
No ratings yet
Amazon Coding Placement Paper
10 pages
Top 40 C Programming Interview Questions and Answers
PDF
No ratings yet
Top 40 C Programming Interview Questions and Answers
8 pages
Questions
PDF
No ratings yet
Questions
12 pages
Important 2 Marks and 16 Marks Question Data Stuructures Using C - PUCS3BE01 Unit - 1 to 5-1
PDF
No ratings yet
Important 2 Marks and 16 Marks Question Data Stuructures Using C - PUCS3BE01 Unit - 1 to 5-1
29 pages
II H&s Cs3251 Pic QB Unit-1-1
PDF
No ratings yet
II H&s Cs3251 Pic QB Unit-1-1
8 pages
C Interview Questions
PDF
100% (1)
C Interview Questions
12 pages
C Language Tutorial
PDF
No ratings yet
C Language Tutorial
15 pages
PST Unit 2
PDF
No ratings yet
PST Unit 2
8 pages
Ttgg
PDF
No ratings yet
Ttgg
9 pages
C PROGRAMMING
PDF
No ratings yet
C PROGRAMMING
11 pages
C Programming SQA
PDF
No ratings yet
C Programming SQA
16 pages
Ap Question Bank With Answers
PDF
No ratings yet
Ap Question Bank With Answers
34 pages
Six Weeks Summer Training On C Programming
PDF
No ratings yet
Six Weeks Summer Training On C Programming
17 pages
Programming in C
PDF
No ratings yet
Programming in C
9 pages