COMPUTER APPLICATION

Similar documents
M1-R4: Programing and Problem Solving using C (JAN 2019)

CS201- Introduction to Programming Current Quizzes

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

A3-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH 'C' LANGUAGE

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

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

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

CSCI 171 Chapter Outlines

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

Name :. Roll No. :... Invigilator s Signature : INTRODUCTION TO PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

C-LANGUAGE CURRICULAM

CS201- Introduction to Programming Latest Solved Mcqs from Midterm Papers May 07,2011. MIDTERM EXAMINATION Spring 2010

C Programming Multiple. Choice

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

CS201 Latest Solved MCQs

Introduction to C++ Introduction. Structure of a C++ Program. Structure of a C++ Program. C++ widely-used general-purpose programming language

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

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

Introduction to C++ with content from

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

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

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Standard Forms of Expression. Minterms and Maxterms

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

Experiment 3: Logic Simplification

c) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance.

Chapter 2. Boolean Expressions:

Review of the C Programming Language for Principles of Operating Systems

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

Information Science 1

6.096 Introduction to C++ January (IAP) 2009

Short Notes of CS201

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

Procedural programming with C

2.6 BOOLEAN FUNCTIONS

C: How to Program. Week /Mar/05

Arrays and Strings. Arash Rafiey. September 12, 2017

UNIT- 3 Introduction to C++

Lexical Considerations

CS201 - Introduction to Programming Glossary By

Computers Programming Course 6. Iulian Năstac

Lexical Considerations

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

APSC 160 Review Part 2

Functions. Lab 4. Introduction: A function : is a collection of statements that are grouped together to perform an operation.

Full file at C How to Program, 6/e Multiple Choice Test Bank

Chapter 2 - Introduction to C Programming

IV Unit Second Part STRUCTURES

DEPARTMENT OF MATHS, MJ COLLEGE

Review of the C Programming Language

Padasalai.Net s Model Question Paper

Full file at

Tokens, Expressions and Control Structures

2.1. Chapter 2: Parts of a C++ Program. Parts of a C++ Program. Introduction to C++ Parts of a C++ Program

Objectives. Chapter 2: Basic Elements of C++ Introduction. Objectives (cont d.) A C++ Program (cont d.) A C++ Program

PROGRAMMING FUNDAMENTALS

Model Viva Questions for Programming in C lab

Chapter 2: Basic Elements of C++

C Programming Review CSC 4320/6320

Chapter 2: Basic Elements of C++ Objectives. Objectives (cont d.) A C++ Program. Introduction

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

Exam 3 Chapters 7 & 9

By the end of this section you should: Understand what the variables are and why they are used. Use C++ built in data types to create program

1 Lexical Considerations

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

Basic Elements of C. Staff Incharge: S.Sasirekha

Answer key SUBJECT : COMPUTER SCIENCE Time : 3 hour 15 min Max. marks : 70

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

COMPUTER SCIENCE Paper 1

EMBEDDED SYSTEMS PROGRAMMING Language Basics

OBJECTIVE QUESTIONS: Choose the correct alternative:

CS242 COMPUTER PROGRAMMING

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

Differentiate Between Keywords and Identifiers

Data Types and Variables in C language

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary


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

A Fast Review of C Essentials Part I

APSC 160 Review. CPSC 259: Data Structures and Algorithms for Electrical Engineers. Hassan Khosravi Borrowing many questions from Ed Knorr

IMPORTANT QUESTIONS IN C FOR THE INTERVIEW

Programming and Data Structures

QUIZ. 1. Explain the meaning of the angle brackets in the declaration of v below:

Pointers. 1 Background. 1.1 Variables and Memory. 1.2 Motivating Pointers Massachusetts Institute of Technology

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

Objectives. In this chapter, you will:

P.G.TRB - COMPUTER SCIENCE. c) data processing language d) none of the above

CHAPTER 4 FUNCTIONS. 4.1 Introduction

Code No: R Set No. 1


Basics of Programming

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

Arrays in C. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. Indian Institute of Technology Kharagpur. Basic Concept

Gate Level Minimization Map Method

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

Combinational Logic Circuits

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

INTRODUCTION 1 AND REVIEW

Unit-II Programming and Problem Solving (BE1/4 CSE-2)

C Language, Token, Keywords, Constant, variable

Transcription:

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 the questions General Instructions : Write all the answers in the Answer Script. Attempt Part A (Objective Questions) serially. Attempt all parts of a question together at one place. Part A (Objective Questions) is to be attempted according to stream as mentioned. (v) Attempt Part B [Descriptive (Unit I)] according to stream as mentioned. ( PART : A OBJECTIVE ) ( Marks : 35 ) SECTION I ( Marks : 25 ) 1. Fill in the blanks from the list of words/phrases given below : ½ 20=10 (a) ( For Science stream candidates only ) When each term of a logic expression contains all variables, it is said to be in. /44

( 2 ) For a two-variable K-map, the variable AB has the value. The number of rows in the truth table for a function of 3 literals will be. (d) When a product of sums form of logic expression is in canonical form, each sum term is called a. (e) The output of gate will be 1 only if the inputs x and y are equal to 1. ( For Arts/Commerce stream candidates only ) (a) The full form of FTP is. The protocol for remote login is. ISP is an abbreviation for. (d) DNS translates domain names to. (e) Each separate hyperlink within a large picture or drawing is called a.

( 3 ) ( For all Science/Arts/Commerce stream candidates : C Language ) (f) The statement violates the rules of structured programming. (g) (h) In method, address of the variable is passed by the calling function to the called function. A function that uses another function is known as the function. Parameters used in function call are called. (j) (k) (l) arr [3] = 10; initializes the element of the array with the value 10. In an array, every element is accessed using a. An expression that evaluates to a/an value may be used as an index. (m) is the address of the first element in the array. (n) (o) The size of memory allocated for a variable depends upon its. The operator informs the compiler that the variable is a pointer variable. (p) Allocating memory at run time is known as.

( 4 ) (q) (r) (s) (t) The mode opens a file for reading as a binary file. contains related information of the same or different data types. is a program that processes the source code before it passes through the compiler. The is used to give symbolic names to numeric constants. List of words/phrases : Array name Internet Service Provider IP address minterm call-by-reference user defined break rb call-by-value number goto actual values called third dual Telnet calling FTP integer #define compiler const canonical form subscript data type hyperspot * File Transfer Protocol File Transmit Protocol maxterm # data memory allocation hot spot dynamic memory allocation 10 arguments Pre-processor fourth 01 URL Structure Internet Service Protocol AND 2 3 or 8

( 5 ) 2. State whether the following statements are True or False : ½ 20=10 ( For Science stream candidates only ) (a) A prime implicant is an implicant which can be wholly enclosed by a larger implicant on a Karnaugh map. According to the distributive law of Boolean algebra, X Y Z ( X Y ) ( X Z ). When a sum of products form of logic expression is in canonical form, each product term is called a maxterm. ( For Arts/Commerce stream candidates only ) (a) A web browser is a program that is used to view pages and navigate the Internet. Microsoft Outlook, Outlook Express and Eudora are examples of web browsers. In FrontPage, to add page color, you will have to click on Edit option on the menu bar. ( For all Science/Arts/Commerce stream candidates : C Language ) (d) (e) The loop control variable may be updated before or after the loop iterates. The default label can be placed anywhere in the switch statement.

( 6 ) (f) The calling function must pass parameters to the called function. (g) An array stores all its data elements in non-consecutive memory locations. (h) A two-dimensional array is nothing but an array of one-dimensional arrays. The maximum number of dimensions that an array can have is 4. (j) The function scanf() can be used to read a line of text that includes white space characters. (k) When a string is initialized during its declaration, the string must be explicitly terminated with a null character. (l) Array name can be used as a pointer. (m) Pointer is a variable that represents the contents of a data item. (n) When the memory for an array is allocated, its base address is fixed and it cannot be changed during program execution. (o) An array can be assigned to another array.

( 7 ) (p) (q) (r) (s) (t) The syntax of the function fputs() is fputs (file_pointer, string_name). It is possible to add two pointer variables. FILE is a structure which has been defined in the stdio.h header file. A structure cannot have a union as its member. Pre-processor directives can be more than one line long. 3. Choose and write the correct answer : ½ 10=5 ( For Science stream candidates only ) (a) To obtain the complement of a Boolean expression, the following changes are made By changing each sign into an AND sign By changing each AND sign into an sign By complementing all literals All of the above The dual of the logic expression X ( Y Z ) X Y X Z is X Y Z X Y X Z X Y Z ( X Y )( X Z ) XY X Z ( X Y )( X Z ) None of the above

( 8 ) ( For Arts/Commerce stream candidates only ) (a) For remote login, one can use FTP HTTP Telnet None of the above Which of the following is not a valid IP address? 192 168 0 1 162 192 200 82 34 2E 38 256 192 50 1 ( For all Science/Arts/Commerce stream candidates : C Language ) (d) Which keyword allows a variable to have file scope? auto static register extern Given an integer array, arr[ ]; the i-th element can be accessed by writing (arr+i) (i+arr) arr [i] All of the above

( 9 ) (e) (&num) is equivalent to writing &num num num None of the above (f) While declaring pointer variables, which operator do we use? address arrow indirection dot (g) Which of the following is the correct way of declaring a float pointer? float ptr; float ptr; float ptr; None of the above

( 10 ) (h) Memory for a structure is allocated at the time of structure definition structure declaration function declaration structure variable declaration A structure member is generally accessed using the address operator dot operator comma operator ternary operator (j) The enumerated data type is derived from which data type? int float double char

( 11 ) SECTION II ( Marks : 10 ) 4. Answer any five of the following in not more than 3 to 4 sentences each : 2 5=10 (a) ( For Science stream candidates only ) Verify the following Boolean expression through a truth table : Show that XY XYZ XYZ XY YZ XZ X XY X X X X Y Explain the terms Prime Implicant and Non-prime Implicant. ( For Arts/Commerce stream candidates only ) (a) What are the steps to check for slow pages in FrontPage? What are Servers and Clients? Briefly explain what are search engines. ( For all Science/Arts/Commerce stream candidates : C Language ) (d) (e) What is the purpose of the keyword void? Where is this keyword used? What is a subscript? What range of values is permitted for the subscript of a one-dimensional, n-element array?

( 12 ) (f) (g) What is the purpose of the indirection operator? To what type of operand must the indirection operator be applied? What are object like and function like macros? ( PART : B DESCRIPTIVE ) ( Marks : 35 ) UNIT I ( For Science stream candidates only ) 5. (a) What is the dual of a Boolean expression? What is the difference between dual and complement? 1+1=2 Write the other canonical forms of the following : 1+1=2 F (a, b, c, d) = (0, 2, 6, 11, 13, 14) F (a, b, c, d) = (1, 2, 3, 4, 9, 10, 15) Realize a N network for the following Boolean function : 1 Y ( A B)( C D) 6. (a) Explain AND and operations with suitable examples of logic statements. 1+1=2 Simplify the logical expression ( X Y )( X Z )( Y Z ) 2

( 13 ) Verify using truth tables that XY ( X Y ) X Y 1 7. (a) Explain minterms and maxterms. 2 Convert the following logic expressions into canonical form : 2 ( A B )( B C) B( A C ) What will be the other canonical form of the following function? 1 F (a, b, c, d) = (0, 7, 8, 9, 10) 8. (a) What is canonical form of logic expressions? 1 Write the product of sum form of the function F (A, B, C). The truth table for F is as follows : 3 A B C F 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 Draw a Karnaugh map and simplify the following Boolean expression : 1 Y ABC ABC ABC

( 14 ) ( For Arts/Commerce stream candidates only ) 5. (a) Write a short note on cross-platform. 3 What is an email-header? What does it contain? 2 6. (a) List the basic features of the World Wide Web. 3 How can one change the font style and add color to the text in a page? 2 7. Explain Class A, Class B and Class C networks, clearly bringing out the distinction among them. 5 8. (a) Explain radio button and check box. How are they added to a web page? 3 What is an image hot spot? How is it created? 2 ( Unit II, Unit III and Unit IV For all Science/Arts/Commerce stream candidates ) UNIT II 9. (a) How does an unsigned integer constant differ from an ordinary integer constant? 1 Summarize the rules for naming identifiers. How many characters can be included in an identifier name? 2+1=3 10. (a) What function enables a user to input information while the program is in execution? 1 Write a user-friendly program to convert a given temperature in Fahrenheit to Celsius. 3

( 15 ) 11. (a) Write a program to find the sum of the first n even natural numbers, using a while loop. 2 When entering a string via the scanf( ) function, how can a single string which includes white space characters be entered? 1 What is a symbolic constant? 1 12. (a) What are library functions? Explain the use of gets( ) and puts( ). 1+2=3 What are escape sequences? Explain with the help of examples. 1 UNIT III 13. (a) Explain the difference between parameter passing mechanisms Call-by-Value and Call-by- Reference. 1½+1½=3 How is a two-dimensional array defined in terms of an array of pointers? What does each pointer represent? 1+1=2 14. (a) What is a function prototype? 1 Write a program to search for an element in an array and display its position in the array. 4 15. (a) What is a pointer? What is the relationship between the data item represented by a variable var and the corresponding pointer variable p-var? 1+2=3 What is meant by dynamic memory allocation? How is the size of the memory block specified? 1+1=2

( 16 ) 16. (a) What is storage class of a variable? What is meant by the scope of a variable within a program? What is the scope of a static external variable? 1+1+1=3 Suppose an integer quantity is added to or subtracted from a pointer variable. How will the sum or difference be interpreted? 2 UNIT IV 17. How can structure variables be declared? How are the members of a structure variable assigned initial values? Show with the help of an example. 1½+2=3½ 18. What is a macro? Summarize the similarities and differences between macros and functions. 1+2½=3½ 19. What is meant by conditional compilation? How is conditional compilation carried out? 1½+2=3½ 20. Write a program to copy the contents of one file into another, character by character. 3½ 14K 4540/44 HS/XII/A.Sc.Com/CAP/14