Cognizant GenC Next Web UI Questions

GenC Next Web UI Questions and Answer

Cognizant GenC Next Web UI Section is one of the most important section for GenC Next 2025 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.

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

2 Question

Total Question

Time limit for Cognizant GenC Next Web UI

50 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

32.02%

Result

Result

5.32%

Pre

Pre

3.66%

Both a and b

Both a and b

58.99%

A JavaScript Promise object can be:

  • Pending
  • Fulfilled
  • Rejected

The Promise object supports two properties: state and result.

While a Promise object is "pending" (working), the result is undefined.

When a Promise object is "fulfilled", the result is a value.

When a Promise object is "rejected", the result is an error object.

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

Mocha livescript

Mocha livescript

43.65%

E-script mocha

E-script mocha

15.21%

Livescript mocha

Livescript mocha

16.46%

Livescript E-script

Livescript E-script

24.69%

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

44.13%

1 to 100

1 to 100

28.07%

-1 to 1

-1 to 1

6.22%

None of the mentioned

None of the mentioned

21.59%

The Math. random() function returns a floating-point, pseudo-random number in the range 0 to less than 1 (inclusive of 0, but not 1) with approximately uniform distribution over that range — which you can then scale to your desired 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.11%

19,26,51

19,26,51

76.45%

15,4

15,4

4.19%

Error

Error

7.24%

The filter() method creates an array filled with all array elements that pass a test (provided by a function).

filter() does not execute the function for empty array elements.

filter() does not change the original array.

Hence, in the given code 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)
{
   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.52%

45,4,9,16,25

90,8,18,32,50

45,4,9,16,25

90,8,18,32,50

70.77%

45,4,9,16,25

45,4,9,16,25

45,4,9,16,25

45,4,9,16,25

5.61%

Error

Error

7.11%

The map() method creates a new array with the results of calling a function for every array element.

The map() method calls the provided function once for each element in an array, in order.

map() does not execute the function for empty elements.

map() does not change the original 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)
  {
     text += person[x];
  }

console.log (text);

SakkuSharma20

SakkuSharma20

62.25%

Sakku Sharma 20

Sakku Sharma 20

24.51%

fname:Sakku lnameSharma age20

fname:Sakku lnameSharma age20

10.07%

None

None

3.17%

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’

8.84%

"Welcome to Prepinsta"

"Welcome to Prepinsta"

72.53%

`Welcome to Prepinsta`

`Welcome to Prepinsta`

17.16%

None

None

1.47%

Template literals are literals delimited with backticks ( ` ), allowing embedded expressions called substitutions. Untagged template literals result in strings, which makes them useful for string interpolation (and multiline strings, since unescape newlines are allowed).

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.9%

Option 2

Option 2

11.78%

Option 3

Option 3

65.77%

Option 4

Option 4

10.55%

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

7.63%

Option 2

Option 2

65.03%

Option 3

Option 3

12.87%

Option 4

Option 4

14.46%

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.65%

Let\’s

Let\’s

24.82%

Let’s

Let’s

47.47%

Error

Error

15.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 2025

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 Questions2 Questions
Time Limit50 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