IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.
|
|
- Aubrie Johnston
- 5 years ago
- Views:
Transcription
1 Subject code - CCP01 Chapt Chapter 1 INTRODUCTION TO C 1. A group of software developed for certain purpose are referred as ---- a. Program b. Variable c. Software d. Data 2. Software is classified into types. a. 2 b. 3 c. 4 d. None software is for specific application. a. System b. Application c. Program d. Data 4. C was developed in the year a b c d C was developed by IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23. a. BjarneStroustrup b. Dennis Ritchie b.james Gosling d. Ken Thompson 6. B language was developed in the year a b c d C was developed as at a. A & T Bell Labs b. AT & T Bell Labs b. T & T Bell Labs d. Sun Micro Systems 8. The name C was derived from the languages a. B & CPL b. CPL & C++ c. B & BCPL d. C & C# 9. C language is a a. Interpreter b. Compiler c. Loader d. Data 10. Executable code will have the extension a..ex b..exe c. exe d. ex 11. Set of characters is known as set. a. Character b. Constant c. Variable d. Data 12. Variables are otherwise called as a. Identifiers b. Literals c. Input d. None
2 13. A variable can start with a. Underscore b. Alphabets c. Both a & b d. None 14. Choose the odd one out. a. _sum b. sum c. For d. 1total 15. Totally there are keywords in C. a. 32 b. 33 c. 34 d Among the following which cannot be used as a variable name (as it is)? a. Keywords b. Constants c. Both a & b d. None 17. The quantity that doesn t change is called as a. Variables b. Constants c. Expressions d. Data 18. Data types can be broadly classified into types. a. 2 b. 3 c. 4 d. None 19. Totally there are derived data types. a. 2 b. 3 c. 4 d To specify the number of bits used for representing the respective type of data in memory, we use a. Variables b. Constants c. Qualifiers d. Array 21. Generally float data type uses bits and double uses bits. a. 64 & 32 b. 32 & 64 c. 32 &28 d. 32 & The constant that has only rounded number/s is called as a. Integer b. Floating c. Double d. Char 23. In general, constants are of types. a. 2 b. 3 c. 4 d. None 24. Choose the odd one out. a b. 6752ul c. 6000u d In floating point constant, exponent part is called as a. Decimal b. Fraction c. Mantissa d. None 26. In a floating point constant, there must be minimum of digit(s) after decimal point. a. 1 b. 2 c. 3 d Any character/s enclosed within is called as character constant. a. b. c. { } d. [ ]
3 28. String constant will have as its last character. a. \0 b. 0 c. \O d. O 29. All the escape sequence characters are prefixed by a. \\ b. \ c. // d. / 30. Local variables are declared at the start of the a. main b. block code c. loop d. function 31. A variable that is accessible throughout the program is called as variable. a. Local b. Public c. Global d. Function variable is initialised only once. a. Local b. Public c. Global d. static 33. Static variables are initialised to a. 0 b. 1 c. 2 d Header files will have the extension a..h b..exe c..c d..cpp 35. Pre-processor directive starts with a. # b. ## c. $ d. * 36. We can convert the values of one data type to other through c. Expression b. Type casting c. Operator d. syntax 37. Format of writing a program statement is popularly called as a. Format b. Syntax c. Loop d. Value 38. Every program statement is terminated by a. ; ; b. : c. ; d. : : 39. The execution of the C program starts from a. Variable b. main ( ) c. Loop d. Constant 40. Tokens are of types. a. 3 b. 4 c. 5 d Comment commences with a. /* b. // c. a or b d. None 42. Escape sequence character that produces bell sound is a. \a b. \b c. /a d. /b 43. Escape sequence character for vertical and horizontal space is a. \n & \t b. \t & \n c. /n & /t d. /t & /n
4 44. The body of the main( ) function is enclosed within a. [ ] b. { } c. <> d. ( ) 45. Programs written by the user is called as code. a. Source b. Object c. ASCII d. EBCDIC 46. Formatting character for integer data type is a. \d b. %d c. \D d. %D 47. Programs which is in machine readable form is called as code. a. Source b. Object c. ASCII d. EBCDIC 48. While writing a program in any programming language, there can be possibly only errors. a. 2 b. 3 c. 4 d Persons writing / developing programs are called a. Analysts b. Programmers c. Debuggers d. Tester 50. Formatting character for character data type is a. %c b. %C c. %s d. %S 51. Removing the errors in a program is called as a. Executing b. Debugging c. Compiling d. Bugs 52. Which of the statement is true in related to C programming? a. C is a machine dependent language b. C is a non-case sensitive language c. C is a specific purpose language d. C has the feature of portability. 53. Which is the default header file in C? a. conio.h b. stdio.h c. string.h d. None 54. Variables declared above the main( ) function is called as variable. a. Local b. Function c. Global d. File 55. Statement, used to read values is a. printf b. scanf c. putchar d. gets 56. C Programs are converted into machine language with the help of a. Operating system b. Interpreter c. Compiler d. None 57. C program is saved with extension a..cpp b..basic c..c++ d..c
5 58. & are the short cut keys to compile & run C program. a. Alt + F9, Ctrl + F9 b. Ctrl + F9, Alt + F c. Ctrl + F8, Alt + R + R d. Alt + F8, Ctrl + F is the pointer operator and is the address operator. a. & and * b. * and& c. & and & d. * and $ Chapter 2 OPERATORS, CONTROL STRUCTURES AND LOOPING defines an operation to be performed. a. Operators b. Expressions c. Variables d. Data 2. Consider, int L = a + b; The variable is a. L b. a c. b d. All of these 3. Simple assignment is denoted by a. = = b. = c. += d. -= 4. Find the final value in the expression, int a=8, b=9, c; c = a b; a. 16 b. 17 c. 18 d. error 5. Relational operator returns the value a. 0 or 1 b. -1 or +1 c. +1 or -1 d. Address 6. Consider, int a = 4; a++; now the value of á is a. 4 b. 5 c. -4 d Consider, int x=6, y=-8; (x > y)? Good : Bye ; a. Good b. Bye c. GoodBye d. Error 8. Unary operator requires, operands. a. 2 b. 1 c. many d. None 9. Based on the operand requirements, operators can be classified into a. 2 b. 3 c. 4 d Conditional operator requires operands to produce a value. a. 2 b. 3 c. 4 d operators are used to manipulate data at bit level. a. Logical b. bit wise c. Shit bitwise d. None
6 12. When both the inputs (conditions) are false, the output is also false. This is done by operator. a. AND b. OR c. NOT d. Unary 13. In a single assignment statement, to make multiple assignments, for multiple variable, we use operator. a. Unary b. Comma c. Bitwise d. None 14. Right shift and left shift are represented by a. <<, >> b. <, > c. >>, << d. >, < 15. Find the final value, after applying operator precedence. Sum = x y/3 + z * 3-2; if x=3, y=9, z=77. a. 231 b. 229 c. 227 d Repeating a set process again and again is done by a. Constants b. Variables c. Programs d. Loops 17. In if..else statement, part is always optional. a. Condition b. output c. else d. if 18. for loop is otherwise called as loop. c. Entry check b. Exit check c. Entry Controlled d. Nested loop 19. In for loop, there are clauses. a. 2 b. 3 c. 4 d. many 20. for loop uses to separate its clauses. a. : b. :: c. ;; d. ; 21. In for loop, clauses are optional. a. 2 b. 3 c. 4 d. many 22. A for loop that has no clause will result in generation of a. Indefinite loop b. error c. no output d. none 23. In which loop, the statements will get executed, irrespective of the condition given? a. for b. while c. do..while d. if 24. In a nested loop, if the running variable of both the inner and outer loop are same, it leads to error. a. Syntax b. Logical c. Compiling d. None 25. Which operator always give the opposite output based on the input? a. AND b. OR c. NOT d. Unary
7 26. Choose the odd one out. a. > b. < c. = d. = = 27. Example for multiple branching statement is a. switch b. if..else c. do..while d. if 28. switch statement s expression must be of data type. a. char b. float c. double d. int statement is used to exit out of the loop at any point of time. a. continue b. break c. do d. go..to 30. Choose the incorrect statement. a. In if..else statement, else is optional. b. If more than one statement is to be specified, { } are compulsory. c. If the condition is false, else part gets executed. d. If need be, in else part also user can specify a condition. 31. Among the following, which loop should be terminated? a. for b. while c. do..while d. if 32. Simple decision making statement is a. if..else b. while c. do..while d. if 33. Conditional operator will have the precedence a. Left to right b. right to left c. no precedence d. depends on the input 34. Output ofsizeof( GOOD ); is a. 4 b. 2 bytes c. 3 d. Error 35. In general, C has special operators. a. 2 b. 3 c. 4 d In switch statement, statement is always optional. a. break b. default c. switch d. case 37. In switch statement, case is terminated by a. ; b. ;; c. : d. : : 38. When both the inputs (conditions) are true andfalse, the output is true. This is done by operator. a. AND b. OR c. NOT d. Unary
8 39. Choose the most correct statement. a. Variable/s can be assigned values. b. Variable/s can be variable. c. Variable/s can be assigned expression. d. All the above are true. 40. Consider, int a = 90, b=120, c=0; ifc = a / b; then value of c is a. 90 b. 0 c d. Error Chapter 3 ARRAYS 1. Array is a data type. a. Derived b. Primitive c. User defined d. int 2. In general, arrays can be classified into types. a. 2 b. 3 c. 4 d. many 3. Consider the array intt_d[2][3];, here the memory size of the array is ---. a. 6 b. 12 c. 5 d Array subscript starts with and ends with a. 0 to n-1 b. 0 to 100 c. 1 to n-1 d. 1 to Array subscript cannot be -----, a. Integer b. String c. Negative d. char 6. String array will be terminated by -----character. a. \0 b. 0 c. \O d. O 7. Consider the array intt_d[2][3];, here the size of the array is a. 6 b. 12 c. 5 d Choose the statement which is most correct in related to arrays. a. Arrays doesn t store the values consecutive memory location. b. Arrays fall under derived data type. c. Arrays are homogeneous group of elements. d. Both b & c. 9. Array subscripts are always enclosed within a. { } b. ( ) c. [ ] d.
9 is a popular application for double dimensional arrays. a. Sorting b. Searching c. Matrix d. Files 11. In a double dimensional array, first subscript always refer a a. Column b. Output c. Input d. Row 12. Consider the array, intx[5] = {7, 8, 9 10, 11}; The value stored in the address 2 is a. 9 b. 8 c. 0 d. Error 13. Always string will be treated as dimensional array. a. Multi b. single c. Both a & b d. None 14. Which of the following reads a string? a. gets( ) b. getchar( ) c. scanf( ) d. None 15. When a new line is read of string type, it is replaced by the delimeter ---. a. EOF b. \0 c. /0 d loop is mostly used for manipulating arrays. a. do..while b. for c. while d. if Chapter 4 FUNCTIONS 1. Execution of the program starts from a. Pre-processor directive c. main( ) function b. Global variable d. printf( ) statement is important to any function that returns result. a. printf( ) b. scanf ( ) c. return d. void 3. Functions that doesn t return any value/s will be declared as a. printf( ) b. scanf ( ) c. return d. void 4. Function that calls itself is called as a. User defined function c. void function b. Recursive function d. All the above 5. Parameters are always enclosed within a. [ ] b. ( ) c. { } d. <> 6. Generally functions are divided into types. a. 2 b. 3 c. 4 d. 5
10 functions are predefined and supplied along with the compiler. a. User defined b. built in c. void d. none 8. An followed by the open parenthesis is recognized as a function by the compiler. a. Identifier b. constants c. tokens d. loops declares the function name and its parameters. a. Data type b. output c. prototype d. input 10. Body of the function is always included within a. [ ] b. ( ) c. { } d. <> 11. Parameters of a function is otherwise called as a. Arguments b. output c. input d. data 12. Every function is identified by a. Parameters b. Function name c. input d. void 13. sqrt( ) is included in the header file a. math.h b. stdio.h c. conio.h d. None 14. pow(2, 4) will give the output a. 8 b. 16 c. 8.0 d main( ) function returns data type. a. char b. int c. double d. float 16. In method, function being invoked receives only copies of the argument values and not the arguments. a. Call by value c. Call by reference b. void function d. recursive function 17. main( ) function returns value. a. 0 b. 1 c. -1 d Which of the following function executes slowly? a. Call by value c. Call by reference b. void function d. recursive function 19. To process the recursion, we need a. Stacks b. Queues c. Trees d. None 20. All the string functions are included under a. string.h b. stdio.h c. conio.h d. None
11 21. strcpy( ) function copies to a. string 1 to string 2 c. string 2 to string 1 b. string 1 to buffer d. string 2 to buffer 22. pow( ) function requires parameters. a. 2 b. 3 c. n d. n abs(-3); will return the value a. 3.0 b. 3 c. 4 d floor(3.4); will give the value a. 4 b. 3.3 c. 3 d abs(); is included in a. stdilib.h b. stdio.h c. conio.h d. None Chapter 5 POINTERS refers to the memory address of the variable. a. Pointers b. structures c. stacks d. None is the address operator. a. * b. & c. d..* 3. Pointers will return the address as value. a. Binary b. Hexadecimal c. Octal d. None 4. Choose the pointer variable. a. int&a; b. int a; c. int *a; d. int a*; 5. A pointer contains value until it is initialized. a. Hexadecimal b. garbage c. Octal d. None
12 Answers: UNIT I 1.c 2.a 3.b 4. c 5. b 6. a 7.b 8. c 9.b 10. b 11. a 12.a 13.c 14.d 15.a 16.a 17.b 18.a 19.d 20.c 21.b 22.a 23.b 24.d 25.c 26.a 27.a 28.a 29.b 30.b 31.c 32.d 33.a 34.a 35.a 36.b 37.b 38.c 39.b 40.c 41.c 42.a 43.b 44.b 45.a 46.b 47.b 48.a 49.b 50.a 51.b 52.d 53.b 54.c 55.b 56.c 57.d 58.a 59.a UNIT II 1.a 2.a 3.b 4. a 5. a 6. a 7.a 8. b 9.b 10. b 11. b 12.a 13.b 14.c 15.b 16.d 17.c 18.c 19.b 20.d 21.b 22.a 23.c 24.b 25.c 26.c 27.a 28.d 29.b 30.d 31.c 32.c 33.a 34.a 35.d 36.b 37.c 38.b 39.d 40.b UNIT III 1.a 2.a 3.b 4. a 5. c 6. a 7.a 8. d 9.c 10. c 11. d 12.a 13.b 14.a 15.b 16.b UNIT IV 1.c 2.c 3.d 4. b 5. b 6. a 7.b 8. a 9.a 10. c 11. a 12.b 13.a 14.b 15.b 16.a 17.a 18.d 19.a 20.a 21.c 22.a 23.b 24.c 25.a UNIT IV 1.a 2.b 3.b 4. c 5. b
I BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions.
1 of 22 8/4/2018, 4:03 PM Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Reaccredited at the 'A' Grade Level by the NAAC and ISO 9001:2008
More informationC Programming Multiple. Choice
C Programming Multiple Choice Questions 1.) Developer of C language is. a.) Dennis Richie c.) Bill Gates b.) Ken Thompson d.) Peter Norton 2.) C language developed in. a.) 1970 c.) 1976 b.) 1972 d.) 1980
More informationComputers Programming Course 5. Iulian Năstac
Computers Programming Course 5 Iulian Năstac Recap from previous course Classification of the programming languages High level (Ada, Pascal, Fortran, etc.) programming languages with strong abstraction
More informationB.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University
Unit 1 Programming Language and Overview of C 1. State whether the following statements are true or false. a. Every line in a C program should end with a semicolon. b. In C language lowercase letters are
More informationFeatures of C. Portable Procedural / Modular Structured Language Statically typed Middle level language
1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC
More informationMultiple Choice Questions ( 1 mark)
Multiple Choice Questions ( 1 mark) Unit-1 1. is a step by step approach to solve any problem.. a) Process b) Programming Language c) Algorithm d) Compiler 2. The process of walking through a program s
More informationPresented By : Gaurav Juneja
Presented By : Gaurav Juneja Introduction C is a general purpose language which is very closely associated with UNIX for which it was developed in Bell Laboratories. Most of the programs of UNIX are written
More informationQ1. Multiple Choice Questions
Rayat Shikshan Sanstha s S. M. Joshi College, Hadapsar Pune-28 F.Y.B.C.A(Science) Basic C Programing QUESTION BANK Q1. Multiple Choice Questions 1. Diagramatic or symbolic representation of an algorithm
More informationCOMPUTER SCIENCE HIGHER SECONDARY FIRST YEAR. VOLUME II - CHAPTER 10 PROBLEM SOLVING TECHNIQUES AND C PROGRAMMING 1,2,3 & 5 MARKS
COMPUTER SCIENCE HIGHER SECONDARY FIRST YEAR VOLUME II - CHAPTER 10 PROBLEM SOLVING TECHNIQUES AND C PROGRAMMING 1,2,3 & 5 MARKS S.LAWRENCE CHRISTOPHER, M.C.A., B.Ed., LECTURER IN COMPUTER SCIENCE PONDICHERRY
More informationUNIT - I. Introduction to C Programming. BY A. Vijay Bharath
UNIT - I Introduction to C Programming Introduction to C C was originally developed in the year 1970s by Dennis Ritchie at Bell Laboratories, Inc. C is a general-purpose programming language. It has been
More informationC Language, Token, Keywords, Constant, variable
C Language, Token, Keywords, Constant, variable A language written by Brian Kernighan and Dennis Ritchie. This was to be the language that UNIX was written in to become the first "portable" language. C
More informationFundamental Data Types. CSE 130: Introduction to Programming in C Stony Brook University
Fundamental Data Types CSE 130: Introduction to Programming in C Stony Brook University Program Organization in C The C System C consists of several parts: The C language The preprocessor The compiler
More informationC-LANGUAGE CURRICULAM
C-LANGUAGE CURRICULAM Duration: 2 Months. 1. Introducing C 1.1 History of C Origin Standardization C-Based Languages 1.2 Strengths and Weaknesses Of C Strengths Weaknesses Effective Use of C 2. C Fundamentals
More informationFundamentals of C Programming
Introduction, Constants, variables, keywords, Comments, I/O Functions, Data types, Compilation & Execution Tejalal Choudhary tejalal.choudhary@gmail.com, tejalal.choudhary@sdbct.ac.in Department of Computer
More informationIntroduction to C Language
Introduction to C Language Instructor: Professor I. Charles Ume ME 6405 Introduction to Mechatronics Fall 2006 Instructor: Professor Charles Ume Introduction to C Language History of C Language In 1972,
More informationVariables Data types Variable I/O. C introduction. Variables. Variables 1 / 14
C introduction Variables Variables 1 / 14 Contents Variables Data types Variable I/O Variables 2 / 14 Usage Declaration: t y p e i d e n t i f i e r ; Assignment: i d e n t i f i e r = v a l u e ; Definition
More informationJava Notes. 10th ICSE. Saravanan Ganesh
Java Notes 10th ICSE Saravanan Ganesh 13 Java Character Set Character set is a set of valid characters that a language can recognise A character represents any letter, digit or any other sign Java uses
More informationC Language Part 1 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee
C Language Part 1 (Minor modifications by the instructor) References C for Python Programmers, by Carl Burch, 2011. http://www.toves.org/books/cpy/ The C Programming Language. 2nd ed., Kernighan, Brian,
More informationM1-R4: Programing and Problem Solving using C (JULY 2018)
M1-R4: Programing and Problem Solving using C (JULY 2018) Max Marks: 100 M1-R4-07-18 DURATION: 03 Hrs 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter
More informationUNIT- 3 Introduction to C++
UNIT- 3 Introduction to C++ C++ Character Sets: Letters A-Z, a-z Digits 0-9 Special Symbols Space + - * / ^ \ ( ) [ ] =!= . $, ; : %! &? _ # = @ White Spaces Blank spaces, horizontal tab, carriage
More informationTechnical Questions. Q 1) What are the key features in C programming language?
Technical Questions Q 1) What are the key features in C programming language? Portability Platform independent language. Modularity Possibility to break down large programs into small modules. Flexibility
More informationMain Program. C Programming Notes. #include <stdio.h> main() { printf( Hello ); } Comments: /* comment */ //comment. Dr. Karne Towson University
C Programming Notes Dr. Karne Towson University Reference for C http://www.cplusplus.com/reference/ Main Program #include main() printf( Hello ); Comments: /* comment */ //comment 1 Data Types
More informationProgramming in C and Data Structures [15PCD13/23] 1. PROGRAMMING IN C AND DATA STRUCTURES [As per Choice Based Credit System (CBCS) scheme]
Programming in C and Data Structures [15PCD13/23] 1 PROGRAMMING IN C AND DATA STRUCTURES [As per Choice Based Credit System (CBCS) scheme] Course objectives: The objectives of this course is to make students
More informationSubject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100
Code: DC-05 Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100 NOTE: There are 11 Questions in all. Question 1 is compulsory and carries 16 marks. Answer to Q. 1. must be written in the space
More informationAbout Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals
More informationBCA-105 C Language What is C? History of C
C Language What is C? C is a programming language developed at AT & T s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. C seems so popular is because it is
More informationVARIABLES AND CONSTANTS
UNIT 3 Structure VARIABLES AND CONSTANTS Variables and Constants 3.0 Introduction 3.1 Objectives 3.2 Character Set 3.3 Identifiers and Keywords 3.3.1 Rules for Forming Identifiers 3.3.2 Keywords 3.4 Data
More informationThese are reserved words of the C language. For example int, float, if, else, for, while etc.
Tokens in C Keywords These are reserved words of the C language. For example int, float, if, else, for, while etc. Identifiers An Identifier is a sequence of letters and digits, but must start with a letter.
More informationCSCI 171 Chapter Outlines
Contents CSCI 171 Chapter 1 Overview... 2 CSCI 171 Chapter 2 Programming Components... 3 CSCI 171 Chapter 3 (Sections 1 4) Selection Structures... 5 CSCI 171 Chapter 3 (Sections 5 & 6) Iteration Structures
More informationUNIT IV 2 MARKS. ( Word to PDF Converter - Unregistered ) FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING
( Word to PDF Converter - Unregistered ) http://www.word-to-pdf-converter.net FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING INTRODUCTION TO C UNIT IV Overview of C Constants, Variables and Data Types
More informationM4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE
M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be
More informationLexical Considerations
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Fall 2005 Handout 6 Decaf Language Wednesday, September 7 The project for the course is to write a
More informationDifferentiate Between Keywords and Identifiers
History of C? Why we use C programming language Martin Richards developed a high-level computer language called BCPL in the year 1967. The intention was to develop a language for writing an operating system(os)
More informationFundamental of Programming (C)
Borrowed from lecturer notes by Omid Jafarinezhad Fundamental of Programming (C) Lecturer: Vahid Khodabakhshi Lecture 3 Constants, Variables, Data Types, And Operations Department of Computer Engineering
More informationFundamentals of Programming
Fundamentals of Programming Lecture 3 - Constants, Variables, Data Types, And Operations Lecturer : Ebrahim Jahandar Borrowed from lecturer notes by Omid Jafarinezhad Outline C Program Data types Variables
More informationProgramming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan
Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah Lecturer Department of Computer Science & IT University of Balochistan 1 Outline p Introduction p Program development p C language and beginning with
More informationKARMAYOGI ENGINEERING COLLEGE, Shelve Pandharpur
KARMAYOGI ENGINEERING COLLEGE, Shelve Pandharpur Bachelor of Engineering First Year Subject Name: Computer Programming Objective: 1. This course is designed to provide a brief study of the C programming
More informationComputer System and programming in C
1 Basic Data Types Integral Types Integers are stored in various sizes. They can be signed or unsigned. Example Suppose an integer is represented by a byte (8 bits). Leftmost bit is sign bit. If the sign
More informationCCE RR REVISED & UN-REVISED KARNATAKA SECONDARY EDUCATION EXAMINATION BOARD, MALLESWARAM, BANGALORE G È.G È.G È..
CCE RR REVISED & UN-REVISED B O %lo ÆË v ÃO y Æ fio» flms ÿ,» fl Ê«fiÀ M, ÊMV fl 560 003 KARNATAKA SECONDARY EDUCATION EXAMINATION BOARD, MALLESWARAM, BANGALORE 560 003 G È.G È.G È.. Æ fioê, d È 2018 S.
More informationWork relative to other classes
Work relative to other classes 1 Hours/week on projects 2 C BOOTCAMP DAY 1 CS3600, Northeastern University Slides adapted from Anandha Gopalan s CS132 course at Univ. of Pittsburgh Overview C: A language
More informationBasic Elements of C. Staff Incharge: S.Sasirekha
Basic Elements of C Staff Incharge: S.Sasirekha Basic Elements of C Character Set Identifiers & Keywords Constants Variables Data Types Declaration Expressions & Statements C Character Set Letters Uppercase
More informationPART I. Part II Answer to all the questions 1. What is meant by a token? Name the token available in C++.
Unit - III CHAPTER - 9 INTRODUCTION TO C++ Choose the correct answer. PART I 1. Who developed C++? (a) Charles Babbage (b) Bjarne Stroustrup (c) Bill Gates (d) Sundar Pichai 2. What was the original name
More informationDEPARTMENT OF MATHS, MJ COLLEGE
T. Y. B.Sc. Mathematics MTH- 356 (A) : Programming in C Unit 1 : Basic Concepts Syllabus : Introduction, Character set, C token, Keywords, Constants, Variables, Data types, Symbolic constants, Over flow,
More informationFundamental of C programming. - Ompal Singh
Fundamental of C programming - Ompal Singh HISTORY OF C LANGUAGE IN 1960 ALGOL BY INTERNATIONAL COMMITTEE. IT WAS TOO GENERAL AND ABSTRUCT. IN 1963 CPL(COMBINED PROGRAMMING LANGUAGE) WAS DEVELOPED AT CAMBRIDGE
More informationComputers Programming Course 6. Iulian Năstac
Computers Programming Course 6 Iulian Năstac Recap from previous course Data types four basic arithmetic type specifiers: char int float double void optional specifiers: signed, unsigned short long 2 Recap
More informationDETAILED SYLLABUS INTRODUCTION TO C LANGUAGE
COURSE TITLE C LANGUAGE DETAILED SYLLABUS SR.NO NAME OF CHAPTERS & DETAILS HOURS ALLOTTED 1 INTRODUCTION TO C LANGUAGE About C Language Advantages of C Language Disadvantages of C Language A Sample Program
More informationStructure of this course. C and C++ Past Exam Questions. Text books
Structure of this course C and C++ 1. Types Variables Expressions & Statements Alastair R. Beresford University of Cambridge Lent Term 2008 Programming in C: types, variables, expressions & statements
More informationDepartment of Computer Applications
Sheikh Ul Alam Memorial Degree College Mr. Ovass Shafi. (Assistant Professor) C Language An Overview (History of C) C programming languages is the only programming language which falls under the category
More informationData Types and Variables in C language
Data Types and Variables in C language Basic structure of C programming To write a C program, we first create functions and then put them together. A C program may contain one or more sections. They are
More informationARG! Language Reference Manual
ARG! Language Reference Manual Ryan Eagan, Mike Goldin, River Keefer, Shivangi Saxena 1. Introduction ARG is a language to be used to make programming a less frustrating experience. It is similar to C
More informationWriting an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and
Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and #include The Use of printf() and scanf() The Use of printf()
More informationCourse Outline Introduction to C-Programming
ECE3411 Fall 2015 Lecture 1a. Course Outline Introduction to C-Programming Marten van Dijk, Syed Kamran Haider Department of Electrical & Computer Engineering University of Connecticut Email: {vandijk,
More informationIntroduction to C. History of C:
History of C: Introduction to C C is a structured/procedure oriented, high-level and machine independent programming language. The root of all modern languages is ALGOL, introduced in the early 1960. In
More informationAryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9
Fundamental of C Programming Unit I: Q1. What will be the value of the following expression? (2017) A + 9 Q2. Write down the C statement to calculate percentage where three subjects English, hindi, maths
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationCS6202 - PROGRAMMING & DATA STRUCTURES UNIT I Part - A 1. W hat are Keywords? Keywords are certain reserved words that have standard and pre-defined meaning in C. These keywords can be used only for their
More informationModel Viva Questions for Programming in C lab
Model Viva Questions for Programming in C lab Title of the Practical: Assignment to prepare general algorithms and flow chart. Q1: What is a flowchart? A1: A flowchart is a diagram that shows a continuous
More informationPreface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS
Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...
More informationCharacter Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9
Character Set The character set of C represents alphabet, digit or any symbol used to represent information. Types Uppercase Alphabets Lowercase Alphabets Character Set A, B, C, Y, Z a, b, c, y, z Digits
More informationObject oriented programming. Instructor: Masoud Asghari Web page: Ch: 3
Object oriented programming Instructor: Masoud Asghari Web page: http://www.masses.ir/lectures/oops2017sut Ch: 3 1 In this slide We follow: https://docs.oracle.com/javase/tutorial/index.html Trail: Learning
More informationLESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are:
LESSON 1 FUNDAMENTALS OF C The purpose of this lesson is to explain the fundamental elements of the C programming language. C like other languages has all alphabet and rules for putting together words
More informationPROGRAMMING FUNDAMENTALS
PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write
More information1 Lexical Considerations
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Spring 2013 Handout Decaf Language Thursday, Feb 7 The project for the course is to write a compiler
More informationChapter1 Overview of computers
1 Chapter1 Overview of computers 1. What is a computer? 2. Which is the earliest computing machine? 3. Who invented the pascaline? 4. What is Charles babbage known as? 5. What is the machine proposed by
More informationCS113: Lecture 3. Topics: Variables. Data types. Arithmetic and Bitwise Operators. Order of Evaluation
CS113: Lecture 3 Topics: Variables Data types Arithmetic and Bitwise Operators Order of Evaluation 1 Variables Names of variables: Composed of letters, digits, and the underscore ( ) character. (NO spaces;
More information(heavily based on last year s notes (Andrew Moore) with thanks to Alastair R. Beresford. 1. Types Variables Expressions & Statements 2/23
Structure of this course Programming in C: types, variables, expressions & statements functions, compilation, pre-processor pointers, structures extended examples, tick hints n tips Programming in C++:
More information6.096 Introduction to C++ January (IAP) 2009
MIT OpenCourseWare http://ocw.mit.edu 6.096 Introduction to C++ January (IAP) 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. Welcome to 6.096 Lecture
More informationADARSH VIDYA KENDRA NAGERCOIL COMPUTER SCIENCE. Grade: IX C++ PROGRAMMING. Department of Computer Science 1
NAGERCOIL COMPUTER SCIENCE Grade: IX C++ PROGRAMMING 1 C++ 1. Object Oriented Programming OOP is Object Oriented Programming. It was developed to overcome the flaws of the procedural approach to programming.
More informationLanguage Reference Manual simplicity
Language Reference Manual simplicity Course: COMS S4115 Professor: Dr. Stephen Edwards TA: Graham Gobieski Date: July 20, 2016 Group members Rui Gu rg2970 Adam Hadar anh2130 Zachary Moffitt znm2104 Suzanna
More informationOBJECTIVE QUESTIONS: Choose the correct alternative:
OBJECTIVE QUESTIONS: Choose the correct alternative: 1. Function is data type a) Primary b) user defined c) derived d) none 2. The declaration of function is called a) function prototype b) function call
More informationClass B.Com. III Sem.
SYLLABUS Class B.Com. III Sem. Subject C Programming UNIT I UNIT II UNIT III UNIT IV UNIT V Concept of structural programming, algorithm, flowchart, advantages & disadvantages of algorithm & flowchart,
More informationCSc 10200! Introduction to Computing. Lecture 2-3 Edgardo Molina Fall 2013 City College of New York
CSc 10200! Introduction to Computing Lecture 2-3 Edgardo Molina Fall 2013 City College of New York 1 C++ for Engineers and Scientists Third Edition Chapter 2 Problem Solving Using C++ 2 Objectives In this
More informationIntro to Computer Programming (ICP) Rab Nawaz Jadoon
Intro to Computer Programming (ICP) Rab Nawaz Jadoon DCS COMSATS Institute of Information Technology Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) What
More informationGuide for The C Programming Language Chapter 1. Q1. Explain the structure of a C program Answer: Structure of the C program is shown below:
Q1. Explain the structure of a C program Structure of the C program is shown below: Preprocessor Directives Global Declarations Int main (void) Local Declarations Statements Other functions as required
More informationCS1100 Introduction to Programming
CS1100 Introduction to Programming Arrays Madhu Mutyam Department of Computer Science and Engineering Indian Institute of Technology Madras Course Material SD, SB, PSK, NSN, DK, TAG CS&E, IIT M 1 An Array
More informationC OVERVIEW. C Overview. Goals speed portability allow access to features of the architecture speed
C Overview C OVERVIEW Goals speed portability allow access to features of the architecture speed C fast executables allows high-level structure without losing access to machine features many popular languages
More informationHave the same meaning as variables in algebra Single alphabetic character Each variable needs an identifier that distinguishes it from the others a =
Morteza Noferesti Have the same meaning as variables in algebra Single alphabetic character Each variable needs an identifier that distinguishes it from the others a = 5 x = a + b valid identifier in C
More informationDECLARATIONS. Character Set, Keywords, Identifiers, Constants, Variables. Designed by Parul Khurana, LIECA.
DECLARATIONS Character Set, Keywords, Identifiers, Constants, Variables Character Set C uses the uppercase letters A to Z. C uses the lowercase letters a to z. C uses digits 0 to 9. C uses certain Special
More informationShort Notes of CS201
#includes: Short Notes of CS201 The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with < and > if the file is a system
More informationProgramming. Syntax and Semantics
Programming For the next ten weeks you will learn basic programming principles There is much more to programming than knowing a programming language When programming you need to use a tool, in this case
More informationc) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance.
2.1 Introduction (No questions.) 2.2 A Simple Program: Printing a Line of Text 2.1 Which of the following must every C program have? (a) main (b) #include (c) /* (d) 2.2 Every statement in C
More informationCS201 - Introduction to Programming Glossary By
CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with
More informationMechatronics and Microcontrollers. Szilárd Aradi PhD Refresh of C
Mechatronics and Microcontrollers Szilárd Aradi PhD Refresh of C About the C programming language The C programming language is developed by Dennis M Ritchie in the beginning of the 70s One of the most
More informationFull file at C How to Program, 6/e Multiple Choice Test Bank
2.1 Introduction 2.2 A Simple Program: Printing a Line of Text 2.1 Lines beginning with let the computer know that the rest of the line is a comment. (a) /* (b) ** (c) REM (d)
More informationC: How to Program. Week /Mar/05
1 C: How to Program Week 2 2007/Mar/05 Chapter 2 - Introduction to C Programming 2 Outline 2.1 Introduction 2.2 A Simple C Program: Printing a Line of Text 2.3 Another Simple C Program: Adding Two Integers
More informationProgramming and Data Structures
Programming and Data Structures Teacher: Sudeshna Sarkar sudeshna@cse.iitkgp.ernet.in Department of Computer Science and Engineering Indian Institute of Technology Kharagpur #include int main()
More informationGoals of C "" The Goals of C (cont.) "" Goals of this Lecture"" The Design of C: A Rational Reconstruction"
Goals of this Lecture The Design of C: A Rational Reconstruction Help you learn about: The decisions that were available to the designers of C The decisions that were made by the designers of C Why? Learning
More information1 Epic Test Review 2 Epic Test Review 3 Epic Test Review 4. Epic Test Review 5 Epic Test Review 6 Epic Test Review 7 Epic Test Review 8
Epic Test Review 1 Epic Test Review 2 Epic Test Review 3 Epic Test Review 4 Write a line of code that outputs the phase Hello World to the console without creating a new line character. System.out.print(
More informationIntroduction to C programming. By Avani M. Sakhapara Asst Professor, IT Dept, KJSCE
Introduction to C programming By Avani M. Sakhapara Asst Professor, IT Dept, KJSCE Classification of Software Computer Software System Software Application Software Growth of Programming Languages History
More informationJAVA Programming Fundamentals
Chapter 4 JAVA Programming Fundamentals By: Deepak Bhinde PGT Comp.Sc. JAVA character set Character set is a set of valid characters that a language can recognize. It may be any letter, digit or any symbol
More informationNote: unless otherwise stated, the questions are with reference to the C Programming Language. You may use extra sheets if need be.
CS 156 : COMPUTER SYSTEM CONCEPTS TEST 1 (C PROGRAMMING PART) FEBRUARY 6, 2001 Student s Name: MAXIMUM MARK: 100 Time allowed: 45 minutes Note: unless otherwise stated, the questions are with reference
More informationBinghamton University. CS-120 Summer Introduction to C. Text: Introduction to Computer Systems : Chapters 11, 12, 14, 13
Introduction to C Text: Introduction to Computer Systems : Chapters 11, 12, 14, 13 Problem: Too Many Details For example: Lab 7 Bubble Sort Needed to keep track of too many details! Outer Loop When do
More information1.1 Introduction to C Language. Department of CSE
1.1 Introduction to C Language 1 Department of CSE Objectives To understand the structure of a C-Language Program To write a minimal C program To introduce the include preprocessor command To be able to
More informationC Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS
C Programming C SYLLABUS COVERAGE Introduction to Programming Fundamentals in C Operators and Expressions Data types Input-Output Library Functions Control statements Function Storage class Pointer Pointer
More informationOperators and Control Flow. CS449 Fall 2017
Operators and Control Flow CS449 Fall 2017 Running Example #include /* header file */ int main() { int grade, count, total, average; /* declaramons */ count = 0; /* inimalizamon */ total = 0;
More informationUnit-II Programming and Problem Solving (BE1/4 CSE-2)
Unit-II Programming and Problem Solving (BE1/4 CSE-2) Problem Solving: Algorithm: It is a part of the plan for the computer program. An algorithm is an effective procedure for solving a problem in a finite
More informationProgramming in C and C++
Programming in C and C++ 1. Types Variables Expressions & Statements Dr. Anil Madhavapeddy University of Cambridge (based on previous years thanks to Alan Mycroft, Alastair Beresford and Andrew Moore)
More informationLESSON 5 FUNDAMENTAL DATA TYPES. char short int long unsigned char unsigned short unsigned unsigned long
LESSON 5 ARITHMETIC DATA PROCESSING The arithmetic data types are the fundamental data types of the C language. They are called "arithmetic" because operations such as addition and multiplication can be
More informationProgramming in C++ Prof. Partha Pratim Das Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur
Programming in C++ Prof. Partha Pratim Das Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture 04 Programs with IO and Loop We will now discuss the module 2,
More informationLexical Considerations
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Spring 2010 Handout Decaf Language Tuesday, Feb 2 The project for the course is to write a compiler
More information