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