Cognizant GenC Next Web UI Questions

GenC Next Web UI Questions 2023

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

31.06%

Result

Result

5.04%

Pre

Pre

4.07%

Both a and b

Both a and b

59.84%

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

44.81%

E-script mocha

E-script mocha

15.32%

Livescript mocha

Livescript mocha

15.49%

Livescript E-script

Livescript E-script

24.38%

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

46.79%

1 to 100

1 to 100

25.35%

-1 to 1

-1 to 1

6.73%

None of the mentioned

None of the mentioned

21.13%

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

19,26,51

19,26,51

75.34%

15,4

15,4

4.93%

Error

Error

7.48%

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

45,4,9,16,25

90,8,18,32,50

45,4,9,16,25

90,8,18,32,50

65.18%

45,4,9,16,25

45,4,9,16,25

45,4,9,16,25

45,4,9,16,25

7.68%

Error

Error

10.89%

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

59.32%

Sakku Sharma 20

Sakku Sharma 20

27.38%

fname:Sakku lnameSharma age20

fname:Sakku lnameSharma age20

9.89%

None

None

3.42%

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

"Welcome to Prepinsta"

"Welcome to Prepinsta"

72.69%

`Welcome to Prepinsta`

`Welcome to Prepinsta`

16.09%

None

None

1.45%

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

Option 2

Option 2

10.54%

Option 3

Option 3

67.62%

Option 4

Option 4

10.54%

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

Option 2

Option 2

64.62%

Option 3

Option 3

13.08%

Option 4

Option 4

14.81%

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

13.35%

Let\’s

Let\’s

23.51%

Let’s

Let’s

49.6%

Error

Error

13.55%

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 2023

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