Skip to main content

TCS Xplore 2023 - UI ( html , css ,JavaScript ) MCQ quistion for best practice ( iON Proctored Assessment )

                   Multiple Choice Questions on UI - Part 1




1.       Which of the below is the correct way to set a font size?

a.       h2 {font-size:200pixels;}                       b. h2 {font-size:200;}

b.       h2 {font-size:200px;}                              d. h2 {font-size:200%;}


2       To specify table border in CSS _____ proper is used

a.       table-border                                              b. border

b.       Tb-border                                                   D. tbl-border


3.       Block element can be aligned by setting the left and right margin to “align”

a.       TRUE                                                         b. FALSE


4.      Output of the below script-

         <html>

<body>

<p id=”showresult”> <b> Welcome To TCS </b> </p>

<input type=”button” onclick=”display()” value=” Click Me”/>

<script>

function display()

                {

                b = document.getElementById(‘showresult’).innerHTML;

                alert(b)

                }

</script>

</body>

</html>

a.       Internal Error                                             b. None of the option

b.       <b> Welcome TO TCS </b>                    d. Welcome To TCS


5.        Output of below script.

<html>

<body>

<input type=”text” name=”Java” value=”JDK” />

<input type=”text” name=”Version” value=”1.8” />

<button onclick=”display()”> Display </button>

<div id = “content”></div>

<script>

    function display() {

    a = document.getElementByTagName(“input”);

document.getElementById(‘content’).innerText = a[0].value+a[1].value;

}

</script>

</body>

</html>

a.       None of the Option                      b. JDK1.8

b.       JavaVersion                                 d. Internal Error


6.     Which of the following attribute is used to define equal style for element for the same class name ?

a.       class                                     c. id

b.       element                                d. universal


7.     Which one of the following is invalid in html5 ?

a.       datetime                      b. day

b.       month                         d. date


8.      Which of following is the correct syntax for applying table border ?

a.       table , th , td{border=1px solid black;}

b.       table , th , td{border-1px solid black;}

c.       table , th , td{1px solid black;}

d.       table , th , td{border:1px solid black;}


9.      Which of the following is valid margin property value ? 

a.      solid                   c.       auto

b.      dashed                d.      dotted


10.       Which among of following is not css background property ? 

a.      background-attachment               c.        background-repeat    

b.       background-position                   d.      background-render


Some key points : 

1.     All html tags have closing tag ? 

        Ans : False

2.    p{color:green;} <p> Education inTalk</p> -- paragraph printed in which color ?

       Ans : green 

3.    Emphasized text in html : 

       Ans  : <em>

4.    text-align : justify ; -- text will align in which direction ?

       Ans Center

--------------------------------------------------------------------------------------------------------------   

              Multiple Choice Questions on UI - Part 2




11.     Find the value of x -  var x=100 + 5**3  ?

a.      125                   c.       225

b.      115                  d.      NAN


12.     Which of the following is inline element ?

a.      <hr>                c.       <br>

b.      <img>               d.      <a>


13.      Output of code snippet ?

<script type="text/javascript" language="javascript"> var a = "Scaler"; var result = a.substring(2, 4); document.write(result); </script>

Ans : al


14.     Output of code snippet ?

 <script type="text/javascript" language="javascript">

var x=12; var y=8; var res=eval("x+y"); document.write(res); </script>
Ans :

15. Output of code Snippet ?

var a = 1; var b = 0; while (a <= 3) { a++; b += a * 2; print(b); }


16. Output of code Snippet ?

var a = Math.max(); var b = Math.min(); print(a); print(b);
Ans : -infinity , infinity

17. Output of code Snippet ?

var a = Math.max() < Math.min(); var b = Math.max() > Math.min(); print(a); print(b);
Ans : true , false

18. Output of code Snippet ?

let sum = 0; const a = [1, 2, 3]; a.forEach(getSum); print(sum); function getSum(ele) { sum += ele; }
Ans :  6

19. Output of code Snippet ?

  1. <script>  
  2.   
  3. var arr=[4,3,,1];    
  4.   for(i=0;i<4;i++){  
  5. document.writeln(arr[i]);  
  6. }  
  7. </script> 
 Ans : 4 3 undefined 1


20. Output of code Snippet ?

  1. <p id="demo"></p>  
  2. <script>  
  3. functionourFunction()  
  4. {  
  5. document.getElementById("demo").innerHTML=Math.abs(-7.25);  
  6. }  
  7. </script>
Ans : 25

Thank you !



Comments

Popular posts from this blog

Complete Strategy to clear TCS Xplore IPA in One Attempt Now ( 80+ Score )

  So hello Everyone , Here are the all Links from where you can Practice !  All the resources are searched from my best !  1. For KYT and Bizzskill  Link :- tcs Xplore course  2. Unix Operating system Link :-    a.  click here Link 1 b.  click here Link 2 c.  Click here Link 3   3. UI  Link :-  click here 4. SQL and Pl SQL Link : -  Click here Click here click here 5. Java MCQ  Link :-  click here click here click here 6. Java coding :-  Access the playlist on YouTube :-  click here to watch Access the blogs :-  click here All in one link :-   click here

TCS IPA previous year quistion ( 35 marks ) , Quistion , Input , output

 Problem Statement Video Link :    https://youtu.be/XCBvfJAo908 Create a class TravelAgencies with below attributes: regNo – int agencyName – String pakageType – String price – int flightFacility – boolean Write getters, setters for the above attributes . Create constructor which takes parameter in the above sequence. Create class Solution with main method. Implement two static methods – findAgencyWithHighestPackagePrice and agencyDetailsforGivenIdAndType in Solution class. findAgencyWithHighestPackagePrice method: This method will take array of TravelAgencies objects as an input parameter and return the highest package price from the given array of objects. agencyDetailsForGivenldAndType method: This method will take three input parameters -array of TravelAgencies objects, int parameter regNo and String parameter packageType. The method will return the TravelAgencies object based on below conditions. FlightFacility should be available. The input parameters(regNo and packageType) shoul

TCS IPA previous year problems solved [input + output ] in JAVA - (35 marks )

  Problem Statement :  Video Link :   Click Here Create a class AutonomousCar with the below attributes: carld – int brand – String   noOfTestsConducted – int noOfTestsPassed- int environment – String grade – String Write getters, setters for the above attributes . Create constructor which takes parameter in the above sequence except grade. Create class Solution with main method. Implement two static methods – findTestPassedByEnv and updateCarGrade in Solution class. findTestPassedByEnv method: This method will take two input parameters -array of AutonomousCar objects and string parameter environment. The method will return the sum of the noOfTestsPassed attribute from autonomousCar objects for the environment passed as parameter. If no autonomousCar with the given environment is present in the array of AutonomousCar objects, then the method should return 0. updateCarGrade method: This method will take a String parameter brand, along with the array of AutonomousCar objects. The method