Computer Science Nios Plus Two PQ I Welcome to your Computer Science Nios Plus Two PQ I Total Questions: 142 Name Mobile No: 1. Complete the code for the following: Statement 1: Create two objects s1 and s2 of type ITEMStatement 2: Input the value for the variable iname of the structure variable s1#include #include struct ITEM{char iname[20];int price;};void main(){// Statement 1// Statement 2cout << s1.iname;cout << s2.price;} ITEM s1, s2; gets(s1.iname); ITEM s1 & s2; in >> s1.iname; struct ITEM s1, s2; input(s1.name); ITEM s1; s2; cin >> s1.name; None Hint 2. Which among the following is an example of spreadsheet software? MS Word Lotus 1-2-3 All the above Impress None Hint 3. State whether the following statements are True or False: Object pointers are used to create objects during run time. True Only in static memory Only in Java False None Hint 4. Complete the above code for the following : Statement 1 : Create two objects s1 and s2 of type ITEM.Statement 2 : Input the value for the variable iname of the StructureVariable s1.#include #include struct ITEM{char iname[20];int price;};void main(){______________ // statement 1cout << s1.iname ;cout << s2.price ;} struct s1, s2; int s1, s2; ITEM s1, s2; char s1[20], s2[20]; None Hint 5. Which of the following is supported by a Word Processor? Formatting data Creating data Printing data All the above None Hint 6. Cell in Calc is __________. Data block Formula area Worksheet Intersection of row and column None Hint 7. Is it required that a HTML document should be saved with the extension .htm or .html, Justify your answer. So that web browsers can recognize and display it correctly So that it can be printed easily To improve the performance of the document To reduce file size None Hint 8. Define the following terms : Inline Member Function A function defined in an external file A function that runs in the background A function without any parameters A function defined inside a class and suggested to be expanded inline None Hint 9. Define Degree Number of tuples (rows) in a relation Number of primary keys in a table Number of columns (attributes) in a relation Number of constraints applied on a table None Hint 10. Is it required that a HTML document should be saved with the extension .htm or .html? Justify your answer. Yes, because .htm or .html is required to open in a browser No, because .txt works the same Yes, because web browsers recognize only .exe files No, it can be saved with any extension None Hint 11. Fill in the blanks Writing data on the data file requires ______ header file. None Hint 12. Give one example of Protocol used in communication SMTP FTP HTTP TCP None Hint 13. State whether the following statements are True or False : A pointer is a variable that refers to the location of another variable. True Depends on data type Cannot say False None Hint 14. Expand ARPANET Advanced Regional Program Access Network Applied Research and Public Access Network American Research and Programming Network Advanced Research Project Agency Network None Hint 15. Define the following terms: Default Constraint Adds NULL to column Sets column datatype Inserts default value if not specified Allows duplicate values None Hint 16. What is the ASCII value of 'B'? 66 66 65 67 None Hint 17. What do you mean by transfer rate? The number of images displayed per second The speed at which data is transferred The number of data bits processed by CPU The number of users connected None Hint 18. What will be the output produced by the below given program if the value of the variable x is 18 ? #include int main(){int x;int y;cin >> x;y = 3;if(x/y < 12)cout << "Good Morning";elsecout << "Good Afternoon"; return 0;} Nothing is printed Good Afternoon Good Morning Error None Hint 19. Define the following terms : Candidate Key A column that repeats values A key that is always a foreign key A key that always contains NULL values A field or combination of fields that can uniquely identify a record None Hint 20. Which of the following attribute is used to specify the width of border for an image in HTML ? box border line blackline None Hint 21. Define the following terms : Data Redundancy Repeating the same data at multiple places unnecessarily The accuracy of stored data in a database Unique value assigned to a record The relationship between two tables None Hint 22. Which of the following is supported by Word Processor? All the above Creating data Formatting data Printing data None Hint 23. Write the names of all the data members, which is/are accessible to member function Commence of class Learn. Answer the questions from (i) to (iv) based on the below given program (assume all header files are included).class Graduate {int Rollno;char GName[20];float Marks1;protected:void Result();public:Graduate();void Enroll();void Display();};class Lecturer {long TCode;char TName[20];protected:float Salary;public:Lecturer();void Enter();void Show();};class Learn: public Graduate, private Lecturer {long CCode[10];char LearnName[50];char StartDate[8], EndDate[8];public:Learn();void Commence();void CDetail();}; TCode, GName, Marks1 CCode[], LearnName, Salary Rollno, TCode, LearnName GName, TCode, CCode[] None Hint 24. Which of the following is used to create Bulleted List in HTML? None Hint 25. Fill in the blanks: ios::app opens the file in _________ mode. Write Append Read Truncate None Hint 26. Identify the attribute of the <img> tag that is used to specify the URL of the image that helps you to create a image in webpage. path source src url None Hint 27. Identify the attribute of the tag that is used to specify the URL of the image. src source url path None Hint 28. Which tag is used to create a heading with the biggest size in a webpage? None Hint 29. What do you mean by analog transmission? Transmission of packets over the Internet Transmission of data in the form of continuous signals Transmission of data in discrete form Transmission of binary data only None Hint 30. Define Domain A data type Set of all possible values of an attribute A web address A primary key None Hint 31. Define the following terms : Attribute A property/column of an entity in a table A method used in programming The unique key of a database The number of records in a table None Hint 32. Find the output of the following C++ program: &88 &x 88 *88 None Hint 33. The decimal equivalent of (AAA)16 is _______ 2730 2730 2725 2735 None Hint 34. What is the header file for log10(x)? None Hint 35. Define the following terms Cardinality Number of rows in a table Primary key Data type of a table Number of columns in a table None Hint 36. Which of the following can be added in an Impress presentation ? All the above Picture Text Audio None Hint 37. Name any two ways of selecting text in open office writer. Both (A) and (B) Using the mouse by dragging over text Using the Print command Using Shift key + arrow keys None Hint 38. Define the following terms : Cardinality The number of keys in a table The number of databases in a system The number of rows in a table or relationship The number of columns in a table None Hint 39. ios::app opens the file in ______ mode. Append Write Read Truncate None Hint 40. Define the following terms: Operator (Scope Resolution Operator) Multiplication operator Input operator Scope resolution operator Assignment operator None Hint 41. Give one word for the following Individual page of a spreadsheet is known as ______________. Worksheet Database Workbook Document None Hint 42. Fill in the blanks: Writing data on the data file requires _________ header file None Hint 43. What is statement 1 in the below given program ? #include void change(int); // Statement1void main(){int a = 5;cout << "a = " << a << endl;change(a);cout << "a = " << a;}void change(int b){b = 10;} Function declaration Function definition Function call None of these None Hint 44. Which of the following is a protocol used in communication? DOCX HTML HTTP JPEG None Hint 45. What will be the output produced by the below given program ? #include void main(){struct emp{int eno;float sal;};struct emp E;E.eno = 1234;E.sal = 15643.5;cout << E.eno << E.sal;} 123415643 1234 15643.5 123415643.5 Error None Hint 46. Define the following terms: Inline Member Function A function defined outside a class A function defined in a header file A function defined inside a class with keyword inline A function that is ignored at runtime None Hint 47. The octal equivalent of (343)10 is__________ 437 453 527 523 None Hint 48. Define the following terms: Member Functions Functions used only for inheritance Functions that operate on class members Functions that are only used outside the class Functions stored in header files None Hint 49. Give one word for the following Cell in Calc is ______________. Sheet Cell Address Table Data Point None Hint 50. Which tag is used to create a heading with the biggest size in a webpage? None Hint 51. Which of the following attribute is used to specify the width of border for an image in HTML? box border line blackline None Hint 52. Define the following terms : Object A header file in C++ An instance of a class A template used to create classes A function inside a class None Hint 53. What will be the output produced by the below given program? #include void main(){int i=0, s=0;while (i<4){s = s+ i;i++;}cout << s; return 0;} 6 4 10 0 None Hint 54. Give one word Individual page of a spreadsheet is known as ______. Database Page Workbook Worksheet None Hint 55. What will be the output if ch = 'a' in the program? #include void main() {char ch;cin >> ch;switch(ch) {case 'A':cout << "A Grade";break;case 'B':cout << "B Grade";break;case 'C':cout << "C Grade";break;case 'D':cout << "D Grade";break;default:cout << "NO Grade";}} C Grade B Grade NO Grade A Grade None Hint 56. Which of the following is used to create a line break in HTML? None Hint 57. The decimal equivalent of (AAA)₁₆ is ___________ 2910 2560 2585 2730 None Hint 58. The octal equivalent of (343)₁₀ is:__________ 633 527 537 523 None Hint 59. Define the following terms Data Redundancy Repetition of data in the database Missing data in table Data compression Sorting of data None Hint 60. What is the ASCII value of 'B'? 65 66 67 64 None Hint 61. What will be the output produced by the below given program if the value of the variable x is 18? #include int main(){int x;int y;cin >> x;y = 3;if (x/y > 12)cout << "Good Morning";elsecout << "Good Afternoon";return 0;} Runtime Error Good Afternoon Good Morning Compilation Error None Hint 62. State whether the following statements are True or False A pointer is a variable that refers to the location of another variable. Can't say True None of the above False None Hint 63. Create a webpage using the following instructions : (a) Heading 'Examination' on the center of the webpage with the smallest heading font.(b) The Paragraph 'I Feel My Exam has gone good' on towards the left of the webpage.(c) An image to be set having the file name 'NIOS2024.jpg' with a height of 6 and width of 3. Examination I Feel My Exam has gone good Examination I Feel My Exam has gone good None Hint 64. Define Attribute A relation A column in a table A row in a table A cell None Hint 65. Define the following terms: Inline Member Function A function defined outside the class A function that runs in a background process A function that is compiled later A function defined inside the class and expanded inline None Hint 66. Complete the above code for the following : #include #include struct ITEM{char iname [20];int price;};void main(){// statement 1// statement 2cout << s1.iname;cout << s2.price;}Statement 1 : Create two objects s1 and s2 of type ITEM.Statement 2 : Input the value for the variable iname of the StructureVariable s1. ITEM = s1, s2; and input s1.iname; ITEM iname[20]; and cin << s1.iname; object s1, s2; and get s1.iname; ITEM s1, s2; and cin >> s1.iname; None Hint 67. Individual page of a spreadsheet is known as __________. Page Sheet Document File None Hint 68. What will be the output produced by the below given program? #include void main(){struct emp{int eno ;float sal ;};struct emp E;E.eno = 1234;E.sal = 15643.5;cout << E.eno << E.sal;} 1234 15643.5 1234.15643.5 123415643.5 1234 15643.5 None Hint 69. Which of the following is used for displaying the text "OCTOBER" in BOLD in HTML? OCTOBER OCTOBER None Hint 70. Define the following terms Candidate Key Key used for encryption Field that uniquely identifies a row Null field Table name None Hint 71. What is statement 1 in the below given program? #include void change(int); //Statement1void main(){int a = 5;cout <<"a = " << a << endl;change(a);cout <<"a = " << a;}void change(int b){b = 10;} Function definition Object declaration Function declaration Function call None Hint 72. Give one example of Protocol used in communication. FTP PDF JPG HTML None Hint 73. What is the use of Ctrl + Q in a presentation? Open a presentation Queue a presentation Print a presentation Close a presentation None Hint 74. Define the following terms : Member Functions Functions used only in header files Functions defined outside a class Functions that do not use objects Functions that operate on class members None Hint 75. Which of the following is used for displaying the text "OCTOBER" in BOLD in HTML ? OCTOBER OCTOBER None Hint 76. Find the output produced by the following program segment. void main(){int x = 88;int *y = &x;cout << *y;} *88 &88 &x 88 None Hint 77. What will be the output produced by the below given program ? #include void main(){struct emp{int eno ;float sal ;};struct emp E;E.eno = 1234;E.sal = 15643.5;cout << E.eno << E.sal;} 123415643 123415643.5 Error 1234 15643.5 None Hint 78. Define the following terms: Member Functions Functions defined inside a database Functions that operate on pointers Functions defined in the main program Functions defined inside a class None Hint 79. Define the following terms : Relational Database A database that stores data in tables with relationships among them A database where data is stored in XML format A spreadsheet that can do calculations A database that stores files in folders None Hint 80. Define the following terms Attribute Row in a table Entire table Data type Column header representing a property of data None Hint 81. Expand ARPANET: Advanced Research Projects Agency Network American Research Program and Network Advanced Research Protocol Agency Network Automatic Routing Protocol and Network None Hint 82. Which category of header files among the following has exp(x) function in C++? character text string mathematical None Hint 83. What will be the output produced by the below given program ? #include void main(){int i=0, s=0;while ( i<4 ){s= s + i;i++;}cout << s; return 0;} 3 6 10 0 None Hint 84. Define the following terms: Physical Data Model Logical structure of data Actual data storage format GUI for DBMS HTML Data Design None Hint 85. Expand ARPANET. Advanced Research Projects Agency Network Association of Research and Programming Agency Automated Routing Protocol for Networked Terminals American Research Program and Network None Hint 86. What do you mean by simplex transmission? Data flows in one direction only Data is encrypted Data is compressed Data flows in both directions simultaneously None Hint 87. Which of the following attributes is used to specify the width of border for an image in HTML? line blackline border box None Hint 88. Write the names of member functions, which are accessible from objects of class Learn. Answer the questions from (i) to (iv) based on the below given program (assume all header files are included).class Graduate {int Rollno;char GName[20];float Marks1;protected:void Result();public:Graduate();void Enroll();void Display();};class Lecturer {long TCode;char TName[20];protected:float Salary;public:Lecturer();void Enter();void Show();};class Learn: public Graduate, private Lecturer {long CCode[10];char LearnName[50];char StartDate[8], EndDate[8];public:Learn();void Commence();void CDetail();}; Enter(), Show(), Commence(), Display() Commence(), Result(), Salary, Enroll() CDetail(), Result(), Show(), Enter() Commence(), CDetail(), Enroll(), Display() None Hint 89. The octal equivalent of (343)₁₀ is__________ 453 527 523 537 None Hint 90. Fill in the blanks : Writing data on the data file requires ______________ header file. None Hint 91. Identify the attribute of the <img> tag that is used to specify the URL of the image that helps you to create a image in webpage.* url src source path None Hint 92. What is the use of Ctrl + Q in presentation? Print a Presentation Queue a presentation Open a presentation Close a presentation None Hint 93. What output will be produced if the variable ch is entered as 'a'? #include void main() {char ch;cin >> ch;switch(ch) {case 'A':cout << "A Grade";break;case 'B':cout << "B Grade";break;case 'C':cout << "C Grade";break;case 'D':cout << "D Grade";break;default:cout << "NO Grade";}} a Grade NO Grade Error A Grade None Hint 94. Why HTML document should be saved with the extension .html? For security purposes So the computer knows it’s a text file To reduce file size To allow browsers to interpret it as a webpage None Hint 95. Which of the following is supported by Word Processor ? Printing data Creating data All the above Formatting data None Hint 96. Which of the following can be added on an Impress presentation? All the above Picture Text Audio None Hint 97. What do you mean by bandwidth? Number of bits in a file Amount of memory used The speed of computer Maximum data transfer rate of a network None Hint 98. Define the following terms : operator To assign values to variables To access local variables To access class or global members To define arrays None Hint 99. State whether the following statements are True or False: A pointer is a variable that refers to the location of another variable. Depends on the context True None of these False None Hint 100. Define the following terms Relational Database Stores only images Flat file system Internet-based spreadsheet Data stored as interlinked tables None Hint 101. Which category of header files among the following has exp(x) function in C++? mathematical text string character None Hint 102. Define Virtual Base Class. Display the structure by taking an example or with syntax. To increase memory usage by duplicating base classes To enable operator overloading in base class To allow base class constructors to be private To avoid multiple copies of base class during multiple inheritance None Hint 103. What is the header file for log10(x)? None Hint 104. Name any two components of Writer Window Border and Title Clipboard and Taskbar Menu Bar and Status Bar HTML and Body None Hint 105. Which among the following is an example of spreadsheet software? Impress All the above MS Word Lotus 1-2-3 None Hint 106. Which among the following is an example of spread sheet software ? All the above Lotus 1-2-3 Impress MS Word None Hint 107. Define the following terms: Degree Number of columns Number of rows Type of data Number of records None Hint 108. Define the following terms: Objects A pointer to a class A class An instance of a class A type of variable None Hint 109. Fill in the blanks : ios::app opens the file in ______________ mode. Overwrite Read Append Write None Hint 110. Give one word Cell in Calc is ______. An address A workbook Intersection of a row and column A rectangle None Hint 111. Which category of header files among the following has exp(x) function in C++? string character mathematical text None Hint 112. Which tag is used to create a heading with the biggest size in a webpage? None Hint 113. What do you mean by transfer rate? The number of characters stored in memory The speed at which data is transmitted over a communication channel The amount of time taken to boot a computer The number of bits transferred per minute None Hint 114. Which type of Inheritance is illustrated in the above C++ code? Answer the questions from (i) to (iv) based on the below given program (assume all header files are included).class Graduate {int Rollno;char GName[20];float Marks1;protected:void Result();public:Graduate();void Enroll();void Display();};class Lecturer {long TCode;char TName[20];protected:float Salary;public:Lecturer();void Enter();void Show();};class Learn: public Graduate, private Lecturer {long CCode[10];char LearnName[50];char StartDate[8], EndDate[8];public:Learn();void Commence();void CDetail();}; Hierarchical Inheritance Multilevel Inheritance Hybrid Inheritance Multiple Inheritance None Hint 115. Name any two ways of selecting text in OpenOffice Writer Double-click the title bar Type the text again Click and drag the mouse pointer over the text Press the Home key None Hint 116. Identify the closing tag for : no ending tag None Hint 117. Which of the following is used for displaying the text "OCTOBER" in BOLD in HTML? OCTOBER OCTOBER None Hint 118. What is the header file for log10(x)? iostream string cmath ctype None Hint 119. Define the following terms: Domain Database user Allowed value set for a column Web address List of tables None Hint 120. Define the following terms: Objects Files in a project Functions declared in a class Variables of user-defined types (class instances) Classes that have no functions None Hint 121. Which of the following is used to create line break in HTML? None Hint 122. The decimal equivalent of (AAA)₁₆ is___________ 2755 2730 2850 2738 None Hint 123. Output of the below program if input is 'a' #include void main(){char ch;cin >> ch;switch(ch){case 'A' :cout << "A Grade";break;case 'B' :cout << "B Grade";break;case 'C' :cout << "C Grade";break;case 'D' :cout << "D Grade";break;default :cout << "NO Grade";}} a Grade A Grade NO Grade Compilation Error None Hint 124. Write the names of all the members, which are accessible from objects of class Lecturer. Answer the questions from (i) to (iv) based on the below given program (assume all header files are included).class Graduate {int Rollno;char GName[20];float Marks1;protected:void Result();public:Graduate();void Enroll();void Display();};class Lecturer {long TCode;char TName[20];protected:float Salary;public:Lecturer();void Enter();void Show();};class Learn: public Graduate, private Lecturer {long CCode[10];char LearnName[50];char StartDate[8], EndDate[8];public:Learn();void Commence();void CDetail();}; TCode, Salary Result(), Show() Enter(), Show() Salary, Enter() None Hint 125. What is statement 1 in the below given program ? Assume all header files are included.#include void change(int); //Statement1void main(){int a = 5;cout <<"a = " << a << endl;change(a);cout <<"a = " << a;}void change(int b){b = 10;} Function call Function definition Function declaration None of these None Hint 126. What will be the output produced by the below given program if the value of the variable x is 18 ? #include int main() {int x;int y;cin >> x;y = 3;if(x/y < 12)cout << "Good Morning";elsecout << "Good Afternoon";return 0;} Good Afternoon No Output Good Morning Good Evening None Hint 127. Identify the closing tag for : no ending tag None Hint 128. Which of the following can be added in an Impress presentation? Picture All the above Audio Text None Hint 129. Which of the following is used to create line break in HTML ? None Hint 130. What will be the output produced by the below given program ? #include void main(){int i = 0, s = 0;while(i < 4){s = s + i;i++;}cout << s;return 0;} 3 10 6 0 None Hint 131. Which of the following is used to create a bulleted list in HTML? None Hint 132. Identify the closing tag for: no ending tag None Hint 133. Define the following terms: Primary Key Uniquely identifies rows Stores only numeric values Can be null Allows duplicate values None Hint 134. State whether the following statements are True or False Object pointers are used to create objects during run time. False Only in Python Not applicable to C++ True None Hint 135. What is the ASCII value of 'B'? 65 66 64 97 None Hint 136. Find the output produced by the following program segment. Assume all header functions are included. void main(){int x = 88;int *y = &x;cout<<*y;} &x &88 *88 88 None Hint 137. Object pointers are used to create objects during run time. Object pointers are used to create objects during run time. True False Only in functions Only in Java None Hint 138. Name one browser that helps us to open a HTML document Google Chrome MS Paint FileZilla VLC None Hint 139. What is the use of Ctrl + Q in presentation ? Queue a presentation Close a presentation Open a presentation Print a Presentation None Hint 140. Which of the following is used to create Bulleted List in HTML? None Hint 141. Define the following terms: operator Scope resolution operator Arithmetic operator Assignment operator Comparison operator None Hint 142. What do you mean by analog transmission? Transmission using continuous signals Transmission using digital signals only Transmission using binary values only Transmission using packets None Hint Time's up Share: admin Previous post Sociology Nios Plus Two PQ VIII June 27, 2025 Next post Accountancy Nios Plus Two PQ I June 30, 2025