AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview

Size: px
Start display at page:

Download "AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview"

Transcription

1 AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview What is the difference between data and information. What is CPU. Explain the two components of CPU. What is the function of memory? What are its measuring units? 4. What are the differences between hardware, software, firmware and liveware? 5. Give examples for each of system software and application software. Explain the function of each type.. Give two major innovations in first generation computers. 7. Give two major innovations in the second generation computers. 8. Give two major advances of third generation computers. 9. What are the three types of computers? How do they differ? 10. Briefly distinguish between a general-purpose and a special-purpose computer. 11. In general how does the accuracy of an analog computer compare with the accuracy of a digital computer? 12. How is a compiler different from interpreter?. What are the different types of digital computers based on their performance? 14. What is the relation between microprocessor and microcomputer? 15. Name the super computers developed in India. 1. What are the major strengths and weaknesses of computer? 17. Why is binary language often termed as machine language? Why is machine language required? 18. Who invented the punched card?

2 Session Chapter 2: Software Concepts 1. What is an Operating System? What are its functions? 2. What purpose does the operating system serve to the computer and the user? 3. What are the functions of an operating system? 4. What functions are performed by an operating system as a resource manager? 5. What is meant by the terms multiprogramming and multitasking. List two reasons why the scheduling of processes and threads on a multi-processor system is more complicated than scheduling them on a uni-processor system. 7. What are language processors. Explain the different types of language processors. 8. What are device drivers. 9. Write short notes on Application Software with the examples. 10. Write short notes on Open Source Concepts. 11. Write name some commonly used operating systems.

3 Convert the following decimal numbers to 10-bit Session binary (a) 27.2 (b) 3.21 Chapter 3: Data Representation Convert the following hexadecimal numbers to decimal : (a) A (b) AB (c) Convert the following binary numbers to decimal (a) (b) Convert the following hexadecimal numbers to decimal : (a) E9 (b) 7 CA3 (c) Encode the following message in ASCII code using the hex representation "COST = $72." Convert the following decimal numbers to hexadecimal : (a) 2 (b) 2352 The following ASCII-coded message is stored in successive memory locations in a computer : , What 4. Convert the following hexadecimal : (a) 20 (b) Convert the following octal : (a) 38 AC (b) 7FD 1. Convert the following is the message? Convert each octal number to its decimal equivalent : (c) ABCD hexadecimal numbers to octal numbers to binary : (a) 123. (a) 743 (d) 257 (b) 7015 (a) 59 (c) 357 (d) 5, Convert the following binary numbers to octal : (a) (b) (b) 3 (c) 3777 (e) 1204 Convert each of the following decimal numbers to (b) Convert the following octal numbers to binary : (a) 742 (c) 3.32 Convert the following binary numbers to decimal (a) (b) (c) 919 (b) 372 (e) 255 Convert these hex values to decimal : (c) Convert the following binary numbers to octal : (a) 92 (b) 1A (c) 37FD (d) 2C0 (e) 7FF Convert these decimal values to hex : (a) (b) (c) Find the eight-bit two's complement form of the following decimal numbers : (a) - 10 (b) - 52 (c) Find the eight-bit two's complement form following decimal numbers : (a)-14 (b)-49 (c) Convert the following decimal numbers to 10-bit : binary : (a) (b).215 (c) (a) 75 (d) 25,19 (b) 314 (e) 4095 (c) 2048

4 Session Chapter 4: Microprocessor Basics and Memory Concepts 1. What is the function of memory? What are its measuring units? 2. What are the two categories of printers? Which type of printers are more speedy? 3. Why is primary memory termed as 'destructive write' memory but 'non-destructive read' memory? 4. List and describe the elements that each hardware input, output, or storage device requires.. 5. List three devices that are contained inside the computer case.. List at least three components that allow the processor to communicate with other devices. 7. Compare RISC and CISC processors and EPIC processors. 8. Distinguish between : (a) RAM and ROM : (b) Internal and external memory (c) Main memory and Cache memory. 9. What are RAM and ROM? How are they alike? How are they different? What are EEROM, PROM and EPROM 10. Distinguish between : (a) RAM and ROM : (b) Internal and external memory (c) Main memory and Cache memory. 11. What are ports. Give some example of ports

5 Session Chapter 5 : Object Oriented Programming 1. What do you understand by procedural programming paradigm 2. How is modular programming approach different from procedural programming approach 3. What is the difference between an object and a class 4. What do you mean by Abstraction and Encapsulation? How are these two terms interrelated? 5. What is base class? What is derived class? How are these two interrelated?. Explain the transitive nature of inheritance. 7. What is the benefit of transitive nature of inheritance? 8. What is polymorphism? 9. Write two major differences between Object Oriented Programming and Procedural Programming.

6 Session Chapter : Getting Started with C++ What is the difference between a keyword and an identifier What are literals in C++? How many types of literals are allowed in C++? How many ways are there in C++ to represent an integer constant? What is the difference between 'a' and "a" in C++? Will be the sizes of following constants : '\a', "\a", "Reema\'s", ' \ " '? Why is main function special? Write two advantages of using include compiler directive. What does the file iostream.h consist of? What are the predefined stream objects in I/O library? What type of errors generally occur while programming Differentiate between a Run Time Error and Syntax Error. Also give suitable examples of each in C++. Differentiate between a Logical Error and Syntax Error. Also give suitable examples of each in C++. What do you understand by 'code generation'? WAP to enter two numbers and find their sum. WAP to enter three numbers and display their sum and average.

7 Session Chapter 7: Data Handling 1. What are data types? What are all predefined data types in C++? 2. Why is char often treated as integer data type 3. What are data type m o d i f i e r s? How do they affect a base data type? 4. What is a reference variable? What is its usage? 5. How is structure different from` an array?. How is a structure different from a class? 7. What is a variable? How many values are associated with it? 8. What is the difference between 25L and 25? 9. Write a C++ program to compute the area of a square. Make assumptions on your own. 10. What is the difference between structure and union. 11. What is the difference between pointer and reference variable. 12. What are the ways to specify constants.

8 Session Chapter 8: Operator and Expressions 1. Distinguish between a unary, a binary and a ternary operator. Give examples of C++ operators for each one of them. 2. Differentiate between the post-increment and pre-increment operators. Also, give a suitable C++ code to illustrate both. 3. Why do you think C++ wasn't named ++C 4. Given the following code fragment i. int ch = 20 ; ii. cout << ++ch << " \n " << ch << " \n " ; 5. What output does the above code fragment produce?. What is the effect of replacing ++ ch with ch + I? 7. What will be the result of following two expressions if i =10 initially? 8. (1) ++ i <=10 (ii) i++ <=10 9. Write a C++ program that inputs experience and age of a person. The salary of the person is 000 if the person is experienced and his age is more than 35, otherwise if the person is experienced and his age is more than 28 but less than 35 than the salary should be 4800 otherwise for experienced person the salary should be 3000 and for inexperienced person the salary should be A computer programming contest requires teams of 5 members each. Write a program that asks for the number of players, and then give the number of teams and number of players left over. 11. The value of e is known to be Using this value, write a program to determine the value of the t expression : 2 - ye + 4Y. Obtain value of y from user. 12. Write a program which will raise any number X to a positive power n. Obtain values of x and n from user.. Write a C++ program to input principal amount : and time. If time is more than 10 years, calculate the simple interest with rate 8%. Otherwise calculate it with rate 12% per annum. 14. Write a C++ program to input a number. If the number is even, print its square otherwise print its cube. 15. Write a C++ program to input a number. If the : number n is odd and positive, print its square root otherwise print n5.

9 Session Chapter 9: C++ As per Latest C++11 Standards List all fundamental data types as per C++11. What are the size modifiers available for numeric data types as per C++11? What are widths offered by different data types of C++11 standard?

10 Session Chapter 10 : Flow of Control What are selection statements. Give examples. Differentiate between if else and switch case. What are iterative statements. Give examples of each. What is the difference between entry control loop and exit control loop. WAP to enter a number and perform the following operations. Find the sum of all the numbers between 1 to that number. Find the total odd numbers between 1 to that number. Find the total even numbers between 1 to that number. Find the sum of all the odd and even numbers separately between 1 to that number. Display the table of that number. Check whether the number is prime or not. Display the factorial of that number. Count the total number of digits. Find the sum of all the digits. Count the total number of odd and even digits. Reverse the number Check whether the number is palindrome or not Check whether the number is Armstrong or not Check whether the number is perfect or not. WAP to display the following series

11 Display the following pattern * ** *** **** *****

12 * *** ***** ******* ********* A AB ABC ABCD ABCDE Find the sum of the following series 1 + X + X2 + X3 + X4 +..Xn ½ + ¾ + 5/ +.N/(N+1)

13 Session Chapter 11: Functions What is a function. Explain the different types of functions. Define function prototype, function call and function definition. What are the ways to define a function. What is the difference between call by value and call by reference. How a function returns a value. What are the ways to pass arrays to a function. Difference between the formal parameters and actual parameters. Also, give a suitable C++ code to illustrate both What is the difference between global and local variable. Write a C++ function that converts a 2-digit octal number into binary number and prints the binary equivalent. Write a function called zero_small( ) that has two integer arguments being passed by reference and sets smaller of the two numbers to 0. Write the main program to access this function. Give the output of the following program : #include<iostream.h> in t g =2 0 ; void func(int & x, int y) { x=x-y;y=x*10; cout << x «', ' < < y << '\n'; } void main() { intg=7; func(g, ::g) ; cout << g ««: : g < < '\n'; func (:: g, g) ;

14 cout << g «<< g << '\n'; } Write definition for a function SumSeries() in C++ with two arguments/parameters double x and int n. The function should return a value of type double and it should perform sum of the following series : x - x 2 /3!+x 3 /5!-x 4 /7!+x 5 /9!-... upto n terms. Write definition for a function SumSequence() in C++ with two arguments/parameters -double x and int n. The function should return a value of type double and it should perform sum of the following series : 1/x-3!/x 2 +5!/x3-7!/x 4 +9!/x upto n terms. Raising a number n to a power pis the same as multiplying n by itself p times. Write a function called power that takes two arguments, a double value for nand an int value for pond returns the result as double value. Use default argument of 2 for p, so that if this argument is omitted that number will be squared. Write the main function that gets value from the user to test power function. Write a C++ program that checks whether the given character is alphanumeric or a digit. Add appropriate header file. Write a C++ program that checks whether a given character is an alphabet or not. If it is an alphabet, whether it is lowercase character or uppercase character? Include required header files Write a C++ program that reads a string and converts it to uppercase. Include required header files. Write a C++ program that reads two strings and appends the first string to the second. For example, if the first string is entered as Good and second string as Morning, the program should print MorningGood. Use string library header. Write a C++ program that reads two strings and copies the smaller string into the bigger string. Use functions from string library header. Write a function that takes one character as input and prints out that character plus the next five characters, separated by tabs. The function takes one char argument, and returns a char. For example, if the value of the argument passed to the function was 'm', then the function would print :

15 m n o p g r and return 'r'. Show separately the function declaration, the function definition, and a sample function invocation.

16

17

18

19

20

21

22

23

24

25

26

27

28 Session Chapter 12 : Arrays 1. How does the amount of storage (in bytes) depend upon type and size of an array? Explain with the help of an example. 2. How are strings manipulated in C++? Support your answer with examples. 3. What do you understand by two-dimensional arrays? State some situations that can be easily represented by two-dimensional arrays. 4.How are two-dimensional arrays represented in memory? 5.Can you think of a difference between an array of strings and other two-dimensional arrays? What is it? Support your answer with examples.. Consider a 1-D array 'A' containing 100 integers. Develop a program to do the following : (i) remove all occurrences of a given integer (ii) shift the elements of the array to the right so that used space is available at the left end (iii) fill the unused spaces by 0 (zero). 7. Write a Prograin, to print largest elentent of an array using a function. 8. Suppose A, B, C are arrays of integers of sizes m, n, m + n respectively. Give a program to produce a third array C, containing all the data of array Aand B. 9. Write a function to receive an intarray, its size and a character '+' or '-'. By default, the character should be '+'. For the character '+', the function returns the sum of positive numbers stored in the array and for the character '-', the function returns the sum of negative numbers stored in the array. 10. Write a program to pass an integer type of array and its size as a parameter to a function and it performs the following operations. If input array ARR contains Then output array ARR should have the following elements Write a program to pass an integer type of array and its size as a parameter to a function and it performs the following operations. If input array ARR contains Then output array ARR should have the following elements Write a program to pass an integer type of array and its size as a parameter to a function and it performs the following operations. If input array ARR contains Then output array ARR should have the following elements Write a program to pass an integer type of array and its size as a parameter to a function and it performs the following operations. CLASS XI C++ 1

29 If input array ARR contains Then output array ARR should have the following elements Write a program to pass an integer type of array and its size as a parameter to a function and it performs the following operations. If input array ARR contains Then output array ARR should have the following elements Write a program to pass an integer type of array and its size as a parameter to a function and it performs the following operations. If input array ARR contains Then output array ARR should have the following elements Write a program to pass an integer type of array and its size as a parameter to a function and it performs the following operations. If input array ARR contains Then output array XYZ should have the following elements Write a program to pass an integer type of array and its size as a parameter to a function and it performs the following operations. If input array ARR contains Then output array XYZ should have the following elements Write a program which takes an integer type of 2-D array and its size as a parameter and perform the following operations. 1. Sum of both the diagonal elements separately. 2. Sum of both the diagonal elements. 3. Sum of each row 4. Sum of each column 5. Display the diagonal elements at their respective positions.. Display the alternate elements. 7. Display the elements residing at edges of the array. 8. Display the elements residing at the corner of the array. 9. Swap the first and last row. CLASS XI C++ 2

30 10. Swap the first and last column. 11. Display the prime elements only. 12. Display the elements containing 3 as its ones place.. Display the middle row and middle column only at their respective places. 14. Display both the upper half diagonal elements 15. Display both the lower half diagonal elements 1. Display the transpose of the matrix(2 D array) 19. Write a program that adds two matrices X and Y of size R1 X C1 and R2 X C2 respectively. 20. Write a program that subtracts two matrices X and Y of size R1 X C1 and R2 X C2 respectively. 21. Write a program that multiply two matrices X and Y of size R1 X C1 and R2 X C2 respectively. 22. Write a short program that doubles every element of a matrix A [4] [4]. 23. Write a Program to pass a string as a parameter to a function and perform the following operations. 1. count total number of characters in that string or calculate length of a string without using a library function 2. count total number of spaces in that string. 3. count total number of alphabets, digits, spaces, other characters and words. 4. count number of words do or DO or Do or do present in that string. 5. Reverse each word and display the whole string.. Program to reverse a string. 7. Check whether the string is palindrome or not. 24. Write a program to count number of occurrences of a given character in a string. 25. Write a program to compare two strings for equality. 2. Program, to find -the position of a pattern string in main string. 27. Program to find a substring of a given string 28. Write a function to receive an int array, its size and a character '+' or '-'. By default, the character should be '+'. For the character '+', the functionreturns the sum of positive numbers stored in thearray and for the character '-', the function returns the sum of negative numbers stored in the array. CLASS XI C++ 3

31 Session Chapter : Structures What do we need a structure. How do you refer to a structure variable. What do you mean by nested structure. What do you mean by an array of structre. What is the purpose of using a typedef command in C++? Explain with suitable example. What is difference between #define and typedef How are following related to one another : (i) arrays and structures (ii) structures and classes? WAP to enter the information of 10 students and display the information of the student who has scored the highest marks. WAP to enter the information of 10 students and display the information of the student who has scored the lowest marks. WAP to enter the information of 10 students and display the information of the student whose name starts with A WAP to enter the information of 10 students and display the information of the student whose name ends with A Declare and initialize an array of 5 structures that store rollno, name and marks in 3 subjects for students Give the output of the following program :

32 #include<iostream.h> struct Pixel { int c, R ; }; void Display (Pixel P) { cout << " C o l " < < P. C < < " R o w " < < P. R < < endl; Pixel X = {40, 50}, Y, Z ; Z=X; X. C += 10; Y=Z; Y. C + = 10; Y. R += 20; Z. C -= 15; Display ( X) ; Display ( Y ) ; Display ( Z ) ; return 0 ; } Assuming suitable data types, give necessary declarations for an array of 20 voter records, each record of which consists of four data values viz. id-no, name, address, age. Make use of above declarations to write a program segment that prints id-no, name for all those voters whose age exceeds 0 Find the output of the following program : #include<iostream.h> struct MyBox { int Length, Breadth, Height ; }; void Dimension(MyBox M) { cout << M.Length << " x " << M.Breadth << " x " ; cout << M.Height << endl ; } int main( ) {

33 MyBox B 1 = { 1 0, 1 5, 5 }, B2, B 3 ; ++B1.Height ; Dimension(B1); B3=B1; ++B3.Length ; B3.Breadth++; Dimension(B3); B2=B3; B2.Height += 5 ; B2.Length-- ; Dimension(B2) return 0 ; }

34 Session Chapter 14: Programming Methodology What do you mean by Syntax errors and Semantics errors? Why are logical errors harder to locate? What is echo printing? What is the role of comments and indentation in a program? What is the role of comments and indentation in a program? How are meaningful identifiers useful? Explain the idea of a program bug. Do bugs always result from programming error? Justify your answer. Explain how an expert understanding of your programming language can reduce the amount of time in error rectification. What is the significance of documentation? Why is program maintenance considered very important? What do you mean by robustness.

Subject: Computer Science

Subject: Computer Science Subject: Computer Science Topic: Data Types, Variables & Operators 1 Write a program to print HELLO WORLD on screen. 2 Write a program to display output using a single cout statement. 3 Write a program

More information

Chapter 1. Computer Overview

Chapter 1. Computer Overview DELHI PUBLIC SCHOOL, Durgapur QUESTION BANK of computer science FOR block test-i examination (2018-19) CLASS-XI Chapter 1. Computer Overview 1. What is data? What is information? 2. Name the subunits of

More information

BRAIN INTERNATIONAL SCHOOL. Term-I Class XI Sub: Computer Science Revision Worksheet

BRAIN INTERNATIONAL SCHOOL. Term-I Class XI Sub: Computer Science Revision Worksheet BRAIN INTERNATIONAL SCHOOL Term-I Class XI 2018-19 Sub: Computer Science Revision Worksheet Chapter-1. Computer Overview 1. Which electronic device invention brought revolution in earlier computers? 2.

More information

UNIT- 3 Introduction to C++

UNIT- 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 information

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++ No. of Printed Pages : 3 I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination 05723. June, 2015 BCS-031 : PROGRAMMING IN C ++ Time : 3 hours Maximum Marks : 100 (Weightage 75%)

More information

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR 603 203 FIRST SEMESTER B.E / B.Tech., (Common to all Branches) QUESTION BANK - GE 6151 COMPUTER PROGRAMMING UNIT I - INTRODUCTION Generation and

More information

PROGRAMMING IN C AND C++:

PROGRAMMING IN C AND C++: PROGRAMMING IN C AND C++: Week 1 1. Introductions 2. Using Dos commands, make a directory: C:\users\YearOfJoining\Sectionx\USERNAME\CS101 3. Getting started with Visual C++. 4. Write a program to print

More information

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

VARIABLE, OPERATOR AND EXPRESSION [SET 1] VARIABLE, OPERATOR AND EXPRESSION Question 1 Write a program to print HELLO WORLD on screen. Write a program to display the following output using a single cout statement. Subject Marks Mathematics 90

More information

Split up Syllabus (Session )

Split up Syllabus (Session ) Split up Syllabus (Session- -17) COMPUTER SCIENCE (083) CLASS XI Unit No. Unit Name Marks 1 COMPUTER FUNDAMENTALS 10 2 PROGRAMMING METHODOLOGY 12 3 INTRODUCTION TO C++ 14 4 PROGRAMMING IN C++ 34 Total

More information

ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++]

ASSIGNMENT CLASS-11 COMPUTER SCIENCE [C++] ASSIGNMENT-1 2016-17 CLASS-11 COMPUTER SCIENCE [C++] 1 Consider the following C++ snippet: int x = 25000; int y = 2*x; cout

More information

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOME WORK XII COMPUTER SCIENCE ARRAY AND STRUCTURES

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOME WORK XII COMPUTER SCIENCE ARRAY AND STRUCTURES KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOME WORK- 2018-19 XII COMPUTER SCIENCE ARRAY AND STRUCTURES 1. Write a function which will take a string and returns the word count. Each word is separated

More information

COMPUTER SCIENCE (083)

COMPUTER SCIENCE (083) Roll No. Code : 112012-083 Please check that this question paper contains 7 questions and 8 printed pages. CLASS-XI COMPUTER SCIENCE (083) Time Allowed : 3 Hrs. Maximum Marks : 70 General Instructions

More information

Differentiate Between Keywords and Identifiers

Differentiate 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 information

(i) Describe in detail about the classification of computers with their features and limitations(10)

(i) Describe in detail about the classification of computers with their features and limitations(10) UNIT I - INTRODUCTION Generation and Classification of Computers- Basic Organization of a Computer Number System Binary Decimal Conversion Problems. Need for logical analysis and thinking Algorithm Pseudo

More information

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI 2017-2018 Worksheet No. 1 Topic : Getting Started With C++ 1. Write a program to generate the following output: Year Profit% 2011 18 2012 27 2013 32

More information

BLUE PRINT SUBJECT: - COMPUTER SCIENCE(083) CLASS-XI. Unit Wise Marks

BLUE PRINT SUBJECT: - COMPUTER SCIENCE(083) CLASS-XI. Unit Wise Marks BLUE PRINT SUBJECT: - COMPUTER SCIENCE(083) CLASS-XI Unit Wise Marks Unit No. Unit Name Marks 1. COMPUTER FUNDAMENTAL 10 2. PROGRAMMING METHODOLOGY 12 3. INTRODUCTION TO C++ 1. INTRODUCTION TO C++ 3 TOTAL

More information

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART A UNIT I 1. Differentiate object oriented programming from procedure oriented programming. 2. Define abstraction and encapsulation. 3. Differentiate

More information

D.A.V PUBLIC SCHOOLS, RANCHI ZONE FIRST SUMMATIVE ASSESSMENT CLASS - XI COMPUTER SCIENCE

D.A.V PUBLIC SCHOOLS, RANCHI ZONE FIRST SUMMATIVE ASSESSMENT CLASS - XI COMPUTER SCIENCE D.A.V PUBLIC SCHOOLS, RANCHI ZONE FIRST SUMMATIVE ASSESSMENT 2011-2012 CLASS - XI COMPUTER SCIENCE Q1. Input a number and then print the sum of the digits. [4] Q2. Input a number and then print its reverse.

More information

Get Unique study materials from

Get Unique study materials from Downloaded from www.rejinpaul.com VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : IV Section : EEE - 1 & 2 Subject Code

More information

Computer Programming C++ (wg) CCOs

Computer Programming C++ (wg) CCOs Computer Programming C++ (wg) CCOs I. The student will analyze the different systems, and languages of the computer. (SM 1.4, 3.1, 3.4, 3.6) II. The student will write, compile, link and run a simple C++

More information

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

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 Sample Test Paper-I Marks : 25 Time:1 Hrs. Q1. Attempt any THREE 09 Marks a) State four relational operators with meaning. b) State the use of break statement. c) What is constant? Give any two examples.

More information

Downloaded from

Downloaded from CLASS 11 COMPUTER SCIENCE (83) PRACTICAL LIST 1. Write a C++ Program to find area & circumference of circle. 2. Write a C++ Program to display ASCII character & vice versa. 3. Write a C++ Program to find

More information

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

Subject: 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 information

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

AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session ) Contents AIR FORCE SCHOOL,BAMRAULI COMPUTER SCIENCE (083) CLASS XI Split up Syllabus (Session- 2017-18) Month July Contents UNIT 1: COMPUTER FUNDAMENTALS Evolution of computers; Basics of computer and its operation;

More information

Fundamental of Programming (C)

Fundamental 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 information

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XI

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XI KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE 2015-2016 CLASS XI Month Portion to be covered Th Prac July 2015 Computer Fundamentals 25 8 Classification of computers:

More information

Fundamentals of Programming

Fundamentals 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 information

Sample Paper Class XI Subject Computer Sience UNIT TEST II

Sample Paper Class XI Subject Computer Sience UNIT TEST II Sample Paper Class XI Subject Computer Sience UNIT TEST II (General OOP concept, Getting Started With C++, Data Handling and Programming Paradigm) TIME: 1.30 Hrs Max Marks: 40 ALL QUESTIONS ARE COMPULSURY.

More information

Introduction to Computer Science Midterm 3 Fall, Points

Introduction to Computer Science Midterm 3 Fall, Points Introduction to Computer Science Fall, 2001 100 Points Notes 1. Tear off this sheet and use it to keep your answers covered at all times. 2. Turn the exam over and write your name next to the staple. Do

More information

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

PART 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 information

COMPUTER SCIENCE (083)

COMPUTER SCIENCE (083) Roll No. Code : 112011-083-A Please check that this question paper contains 7 questions and 6 printed pages. CLASS-XI COMPUTER SCIENCE (083) Time Allowed : 3 Hrs. Maximum Marks : 70 General Instructions

More information

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

Questions Bank. 14) State any four advantages of using flow-chart Questions Bank Sub:PIC(22228) Course Code:-EJ-2I ----------------------------------------------------------------------------------------------- Chapter:-1 (Overview of C Programming)(10 Marks) 1) State

More information

Tribhuvan University Institute of Science and Technology 2065

Tribhuvan University Institute of Science and Technology 2065 1CSc.102-2065 2065 Candidates are required to give their answers in their own words as for as practicable. 1. Draw the flow chart for finding largest of three numbers and write an algorithm and explain

More information

VARIABLES AND CONSTANTS

VARIABLES 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 information

Object Oriented Pragramming (22316)

Object Oriented Pragramming (22316) Chapter 1 Principles of Object Oriented Programming (14 Marks) Q1. Give Characteristics of object oriented programming? Or Give features of object oriented programming? Ans: 1. Emphasis (focus) is on data

More information

BRAIN INTERNATIONAL SCHOOL Term-II Class-XI Sub:- Computer Science Revision Sheet

BRAIN INTERNATIONAL SCHOOL Term-II Class-XI Sub:- Computer Science Revision Sheet BRAIN INTERNATIONAL SCHOOL Term-II Class-XI 2018-19 Computer Organisation Sub:- Computer Science Revision Sheet 1. Which electronic device invention brought revolution in earlier computers? 2. Which memory

More information

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

UNIT - 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 information

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS All programs need to be submitted on 7th Oct 206 by writing in hand written format in A4 sheet. Flowcharts, algorithms, source codes and outputs

More information

Character 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. 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 information

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING SIDDARTHA INSTITUTE OF SCIENCE AND TECHNOLOGY:: PUTTUR Siddharth Nagar, Narayanavanam Road 517583 QUESTION BANK (DESCRIPTIVE) Subject with Code : PROGRAMMING FOR PROBLEM SOLVING (18CS0501) Course & Branch

More information

KENDRIYA VIDYALYA CLRI CHENNAI AUTUMN BREAK HOLIDAY HW MARKS QUESTIONS : DATA STRUCTURE

KENDRIYA VIDYALYA CLRI CHENNAI AUTUMN BREAK HOLIDAY HW MARKS QUESTIONS : DATA STRUCTURE KENDRIYA VIDYALYA CLRI CHENNAI AUTUMN BREAK HOLIDAY HW 8 MARKS QUESTIONS : DATA STRUCTURE. Write a function in C++ which accepts an integer array and its size as arguments and change all the even number

More information

Page. No. 1/15 CS201 Introduction to Programmming Solved Subjective Questions From spring 2010 Final Term Papers By vuzs Team

Page. No. 1/15 CS201 Introduction to Programmming Solved Subjective Questions From spring 2010 Final Term Papers By vuzs Team Page. No. 1/15 CS201 Introduction to Programmming Solved Subjective Questions From spring 2010 Final Term Papers By vuzs Team Question No: 1 ( Marks: 2 ) Write a declaration statement for an array of 10

More information

6.096 Introduction to C++ January (IAP) 2009

6.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 information

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

CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE CAMBRIDGE SCHOOL, NOIDA ASSIGNMENT 1, TOPIC: C++ PROGRAMMING CLASS VIII, COMPUTER SCIENCE a) Mention any 4 characteristic of the object car. Ans name, colour, model number, engine state, power b) What

More information

KendriyaVidyalayaSangathan Kolkata Region

KendriyaVidyalayaSangathan Kolkata Region KendriyaVidyalayaSangathan Kolkata Region Third Pre-Board Examination : 204-5 Please check that this question paper contains 7 questions. Please write down the Serial Number of the question before attempting

More information

The Warhol Language Reference Manual

The Warhol Language Reference Manual The Warhol Language Reference Manual Martina Atabong maa2247 Charvinia Neblett cdn2118 Samuel Nnodim son2105 Catherine Wes ciw2109 Sarina Xie sx2166 Introduction Warhol is a functional and imperative programming

More information

CHAPTER 4 FUNCTIONS. 4.1 Introduction

CHAPTER 4 FUNCTIONS. 4.1 Introduction CHAPTER 4 FUNCTIONS 4.1 Introduction Functions are the building blocks of C++ programs. Functions are also the executable segments in a program. The starting point for the execution of a program is main

More information

ADARSH VIDYA KENDRA NAGERCOIL COMPUTER SCIENCE. Grade: IX C++ PROGRAMMING. Department of Computer Science 1

ADARSH 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 information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc CST Semester / Year : EVEN / II Subject Name

More information

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each. I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK 70. a) What is the difference between Hardware and Software? Give one example for each. b) Give two differences between primary and secondary memory.

More information

DEPARTMENT OF INFORMATION TECHNOLOGY

DEPARTMENT OF INFORMATION TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY II Year/III Sem CS8392- OBJECT ORIENTED PROGRAMMING Prepared by: Komal Kumar.N, AP/IT, VTHT UNIVERSITY QUESTIONS FROM 2011 to 2018 PART-A 1. What are the advantages

More information

Lecture 2 Arrays, Searching and Sorting (Arrays, multi-dimensional Arrays)

Lecture 2 Arrays, Searching and Sorting (Arrays, multi-dimensional Arrays) Lecture 2 Arrays, Searching and Sorting (Arrays, multi-dimensional Arrays) In this lecture, you will: Learn about arrays Explore how to declare and manipulate data into arrays Understand the meaning of

More information

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002 Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002 2 Practicals per week External marks :80 Internal Marks : 40 Total Marks :120 University

More information

Question Bank (SPA SEM II)

Question Bank (SPA SEM II) Question Bank (SPA SEM II) 1. Storage classes in C (Refer notes Page No 52) 2. Difference between function declaration and function definition (This question is solved in the note book). But solution is

More information

CSc 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 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 information

Chapter1 Overview of computers

Chapter1 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 information

SPLIT UP SYLLABUS SUBJECT : COMPUTER SCIENCE (083) SESSION: Class XI (Theory) C++ Duration: 3 hours Total Marks: 70

SPLIT UP SYLLABUS SUBJECT : COMPUTER SCIENCE (083) SESSION: Class XI (Theory) C++ Duration: 3 hours Total Marks: 70 SPLIT UP SYLLABUS SUBJECT : COMPUTER SCIENCE (083) SESSION:2014-15 Class XI (Theory) C++ Duration: 3 hours Total Marks: 70 Unit No. Unit Name MARKS 1. COMPUTER FUNDAMENTALS 10 2. INTRODUCTION TO C++ 14

More information

2. Distinguish between a unary, a binary and a ternary operator. Give examples of C++ operators for each one of them.

2. Distinguish between a unary, a binary and a ternary operator. Give examples of C++ operators for each one of them. 1. Why do you think C++ was not named ++C? C++ is a super set of language C. All the basic features of C are used in C++ in their original form C++ can be described as C+ some additional features. Therefore,

More information

COMPUTER SCIENCE SECTION A

COMPUTER SCIENCE SECTION A Total No. of Printed Pages 16 X/15/CSc 2 0 1 5 COMPUTER SCIENCE ( CANDIDATES WITH PRACTICAL/INTERNAL ASSESSMENT ) Full Marks : 80 Pass Marks : 24 ( CANDIDATES WITHOUT PRACTICAL/INTERNAL ASSESSMENT ) Full

More information

SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION MAX MARKS:70 CODE - A DURATION : 3 Hours

SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION MAX MARKS:70 CODE - A DURATION : 3 Hours SBOA SCHOOL & JUNIOR COLLEGE, CHENNAI 101 COMPUTER SCIENCE CLASS: XI HALF YEARLY EXAMINATION 2016 MAX MARKS:70 CODE - A DURATION : 3 Hours All questions are compulsory. Do not change the order of the questions

More information

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. 9 Self-Test Exercises p. 11 History Note p. 12 Programming and

More information

1 Lexical Considerations

1 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 information

m) sin() n) endl o) getch() p) cout

m) sin() n) endl o) getch() p) cout SAMPLE PAPER 1. a) Name the header file for the following built-in functions: a) log() b) exp() c) getch() d) isalnum() e) fabs() f) isalpha() g) toupper() h) cos() i) random() j) gets() k) abs() l) tolower()

More information

CHAPTER-6 GETTING STARTED WITH C++

CHAPTER-6 GETTING STARTED WITH C++ CHAPTER-6 GETTING STARTED WITH C++ TYPE A : VERY SHORT ANSWER QUESTIONS 1. Who was developer of C++? Ans. The C++ programming language was developed at AT&T Bell Laboratories in the early 1980s by Bjarne

More information

DEPARTMENT OF MATHS, MJ COLLEGE

DEPARTMENT 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 information

Sri Vidya College of Engineering & Technology

Sri Vidya College of Engineering & Technology UNIT I INTRODUCTION TO OOP AND FUNDAMENTALS OF JAVA 1. Define OOP. Part A Object-Oriented Programming (OOP) is a methodology or paradigm to design a program using classes and objects. It simplifies the

More information

Agenda / Learning Objectives: 1. Map out a plan to study for mid-term Review the C++ operators up to logical operators. 3. Read about the tips

Agenda / Learning Objectives: 1. Map out a plan to study for mid-term Review the C++ operators up to logical operators. 3. Read about the tips Agenda / Learning Objectives: 1. Map out a plan to study for mid-term 2. 2. Review the C++ operators up to logical operators. 3. Read about the tips and pitfalls on using arrays (see below.) 4. Understand

More information

HIGER SECONDARY FIRST YEAR COMPUTER SCIENCE

HIGER SECONDARY FIRST YEAR COMPUTER SCIENCE HIGER SECONDARY FIRST YEAR COMPUTER SCIENCE VOLUME I Chapter 1 : Introduction to computers and Number Systems 1.1 Introduction to Computers 1.1.1 History of Computers 1.1.2 Data, Information and program

More information

Lexical Considerations

Lexical 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 information

FORM 2 (Please put your name and form # on the scantron!!!!)

FORM 2 (Please put your name and form # on the scantron!!!!) CS 161 Exam 2: FORM 2 (Please put your name and form # on the scantron!!!!) True (A)/False(B) (2 pts each): 1. Recursive algorithms tend to be less efficient than iterative algorithms. 2. A recursive function

More information

1996 ILLINOIS JETS TEAMS DISTRICT COMPUTER FUNDAMENTALS TEST. 1. A computer program is:

1996 ILLINOIS JETS TEAMS DISTRICT COMPUTER FUNDAMENTALS TEST. 1. A computer program is: 1996 ILLINOIS JETS TEAMS DISTRICT COMPUTER FUNDAMENTALS TEST 1. A computer program is: a. a sequence of binary machine instructions b. a sequence of operations to carry out a defined task c. a set of computer

More information

Get Free notes at Module-I One s Complement: Complement all the bits.i.e. makes all 1s as 0s and all 0s as 1s Two s Complement: One s complement+1 SIGNED BINARY NUMBERS Positive integers (including zero)

More information

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems SCHOOL OF ENGINEERING & BUILT ENVIRONMENT Mathematics Numbers & Number Systems Introduction Numbers and Their Properties Multiples and Factors The Division Algorithm Prime and Composite Numbers Prime Factors

More information

STRUCTURING OF PROGRAM

STRUCTURING OF PROGRAM Unit III MULTIPLE CHOICE QUESTIONS 1. Which of the following is the functionality of Data Abstraction? (a) Reduce Complexity (c) Parallelism Unit III 3.1 (b) Binds together code and data (d) None of the

More information

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

B.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 information

BITG 1233: Introduction to C++

BITG 1233: Introduction to C++ BITG 1233: Introduction to C++ 1 Learning Outcomes At the end of this lecture, you should be able to: Identify basic structure of C++ program (pg 3) Describe the concepts of : Character set. (pg 11) Token

More information

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

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23. 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

More information

Memory Addressing, Binary, and Hexadecimal Review

Memory Addressing, Binary, and Hexadecimal Review C++ By A EXAMPLE Memory Addressing, Binary, and Hexadecimal Review You do not have to understand the concepts in this appendix to become well-versed in C++. You can master C++, however, only if you spend

More information

COMPUTER APPLICATION

COMPUTER APPLICATION Total No. of Printed Pages 16 HS/XII/A.Sc.Com/CAP/14 2 0 1 4 COMPUTER APPLICATION ( Science / Arts / Commerce ) ( Theory ) Full Marks : 70 Time : 3 hours The figures in the margin indicate full marks for

More information

BCA (Part II) EXAMINATION, 2009 C++ PROGRAMMING Time allowed: Three Hours Maximum Marks: 50 Attempt any five questions

BCA (Part II) EXAMINATION, 2009 C++ PROGRAMMING Time allowed: Three Hours Maximum Marks: 50 Attempt any five questions C++ PROGRAMMING Attempt any five questions 1. (a) What is encapsulation? Why is data considered safe if encapsulated? How are the terms abstraction and encapsulation related. 4 (b) What do you understand

More information

Fundamental 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 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 information

Lecture 2 Tao Wang 1

Lecture 2 Tao Wang 1 Lecture 2 Tao Wang 1 Objectives In this chapter, you will learn about: Modular programs Programming style Data types Arithmetic operations Variables and declaration statements Common programming errors

More information

COMPUTER 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 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 information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED

More information

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

UNIT 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 information

Long Questions. 7. How does union help in storing the values? How it differs from structure?

Long Questions. 7. How does union help in storing the values? How it differs from structure? Long Questions April/May - 2010 Marks 1. Explain arithmetic operators and their precedence in C. 2. Explain the term structured programming with help of example 3. Write a program to read 10 numbers and

More information

PROGRAMS. EXCELLENT ACADEMY OF ENGINEERING. Telephone: / NORMAL PROGRAM

PROGRAMS. EXCELLENT ACADEMY OF ENGINEERING. Telephone: / NORMAL PROGRAM PROGRAMS NORMAL PROGRAM 1. Wap to display months in words where month in number is input. 2. Wap to print Fibonacci series till n elements. 3. Wap to reverse 4 digit numbers. 4. Wap to accept a number

More information

ANSI C Programming Simple Programs

ANSI C Programming Simple Programs ANSI C Programming Simple Programs /* This program computes the distance between two points */ #include #include #include main() { /* Declare and initialize variables */ double

More information

Absolute C++ Walter Savitch

Absolute C++ Walter Savitch Absolute C++ sixth edition Walter Savitch Global edition This page intentionally left blank Absolute C++, Global Edition Cover Title Page Copyright Page Preface Acknowledgments Brief Contents Contents

More information

Lecture 03 Bits, Bytes and Data Types

Lecture 03 Bits, Bytes and Data Types Lecture 03 Bits, Bytes and Data Types Computer Languages A computer language is a language that is used to communicate with a machine. Like all languages, computer languages have syntax (form) and semantics

More information

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

C++ is case sensitive language, meaning that the variable first_value, First_Value or FIRST_VALUE will be treated as different. C++ Character Set a-z, A-Z, 0-9, and underscore ( _ ) C++ is case sensitive language, meaning that the variable first_value, First_Value or FIRST_VALUE will be treated as different. Identifier and Keywords:

More information

PROGRAMMING IN C++ COURSE CONTENT

PROGRAMMING IN C++ COURSE CONTENT PROGRAMMING IN C++ 1 COURSE CONTENT UNIT I PRINCIPLES OF OBJECT ORIENTED PROGRAMMING 2 1.1 Procedure oriented Programming 1.2 Object oriented programming paradigm 1.3 Basic concepts of Object Oriented

More information

Lexical Considerations

Lexical 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

Programming Fundamentals. With C++ Variable Declaration, Evaluation and Assignment 1

Programming Fundamentals. With C++ Variable Declaration, Evaluation and Assignment 1 300580 Programming Fundamentals 3 With C++ Variable Declaration, Evaluation and Assignment 1 Today s Topics Variable declaration Assignment to variables Typecasting Counting Mathematical functions Keyboard

More information

calling a function - function-name(argument list); y = square ( z ); include parentheses even if parameter list is empty!

calling a function - function-name(argument list); y = square ( z ); include parentheses even if parameter list is empty! Chapter 6 - Functions return type void or a valid data type ( int, double, char, etc) name parameter list void or a list of parameters separated by commas body return keyword required if function returns

More information

UNIT-2 Introduction to C++

UNIT-2 Introduction to C++ UNIT-2 Introduction to C++ C++ CHARACTER SET Character set is asset of valid characters that a language can recognize. A character can represents any letter, digit, or any other sign. Following are some

More information

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems.

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. Plan for the rest of the semester: Programming We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. We saw earlier that computers

More information

Algorithms 4. Odd or even Algorithm 5. Greatest among three numbers Algorithm 6. Simple Calculator Algorithm

Algorithms 4. Odd or even Algorithm 5. Greatest among three numbers Algorithm 6. Simple Calculator Algorithm s 4. Odd or even Step 3 : If number divisible by 2 then Print "Number is Even" Step 3.1 : else Print "Number is Odd" Step 4 : Stop 5. Greatest among three numbers Step 2 : Read values of a, b and c Step

More information

1. Which of the following circuits can be used to store one bit of data? A) Encoder B) OR gate C) Flip Flop D) Decoder

1. Which of the following circuits can be used to store one bit of data? A) Encoder B) OR gate C) Flip Flop D) Decoder MCA Lateral 1. Which of the following circuits can be used to store one bit of data? A) Encoder B) OR gate C) Flip Flop D) Decoder 2. What would be the output of the following C program? main ( ){ int

More information

POINTERS - Pointer is a variable that holds a memory address of another variable of same type. - It supports dynamic allocation routines. - It can improve the efficiency of certain routines. C++ Memory

More information