Trending ▼   ResFinder  

CBSE Class 11 Pre Board 2019 : Informatics Practices (St Xavier's Sr. Sec. School, Delhi)

3 pages, 28 questions, 0 questions with responses, 0 total responses,    0    0
Cbse 11
  
+Fave Message
 Home > cbse11 >   F Also featured on: School Page

Formatting page ...

Std. 11 16-2-2019 Annual Examination in INFORMATICS PRACTICE 1. Write any two differences between each of the following :a) b) c) d) e) f) g) Time : 3 hrs. Max. Marks : 70 [14] setText() and append() Sequential construst and Selective Construct System.out.print() and System.out.println() ? : and if..else statement jRadioButton and jCheckBox controls switch case and Multiple if else Operator = and Operator == 2. a) What happens if break is not written in switch..case statement? What name is given to this concept? [2] b) What is the significance of default statement is switch..case? Will the program generate error if default is not written in switch..case? [2] c) What is ternary operator? Explain with example. [2] d) Write the datatype name for the following values: [2] i) H ii) K iii) 89.67 iv) -45 e) Which control is used to group the jRadioButtons? Draw its icon. [2] f) What values can be stored in Boolean datatype? [1] 3. Write output of the following:a) int A=200 , B=250; String S1= INFORMATICS ; System.out.println( +A+B); System.out.println(S1.charAt(0)); System.out.println(S1.charAt(5)); System.out.println( +(A+B)); [4] b) switch( house ) { case T : jTextArea1.append( Tagore-Yellow ); case G : jTextArea1.append( Gandhi-Green ); case B : jTextArea1.append( Bhabha-Blue ); break; case N : jTextArea1.append( Nehru-Red ); default : jTextArea1.append( Not a valid House ); } What will be the output if the value of variable house is : i) N ii) G iii) B iv) H [6] c) int G = Integer.parseInt( jTextField1.getText() ); if ( G >=75 ) { if ( G >= 95 ) System.out.println( Excellent ); } else System.out.println( Can do better ); [3] if the input given for jTextField1 is : i) 82 ii) 98 iii) 61 4. Convert the following:a) if .. else to switch .. case String s1=jTextField1.getText(); char grade= s1.charAt(0); if (grade == 'A') jTextField1.setText( "Excellent" ); else if (grade == 'B') jTextField1.setText( "Better luck next time!" ); Std. 11 -2- [3] INFORMATICS PRACTICE

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 


Tags : cbse class xi, cbse 11, cbse 11th standard, cbse mock papers, cbse sample papers, cbse books, portal for cbse india, cbse question bank, central board of secondary education, past cbse question papers with answers, prelims preliminary exams, pre board exam papers, cbse model test papers, solved board question papers of cbse last year, previous years solved question papers, free online cbse solved question paper, cbse syllabus, india cbse board sample questions papers, last 10 years cbse final exam papers, cbse question papers, cbse guess sample questions papers, cbse important questions, specimen / mock papers.  

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us

 

cbse11 chat