Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

Cognizant GenC Next Web UI Questions

GenC Next Web UI Questions 2022

Cognizant GenC Next Web UI Section is one of the most important section for GenC next 2022 hiring . Here UI refers to User Interface. From this section you will be getting multiple choice questions in section 1 of hiring test. This section will test your conceptual and code analysis. In Cognizant GenC Next Web UI Section plays an important role, as it is considered both in MCQ section and in coding section as well.

Cognizant GenC Next Web UI Questions 2022
Total number of Questions in Cognizant GenC Next Web UI

20 - 25 Question

Total Question

Time limit for Cognizant GenC Next Web UI

40 minutes

Total Time

Marks rewarded for Cognizant GenC Next Web UI

1 Mark/Question

Marking Scheme

No negative marking in Cognizant GenC Next Web UI

No

Negative Marking

Practice Questions for GenC Next Web UI Section

1. Which of the following properties promises object support?

State

State

29.86%

Result

Result

5.41%

Pre

Pre

4.21%

Both a and b

Both a and b

60.52%

Properties  that promise object support are state and result.

2. First javascript is known as _______ and after that it is known as______, then finally become javascript

Mocha livescript

Mocha livescript

45.42%

E-script mocha

E-script mocha

15.27%

Livescript mocha

Livescript mocha

14.66%

Livescript E-script

Livescript E-script

24.64%

First javascript is known as Mocha and after that it is known as Livescript, then finally become javascript

3. Math.random() returns a value in the __________ range.

0 to 1

0 to 1

47.09%

1 to 100

1 to 100

25.39%

-1 to 1

-1 to 1

6.98%

None of the mentioned

None of the mentioned

20.54%

 Math.random() returns a value in the 0 to 1 range.

4. Guess the output:

const x =[15, 4, 19, 26, 51];
const y = x.filter (myFunction);
function myFunction (value)
{
  return value > 18;
}

console.log (y);

51,26,19

51,26,19

12.34%

19,26,51

19,26,51

75.94%

15,4

15,4

4.81%

Error

Error

6.9%

The filter() method creates a new array with array elements that passes a test. So in the given code y will contain 19,26,51 elements

5. What will be the output of the following code:

const x =[45, 4, 9, 16, 25];
const y = x.map (myFunction);
function myFunction (value)
{
  B B return value * 2;
}

console.log (x);
console.log (y);

 

90,8,18,32,50

90,8,18,32,50

90,8,18,32,50

90,8,18,32,50

16.34%

45,4,9,16,25

90,8,18,32,50

45,4,9,16,25

90,8,18,32,50

62.96%

45,4,9,16,25

45,4,9,16,25

45,4,9,16,25

45,4,9,16,25

8.28%

Error

Error

12.42%

map() method does not change the actual array.

6. What will the output of the following code:

const person = { fname: "Sakku", lname: "Sharma", age:20 };

let text = "";
for (let x in person)
  {
    B B text += person[x];
  }

console.log (text);

SakkuSharma20

SakkuSharma20

58.26%

Sakku Sharma 20

Sakku Sharma 20

28.21%

fname:Sakku lnameSharma age20

fname:Sakku lnameSharma age20

10.55%

None

None

2.98%

The for in loop iterates over a person object

  • Each iteration returns a key (x)
  • The key is used to access the value of the key
  • The value of the key is person[x].

7. Which of the following represents a valid template literals to define a string?

‘Welcome to Prepinsta’

‘Welcome to Prepinsta’

9.37%

"Welcome to Prepinsta"

"Welcome to Prepinsta"

74.51%

`Welcome to Prepinsta`

`Welcome to Prepinsta`

15.25%

None

None

0.87%

Template Literals use back-ticks (``) rather than the quotes ("") to define a string.

8. Suyash wants to add a background image in the div element of the page. Among the following, Which is the correct one for doing so, image  is ‘img.jpg’ ?

  1. <div style="background-image - 'img_girl.jpg';">
  2. <div style="background-image - url('img_girl.jpg');">
  3. <div style="background-image: url('img_girl.jpg');">
  4. None of the mentioned

Option 1

Option 1

11.72%

Option 2

Option 2

9.43%

Option 3

Option 3

68.05%

Option 4

Option 4

10.8%

The correct code is

  • <div style="background-image: url('img_girl.jpg');"></div>

9. Among the following code , which of the following is the correct code for setting the body background color - green?

  • * { backgroung_color - green; }
  • body{background - color:green;}
  • #body{background - color:green;}
  • .body{background_color - green;}

Option 1

Option 1

6.68%

Option 2

Option 2

65.21%

Option 3

Option 3

12.67%

Option 4

Option 4

15.44%

The correct css code for setting body background color green is :

  • body { background - color:green; }

10.

< h2 id = "first" >< /h2 > 
<script > var str = 'Let\'s';
document.getElementById ("first").innerHTML = str;
</script >

Let

Let

12.11%

Let\’s

Let\’s

23.52%

Let’s

Let’s

51.31%

Error

Error

13.06%

If an apostrophe is present in the string then a backslash is added before it. The string skips the execution of the character after a backslash.

×

Please login to report

Preparation Material for GenC Next Web UI Section 2021-22

Below are all the topics mentioned from which you can expect MCQ Questions in Section 1 of the hiring test

  • HTML
    • Structure
    • Section
    • Header
    • Footer
    • Image
    • Anchor
    • Table
    • Block & Inline statements
    • Forms
  • CSS
    • Basics
    • Style Application
  • JavaScript Event Handling

GenC Next Web UI Section Details

Web UI SectionGenC Next
Number of Questions20 – 25 Questions
Time Limit40 Mins
DifficultyMedium
Negative MarkingNo

FAQs about Cognizant GenC Next

What is the sectional cut off for this Section?

There is no sectional cut-off, however it is mandatory that you get at least 18-20 questions right from the pack of 20-25 questions in the MCQ section to get a higher overall score

What is the difficulty level of Cognizant Genc next exam?

The GenC Next hiring exam is commparatively of higher difficulty level than the normal GenC exam. This hiring process is mainly focused for hiring coding proficient students, hence the package offered of GenC next is also higher than GenC.

What is the package offered for Cognizant Genc next exam?

The package offered for GenC Next candidates is 6.75 LPA