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

30.78%

Result

Result

5.05%

Pre

Pre

3.98%

Both a and b

Both a and b

60.18%

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

E-script mocha

E-script mocha

14.98%

Livescript mocha

Livescript mocha

15.6%

Livescript E-script

Livescript E-script

25.43%

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

1 to 100

1 to 100

25.63%

-1 to 1

-1 to 1

6.67%

None of the mentioned

None of the mentioned

21.63%

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

19,26,51

19,26,51

75.49%

15,4

15,4

4.87%

Error

Error

7.31%

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

45,4,9,16,25

90,8,18,32,50

45,4,9,16,25

90,8,18,32,50

66.04%

45,4,9,16,25

45,4,9,16,25

45,4,9,16,25

45,4,9,16,25

7.34%

Error

Error

10.41%

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

Sakku Sharma 20

Sakku Sharma 20

27.66%

fname:Sakku lnameSharma age20

fname:Sakku lnameSharma age20

9.71%

None

None

3.3%

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

"Welcome to Prepinsta"

"Welcome to Prepinsta"

73.12%

`Welcome to Prepinsta`

`Welcome to Prepinsta`

15.88%

None

None

1.4%

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

Option 2

Option 2

11.13%

Option 3

Option 3

67.35%

Option 4

Option 4

10.2%

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

Option 2

Option 2

64.43%

Option 3

Option 3

13.04%

Option 4

Option 4

14.71%

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

Let\’s

Let\’s

23.36%

Let’s

Let’s

49.42%

Error

Error

14.09%

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