Subodh Public School08-9 Final Exam Class:Scholars (XI) Subject :- Informatics Practices Answer Key Q. Section-A 0 Marks A a)machine failure (b) Program failure (c) Operating failure (d) Control procedures ( e) Rigidi ty (f) Complexity (g) Discipline (h) Form of output B. Batch Operating System This type of operating system do not interact with the computer directly. There is an operator which takes similar jobs having same requirement and group them into batches.. Time-Sharing Operating Systems Each task has given some time to execute, so that all the tasks work smoothly. Each user gets time of CPU as they use single system. 3. Distributed Operating System These types of operating system is a recent advancement in the world of computer technology and are being widely accepted all-over the world and, that too, with a great pace. Various autonomous interconnected computers communicate each other using a shared communication network. (Any two) C Compiler The language processor that reads the complete source program written in high level language as a whole in one go and translates it into an equivalent program in machine language is called as a Compiler. Assembler The Assembler is used to translate the program written in Assembly language into machine code. The source program is a input of assembler that contains assembly language instructions Interpreter The translation of single statement of source program into machine code is done by language processor and executes it immediately before moving on to the next line is called an interpreter. If there is an error in the statement, the interpreter terminates its translating process at that statement and displays an error message. (Any two) D A parallel port is a type of interface found on computers (personal and otherwise) for Seerial interfaces that send bits one at a time. (i) connecting peripherals. The name refers to the way the data is sent; parallel ports send multiple bits of data at once, in parallel communication RAM ROM (ii) It stands for Random Access Memory It stands for Read Only Memory RAM can not hold data without power. ROM can hold data without power RAM is meant for temporary storage ROM is meant for permanent storage E i) Nibble:- a nibble is a four-bit aggregation, or half an octet. ii) OMR:- Optical mark recognition (also called optical mark reading and OMR) is the process of capturing human-marked data from document forms such as surveys and tests. They are used to read questionnaires, multiple choice examination paper in the form of lines or shady areas.
iii) Data Bus:- A data bus is a system within a computer or device, consisting of a connector or set of wires, that provides transportation for data. Different kinds of data buses have evolved along with personal computers and other pieces of hardware. iv) Digital Signature :- A digital signature is a mathematical technique used to validate the authenticity and integrity of a message, software or digital document. v) CAPTCHA: A computer program or system intended to distinguish human from machine input, typically as a way of thwarting spam and automated extraction of data from websites. Q. Section- B Answer the following question on the basis of JAVA 30 Marks A JTextArea B Label TextField (i) Label is a non-editable text control. TextField is editable text control Label is used for output only TextField can be used for both input and output (ii) Radiobutton Checkbox Radio buttons, however, operate as a group and provide mutually exclusive selection values. A user can select only one option in a radio button group (iii) Entry Control loop Exit Control Loop In a checkbox group, a user can select more than one option. Checkbox operates individually, so a user can toggle each response "on" and "off." Loop body will be executed after the Loop body will be executed first, and then condition is checked. condition is checked. If Test condition is false, loop body will be If Test condition is false, loop body will be executed 0 times. executed once. Ex:- for,while Ex:- do while C append D Netbeans:- NetBeans is an integrated development environment (IDE) for Java. NetBeans allows (i) applications to be developed from a set of modular software components (ii) Java:- Java is a general-purpose computer-programming language that is concurrent, classbased, object-oriented (iii) Operators are symbols that tell the compiler to perform specific mathematical or logical manipulations. In this tutorial, we will try to cover the most commonly used operators in programming. i)arithmetic Operator(+,-,*,/,%) ii)relational Operator (>,<,>=,<=,==) iii)logical operator(&&,,!) (iv) Variable:- Variable (computer science), a symbolic name associated with a value and whose associated value may be changed. (v) IDE :- An integrated development environment (IDE) is a software suite that consolidates basic tools required to write and test software.... Common features of integrated development environments.... Many or even all of the necessary dev-test tools are included in one integrated development E Find Out put (i) 5 6 (ii) 39 37 (iii) 38 36 34 3 30 + + *4=
F Find Error i) Integer n; n=float.parsing(numtf.settext()); switch case(n) Case 0; System.out.println( Ten ); Default : System.out.println( Invalid Num ); ii) last,num,ctr as integer; num=integer.parseint(numtf.settext()); last=num/; for(ctr=;ctr<last;ctr++) if(num Remainder ctr==0) Exit loop; G Rewrite the code using switch statement switch(marks) ( case 0: Stream= Science ; Grade= B ; break; case 6: case 7: case 8: case 9: Stream= commerce ; Grade= B ; default: Stream= Humanities ; Grade= C ; H Rewrite the following program code using for do while n=; do If(num%n==0) break; n++; while(n<last); I int i=00; while(i>0) System.out.print(i+ ); I=i-5; J Display Series Button int n=integer.parseint(jtextfield.gettext()); *4= *4=
int i; if(jradioutton.isselected()) i=; while(i<=n) System.out.print(i+ ); i=i+; Else if(jradioutton.isselected()) i=; while(i<=n) System.out.print(i+ ); i=i+; jtextfield.settext( ); System.exit(0); Clear Button Exit Button Q3 Section -C A A table can have only one primary key, which may consist of single or multiple fields. When multiple fields are used as a primary key, they are called a composite key B Alter table Student add address varchar(30); C The ORDER BY clause allows you to sort the result set based on one or more columns in different orders: ascending and descending. You put the column name that you want to use to sort after the ORDER BY clause followed by the ASC or DESC keyword. D The SELECT DISTINCT statement is used to return only distinct (different) values. Inside a table, a column often contains many duplicate values; using distinct duplicate records will eliminates. E RDBMS:- RDBMS is the basis for SQL, and for all modern database systems like MS SQL Server, IBM DB, Oracle, MySQL, and Microsoft Access. A Relational database management system (RDBMS) is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd. The data is stored in the form of rows and columns in the forms of rows and columns. F Explain the following:- i) Constraint:- Constraints enforce limits to the data or type of data that can be inserted /updated /deleted from a table. The whole purpose of constraints is to maintain the data integrity during an update/delete/insert into a table. In this tutorial we will learn several types of constraints that can be created in RDBMS. ii) Domain:- A domain is defined as the set of all unique values permitted for an attribute. For example, a domain of date is the set of all possible valid dates. iii) Alternate Key:- An alternate key is a key associated with one or more columns whose values uniquely identify every row in the table, but which is not the primary key. For example, where the primary key for a table may be the employee id, the alternate key might combine the first, middle, and last names of the employee. iv) Mysql:- MySQL is an open source relational database management system (RDBMS). v) Degree:- Number of columns in the table is called degree of table. +/
G Differentiate between:- i) Char Varchar CHAR is fixed length. VARCHAR is variable length With example ii) Delete Drop DELETE operations can be rolled back (undone), while DROP and TRUNCATE operations cannot be rolled back. iii) Round Truncate The DROP command removes a table from the database. All the tables' rows, indexes and privileges will also be removed ROUND function used to round the number to the nearest number. truncate/delete the number from some position. Round(75.756,) 75.8 truncate(75.756,) 75.7 iv) Curdate() Now() CURDATE() will give current date of the NOW() will give full date and time of the system. system. Ex:- 09-0-5 09-0-5 0:47:36 Q4. Answer the following question on the basis of MySql :- A Degree of table:-5 B Create Table Product ( ProductNo int, ProductName varchar(50), Unit varchar(0), Qty int(5), Rate int(5)); C Alter table Product add description varchar(0); D Delete from product where ProductName like %A_ ; E Insert into product values(0, Pencil, A,00,0); F Update product set Rate=Rate+Rate*0/00 where Qty<50; G Select ProductName, qty*rate Amount from product; H Select * from product where Unit IS NULL; I Select * from product where ProductName Like %A% ; J Drop Table Product; K Write Output of the followings:- 5 i) Substr( Shubham,-5,3) Ubh ii) Select Upper(Right( Subodh Public School,5)) CHOOL iii) Instr( Subodh Public School, BODH ) 3 iv) MOD(49,3) v) Truncate(73.58,-) 70 vi) Round(838.35,-) 840 vii) Dayofyear( 06-03-0 ) 6
viii) Pow(3,-) 0. ix) Left( Jaipur,4) Jaip x) Now() 09-0-5 :0:0