Q1. Multiple Choice Questions

Similar documents
B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

Questions Bank. 14) State any four advantages of using flow-chart

Multiple Choice Questions ( 1 mark)

C Programming Multiple. Choice


Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

Computers Programming Course 5. Iulian Năstac

C-LANGUAGE CURRICULAM

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath

COMPUTER SCIENCE HIGHER SECONDARY FIRST YEAR. VOLUME II - CHAPTER 10 PROBLEM SOLVING TECHNIQUES AND C PROGRAMMING 1,2,3 & 5 MARKS

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

CCE RR REVISED & UN-REVISED KARNATAKA SECONDARY EDUCATION EXAMINATION BOARD, MALLESWARAM, BANGALORE G È.G È.G È..

PART I. Part II Answer to all the questions 1. What is meant by a token? Name the token available in C++.

I BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions.

Computers Programming Course 6. Iulian Năstac

Kadi Sarva Vishwavidyalaya, Gandhinagar

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9

I Internal Examination Sept Class: - BCA I Subject: - Principles of Programming Lang. (BCA 104) MM: 40 Set: A Time: 1 ½ Hrs.

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

Review for Test 1 (Chapter 1-5)

CSCI 171 Chapter Outlines

C Language, Token, Keywords, Constant, variable

6.096 Introduction to C++ January (IAP) 2009

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE

Department of Computer Applications

Programming in C and C++

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

Main Program. C Programming Notes. #include <stdio.h> main() { printf( Hello ); } Comments: /* comment */ //comment. Dr. Karne Towson University

OBJECT ORIENTED PROGRAMMING

C Programming Class I

Software Development & Education Center C Programming

DETAILED SYLLABUS INTRODUCTION TO C LANGUAGE

Sir Muhammad Naveed. Arslan Ahmed Shaad ( ) Muhammad Bilal ( )

Structure of this course. C and C++ Past Exam Questions. Text books

C library = Header files + Reserved words + main method

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

UNIT IV 2 MARKS. ( Word to PDF Converter - Unregistered ) FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING

bphanikrishna.wordpress.com

Guide for The C Programming Language Chapter 1. Q1. Explain the structure of a C program Answer: Structure of the C program is shown below:

Chapter 1 & 2 Introduction to C Language

Lecture 02 C FUNDAMENTALS

A flow chart is a graphical or symbolic representation of a process.

DEPARTMENT OF MATHS, MJ COLLEGE

(heavily based on last year s notes (Andrew Moore) with thanks to Alastair R. Beresford. 1. Types Variables Expressions & Statements 2/23

Fundamental of C programming. - Ompal Singh

The component base of C language. Nguyễn Dũng Faculty of IT Hue College of Science

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

Chapter 2: Overview of C++

E.G.S. PILLAY ENGINEERING COLLEGE (An Autonomous Institution, Affiliated to Anna University, Chennai) Nagore Post, Nagapattinam , Tamilnadu.

These are reserved words of the C language. For example int, float, if, else, for, while etc.

C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS

Course Title: C Programming Full Marks: Course no: CSC110 Pass Marks: Nature of course: Theory + Lab Credit hours: 3

M1-R4: Programing and Problem Solving using C (JULY 2018)

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit

Fundamental Data Types. CSE 130: Introduction to Programming in C Stony Brook University

Code No: R Set No. 1

CP FAQS Q-1) Define flowchart and explain Various symbols of flowchart Q-2) Explain basic structure of c language Documentation section :

4. Inputting data or messages to a function is called passing data to the function.

AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents

Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan


Programming and Data Structure Solved. MCQs- Part 2

Tutorial No. 2 - Solution (Overview of C)

C++ is case sensitive language, meaning that the variable first_value, First_Value or FIRST_VALUE will be treated as different.

Chapter 2 - Introduction to C Programming

CHAPTER-6 GETTING STARTED WITH C++

YOLOP Language Reference Manual

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

C Language Part 1 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee

CSCE 110 PROGRAMMING FUNDAMENTALS

KARMAYOGI ENGINEERING COLLEGE, Shelve Pandharpur

Zhifu Pei CSCI5448 Spring 2011 Prof. Kenneth M. Anderson

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are:

BRANCHING if-else statements

Unit 4. Input/Output Functions

C: How to Program. Week /Mar/05

Programming in C and C++

Assignment: 1. (Unit-1 Flowchart and Algorithm)

Review of the C Programming Language for Principles of Operating Systems

Control Flow. COMS W1007 Introduction to Computer Science. Christopher Conway 3 June 2003

CS113: Lecture 3. Topics: Variables. Data types. Arithmetic and Bitwise Operators. Order of Evaluation

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

PROGRAMMING FUNDAMENTALS

Data Types and Variables in C language

Model Viva Questions for Programming in C lab

Introduction to C programming. By Avani M. Sakhapara Asst Professor, IT Dept, KJSCE

Intermediate Code Generation

Flow Control. CSC215 Lecture

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

Fundamentals of C Programming

Basics of Programming

Object-Oriented Programming

Introduction to C Programming. Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan

Introduction to Programming Using Java (98-388)

Computers Programming Course 7. Iulian Năstac

Transcription:

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 is called 1. Data-Flow diagram 2. E-R diagram 3. Flowchart 4. None of the above 2. Object oriented programming method is followed in 1. C programming language 2. C++ programming language 3. C# programming language 4.Both [2] and [3] 3.The geometrical figure shown below in flowchart represent 1. Input/Output 2. Terminator 3.Decision 4. Looping 4.The CONTINUE statemment cannot be used with 1. for 2. Switch 3. do 4. While 5. A labeled statement consist of an identifier followed by a 1. ; 2., 3. : 4. None of the above 6. How many times the loop will be executed? 1. Infinite 2. 9 3. 5 4. 0 7. Who developed the C programming language? 1. Bjarne Stroustrup 2. James Gosling 3. Dennis Ritchie 4. Ray Boyce 8. A name having a few letters, numbers and special character _(underscore) is called 1. Keywords 2. reserved keywords 3. Tokens 4. identifiers

9. The words if, else, auto, float etc. hasve predefined meaning and users cannot use them as variables. These words are called 1. Constant 2. Identifier 3. data types 4. keywords 10. Which operators are used to compare the values of operands to produce logical value in C language? 1. Logical operator 2. Relational operator 3. Assignment operator 4. None of the above 11.Which operators perform operations on data in binary level? 1. Logical operator 2. Bitwise operator 3. Additional operators 4. None of the above 12. The operator "&" is used for 1. Bitwise AND 2. Bitwise OR 3. Logical AND 4. Logical OR 13. Which are built-in data structures in C programming? 1. Arrays 2. Structures 3. Files 4. All of the above 14. The size of a character variable in C is 1. 8 bytes 2. 4 bytes 3. 2 bytes 4. 1 byte 15. By default a real number is treated as a 1. float 2. Double 3. long double 4. integer 16. The && and operators 1. compare two numeric values 2.combine two numeric valuesshort hand operator, & 3. compare two boolean values 4. none of these 17Prototype of a function means 1.Name of Function 3.Declaration of Function 2. Output of Function 4.Input of a Function 18. Which of the following is responsible for conversion of C programs to machine language 1. Operating system 2. An editor 3. A compiler 4. An interpreter

19. In C language, statement are terminated with. 1. period 2. semicolon 3. new-line character 4. none of these 20. Comma operator is an 1. Unary operator 2. Binary operator 3. Ternary operator 4. None of these 21. C is an 1. Assembly level language 2. High level language 3. Machine level language 4. None of these 22.Which of the following is not a basic data type? 1. char 2. Float 3. Long 4. double 23. Which of the following is not a valid escape sequency? a) \ r b) \ v c) \ a d) \ m 24. By default the return type of a function is a) char b) int c) float d)void 25. In C language, elements of two dimensional arrays are stored in a) Random order b)column major order c) Row major order d) None of these One Line Questions 1. What is variable? 2. What is constant? 3. How many bytes are required to store integer type value? 4. How many bytes are required to store float type value? 5. How many bytes are required to store char type value? 6. How many bytes are required to store double type value? 7. What is main difference between variable and constant? 8. What is logical variable? 9. What is global variable? 10. What are major disadvantages of machine code? 11. Which are relational operator? 12. Which are logical Operators? 13. Which are Bitwise Operators? 14. Which are unformatted input output functions? 15. Which are formatted input output functions? 16. What is the use of getchar() function? 17. What is the use of getch() function? 18. What is the use of getche() function?

19. Give syntax of simple if stmt 20. Give syntax of simple if else stmt 21. Give syntax of simple nested if else stmt? 22. Give general Syntax to declare One dimensional array 23. Give general Syntax to declare two dimensional array 24. What is function? 25. What is use of return statement? 26. What is recursive function? 27. What do you mean by call by value? 28. What do you mean by call by reference? Questions for 4 or 5 marks 1. Enlist the features of C. 2. Explain different data types used in C language? 3. Explain type identifiers in C? 4. Explain in brief structure of C programming? 5. what is operator enlist all operators used in C? 6. what is data type explain the any four data types used in C language? 7. Differentiate between relational and logical operators used in C? 8. what is variable? What are the rules for defining variables? 9. Differentiate between local variable and global variable? 10. Explain symbolic constan5ts used in C? 11. Explain any two bitwise operator with suitable example. 12. Explain logical operators and expressions used in C? 13. Explain the following g functions i)getch() and ii) clrscr() 14. Explain printf() function with an example 15. Explain scanf() function with an example 16. Explain syntax and use of Do While statement 17. Which looping statements does C provides?explain any one. 18.Explain switch statement with its syntax and example. 19.What is array? How to declare array?explain with suitable example. 20. Expalin one dimensional array with an example 21. Explain Two dimensional array with an example 22. Explain applications of array 23. What is the difference between call by value and call by reference. 24. Explain the use of Typedef. 25. What is a function? 26. What are enumerations? 27. What is recursion?

28. What are C tokens? 29. Write a C program to print addition of two matrices. 30.Write a C program to print addition of two matrices. 31.Write an algorithm to print first 20 odd numbers. 32.Explain for loop with syntax & example. 33. Draw a flow chart to check whether the given character is vowel or consonent. 34. Give the syntax & use of following function i) Pow ( ) ii) sqrt ( ) iii)cos ( ) iv) log ( ) 35. What is the difference between the function getch ( ) and getchar ( ) and getche ( )? 36. What are the different advantages and disadvantages of algorithm. 37. Write a C program to display the following output upto n th given value e.g : n = 4 o/p :- A B C D A B C A B A 38. Explain advantages of recursion