task_id
stringlengths 6
6
| question
stringlengths 12
399
| choices
sequencelengths 2
4
|
---|---|---|
k00401 | What is the output of the following code:
$("h1.heading") | [
"heading element with class = \"heading\"",
"heading element with id = \"heading\"",
"heading element with name = \"heading\"",
"heading element with slector= \"heading\""
] |
k00402 | In jquery CSS(‘width’) is the way to change the width of? | [
"Selector",
"Element",
"Fade effect",
"Radio button"
] |
k00403 | How do we get the JSON data using HTTP requests? | [
"jQuery.getScript( url, [callback] )",
"jQuery.post( url, [data], [callback], [type] )",
"jQuery.post( url, [type] )",
"jQuery.getJSON( url, [data], [callback] )"
] |
k00404 | Which of the below method is used to parse the JSON text in jQuery? | [
"jQuery.each() Method",
"jQuery.conflict() Method",
"jQuery.noConflict() Method",
"jQuery.parseJSON() Method"
] |
k00405 | Which of the following is considered as a highly overloaded function in jQuery? | [
"jQuery()",
"$()",
"script()",
"Both jQuery() and $()"
] |
k00406 | In jQuery which one of the below scripts is used to show the correct toggle option? | [
"fadeIn()",
"fadeOut()",
"toggle()",
"D) fadeToggle()"
] |
k00407 | Which of the following is the correct output for finding the total argument in function? | [
"Using args. length Property",
"Using arguments.length Property",
"Both of the above",
"None of the above"
] |
k00408 | Which of the below is the correct way to get the browser vendor information? | [
"Modal",
"Version",
"Browser",
"Navigator"
] |
k00409 | If you want to add or remove CSS classes which of the following jQuery method is Used? | [
"toggleClass()",
"switch()",
"altClass()",
"switchClass()"
] |
k00410 | How do you get the character at the specified index at jQuery? | [
"GetCharAt()",
"CharAt()",
"CharacterAt()",
"None Of The Above"
] |
k00411 | Which of the following is identical for $(document).ready(function)? | [
"jQuery(function)",
"$(function)",
"#(function)",
"read(function)"
] |
k00412 | Which selector is used to select input elements with having a text field? | [
"$(:password)",
"$(\":text\")",
"$(\":password\")",
"$(:text)"
] |
k00413 | How do you change the style in a selected element in jQuery which one of the following is the correct way for this? | [
"css()",
"Scss()",
"html()",
"style()"
] |
k00414 | Which of the following is the correct syntax to set the background color of all h1 elements to Green in jQuery? | [
"$(\"h1\").html(\"background-color\",\"Green\");",
"$(\"h1\").layout(\"background-color\",\"Green\");",
"$(\"h1\").style(\"background-color\",\"Green\");",
"$(\"h1\").css(\"background-color\",\"Green\");"
] |
k00415 | How we find the current selection against an expression in jQuery? | [
"getIs( selector )",
"findls( selector )",
"is( selector )",
"None of the above."
] |
k00416 | Which of the below method is used to binds a handler of one or more events in jQuery? | [
"attach(type, [data], fn )",
"catch(type, [data], fn )",
"bind( type, [data], fn )",
"All of the above"
] |
k00417 | If the content of two or more objects is merged into the first object then which below method is used? | [
"jQuery check() Method",
"jQuery extend() Method",
"jQuery obj() Method",
"None of the above"
] |
k00418 | Which sign is used for the shortcut of the jquery? | [
"@ sign",
"% sign",
"& sign",
"$ sign"
] |
k00419 | What is the correct occurrence of the following code:
$(\'#functioncode\').find(\'list\') .width(300).addClass(\'selectedList\') | [
"AJAX",
"Animating",
"Chaining",
"Event bubbling"
] |
k00420 | Which parse method is used to return the object whose properties represent the path ? | [
"path.parse()",
"path.Reset()",
"path.countReset()",
"parse.countReset()"
] |
k00421 | Which of the below is temporary memory storage that stores the data when it is being moved from one place to another ? | [
"Buffer.copy()",
"Buffer.include()",
"Buffer.copy()",
"Buffer.equals()"
] |
k00422 | Which below method is method to stop the time in Node.js ? | [
"console.timeEnd()",
"console.timeStamp()",
"console.trace()",
"console.end()"
] |
k00423 | Which cipher method is used to return the buffer containing the value of cipher object ? | [
"cipher.last()",
"cipher.start()",
"cipher.final()",
"cipher.update()"
] |
k00424 | Which module is used to update the cipher according to the given encoding format ? | [
"crypto.incrypt()",
"cipher.update()",
"cipher.increment()",
"crypto.scrypt()"
] |
k00425 | Which Node.js method allows us to execute a block of code or a function after a set period? | [
"Buffer",
"Timer",
"Speed",
"Console"
] |
k00426 | Which method is used as a name resolution facility in Node.js ? | [
"Assert",
"Http",
"DNS",
"Lookup"
] |
k00427 | Which below method is used to get and set the fragment portion of the URL in Node.js ? | [
"url.encode",
"url.decrypt",
"url.encrypt",
"url.hash"
] |
k00428 | Which dependencies in Node.js is used to abstract non-blocking Input Output operations to a consistent interface ? | [
"Open SSL",
"v8",
"libuv",
"Zlib"
] |
k00429 | How we find the relative path from a given path to another path based on the current working directory ? | [
"path.relative()",
"path.parse()",
"path.absolute()",
"path.imaginary()"
] |
k00430 | How do we send the message from one socket to another socket in Node.js ? | [
"socket.send()",
"socket.get()",
"socket.post()",
"socket.ref()"
] |
k00431 | Which of the below is the correct syntax for installing the Nodemon in the Node.js application ? | [
"npm install -g nodemon",
"node install -g nodemon",
"node install node",
"node install -l nodemon"
] |
k00432 | Which type of application does not prefer the backend as node.js ? | [
"Single Page",
"JSON APIs based",
"CPU intensive",
"Data-Intensive"
] |
k00433 | Which of the below options is correct about package.json in the node.js application? | [
"It is present in the root directory of any Node application.",
"It is used to define the properties of a package.",
"It is used to update the dependencies of an application.",
"All of the above."
] |
k00434 | Which fs module in Node.js is used to get file information ? | [
"fs.open(path, flags[, mode], callback)",
"fs.stat(path, callback)",
"fs.readFile(path, flags[, mode], callback)",
"None of the above"
] |
k00435 | Which module in node.js provides access to various utility functions ? | [
"Utility",
"URL",
"UDP",
"Process"
] |
k00436 | Which below method is used to run an asynchronous function and get a callback in the node.js ? | [
"util.format()",
"util.inherits()",
"util.callbackify()",
"util.debuglog()"
] |
k00437 | Which below method is used to get the IP addresses of the current server in Node.js ? | [
"dnsPromises.resolve4()",
"dnsPromises.resolveAny()",
"dnsPromises.resolveMx()",
"dnsPromises.getServers()"
] |
k00438 | Which DNS protocol is used to resolve the IPv4 address for the specified hostname ? | [
"dns.resolveNaptr()",
"dns.resolve6()",
"dns.resolvePtr()",
"dns.resolve4()"
] |
k00439 | Which modules in Node.js are designed to handle binary raw data ? | [
"Process",
"Stream",
"Path",
"Buffers"
] |
k00440 | Which below server method is used to set the time out value from the socket ? | [
"http.server.setTimeout()",
"http.server.timeout()",
"http.server.close()",
"http.server.headersTimeout()"
] |
k00441 | Which below method in Node.js is used to create a new Deflate object ? | [
"zlib.createDeflate()",
"zlib.createGunzip()",
"zlib.createUnzip()",
"zlib.createZip()"
] |
k00442 | Which of the below method is used to return the current working directory of the process ? | [
"cwd();",
"cmd();",
"pwd();",
"None of the above"
] |
k00443 | What is the default scope in the Node.js application ? | [
"Global",
"Local",
"Global Function",
"Local to object"
] |
k00444 | How do we return a path string from the given path object in Node.js ? | [
"path.get()",
"path.set()",
"path.format()",
"path.return()"
] |
k00445 | Which template engines can be used with Node.js ? | [
"Jade",
"Vash",
"Handlebars",
"All of the above"
] |
k00446 | Which of the below fs module is used to truncate a file ? | [
"fs.delete(fd, len, callback)",
"fs.remove(fd, len, callback)",
"fs.ftruncate(fd, len, callback)",
"None of the above."
] |
k00447 | Which of the below command will show all the modules installed locally ? | [
"npm ls -g",
"npm ls",
"node ls -g",
"node ls"
] |
k00448 | Which of the below modules is not a built-in module in Node.js ? | [
"zlib",
"HTTPS",
"dgram",
"fsread"
] |
k00449 | How modules in Node.js can be connected from one component to another ? | [
"Expose",
"Module",
"Exports",
"All of the above"
] |
k00450 | Node.js is written in | [
"JavaScript",
"C",
"C++",
"All of the above"
] |
k00451 | Which v8 method is used to serialize any type of data into a buffer using default serializer ? | [
"v8.Serializer.writeValue()",
"v8.Serializer.writeHeader()",
"v8.serialize()",
"v8.deserialize()"
] |
k00452 | Which property is used to yields an object listing Zlib-related constants ? | [
"zlib.constants()",
"zlib.createBrotliDecompress()",
"zlib.createUnzip()",
"zlib.createBrotliCompress()"
] |
k00453 | Which method finds the maximum number of sockets that will be left open in the free state ? | [
"agent.minFreeSockets",
"agent.maxFreeSockets",
"agent.maxSockets",
"agent.minSockets"
] |
k00454 | Which method is used to return all the remaining input stored in the internal buffer as a string ? | [
"stringDecoder.start()",
"stringDecoder.end()",
"stringEncoder.start()",
"stringEncoder.end()"
] |
k00455 | Which data-handling method and is used to read or write input into output sequentially ? | [
"Utility",
"Timer",
"Decoder",
"Stream"
] |
k00456 | Which below method is responsible for parsing and formatting URL query strings ? | [
"Query",
"String decoder",
"steam",
"VM"
] |
k00457 | Which below in Node.js are used to join a number of path segments ? | [
"path.argv()",
"path.join()",
"path.chdir()",
"path.argv()"
] |
k00458 | How do we get the filename portion of a path to the file in Node.js ? | [
"path.extname()",
"path.basename()",
"path.dirname()",
"path.delimiter"
] |
k00459 | Which method in Node.js are used to get system uptime in seconds ? | [
"os.freemem()",
"os.uptime()",
"os.getPriority()",
"os.homedir()"
] |
k00460 | Which below module is used to get end-of-line character as specified by the operating system ? | [
"os.EOL",
"os.endianness()",
"os.cpus()",
"os.arch()"
] |
k00461 | Node.js provides utilities for URL resolution and parsing______? | [
"URL()",
"Global()",
"Timers()",
"Buffers()"
] |
k00462 | Which of the below module handles file operations like creating, reading, deleting in Node.js ? | [
"Crypto module",
"File module",
"Os module",
"Path module"
] |
k00463 | Which below method is used to check whether the given path is an absolute path or not in Node.js ? | [
"path.Query()",
"path.render()",
"path.isAbsolute()",
"path.Absolute()"
] |
k00464 | Which DNS protocol is used to resolve name server records for the specified hostname ? | [
"dns.resolveNs()",
"dns.resolveNapt()",
"dns.resolveMx()",
"dns.resolvePtr()"
] |
k00465 | What is NumPy? | [
"A plotting library",
"A machine learning framework",
"A scientific computing library",
"A web development framework"
] |
k00466 | Question: How can you save a Pandas DataFrame to a CSV file? | [
"df.save_csv(\"filename.csv\")",
"df.write_csv(\"filename.csv\")",
"df.to_csv(\"filename.csv\")",
"df.export_csv(\"filename.csv\")"
] |
k00467 | How can you perform a time-based resampling in Pandas? | [
"df.resample()",
"df.time_resample()",
"df.groupby(\"time_column\").resample()",
"df.time_groupby().resample()"
] |
k00468 | What is the purpose of the melt() function in Pandas? | [
"To melt a DataFrame into a longer format",
"To create a melted cheese plot",
"To melt a DataFrame into a wider format",
"To melt a DataFrame into a binary format"
] |
k00469 | How can you handle missing values in a Pandas DataFrame? | [
"Use df.fillna(value) to replace missing values",
"Use df.dropna() to remove rows with missing values",
"Both A and B",
"Neither A nor B"
] |
k00470 | How can you merge two DataFrames in Pandas? | [
"df.concat()",
"df.join()",
"df.merge()",
"df.combine()"
] |
k00471 | Write code to normalize a NumPy array arr by scaling its values to be between 0 and 1. | [
"normalized_arr = (arr - arr.min()) / (arr.max() - arr.min())",
"normalized_arr = np.scale(arr)",
"normalized_arr = arr.normalize()",
"normalized_arr = (arr - arr.mean()) / arr.std()"
] |
k00472 | How can you calculate the mean along a specific axis of a 2D NumPy array arr? | [
"mean_values = np.mean(arr, axis=1)",
"mean_values = arr.mean(axis=0)",
"mean_values = np.average(arr, axis=1)",
"mean_values = arr.mean(axis=2)"
] |
k00473 | Write code to find the intersection of two NumPy arrays a and b. | [
"intersection = np.intersect(a, b)",
"intersection = np.common(a, b)",
"intersection = np.intersect1d(a, b)",
"intersection = a.intersection(b)"
] |
k00474 | How can you compute the cumulative product of elements in a NumPy array arr? | [
"cumulative_product = np.prod(arr)",
"cumulative_product = arr.cumprod()",
"cumulative_product = np.multiply(arr)",
"cumulative_product = np.cumprod(arr)"
] |
k00475 | Write code to create a diagonal matrix from a 1D NumPy array arr. | [
"diagonal_matrix = np.diag(arr)",
"diagonal_matrix = np.diagonal(arr)",
"diagonal_matrix = np.create_diag(arr)",
"diagonal_matrix = arr.diag()"
] |
k00476 | What is the purpose of the np.clip() function in NumPy? | [
"Clips the array values to be within a specified range",
"Clips the array to its maximum value",
"Clips the array to its minimum value",
"Clips the array based on a boolean condition"
] |
k00477 | How can you calculate the element-wise square root of a NumPy array arr? | [
"np.sqrt(arr)",
"arr.sqrt()",
"np.square_root(arr)",
"arr.square_root()"
] |
k00478 | How can you extract all elements from a NumPy array arr that are greater than 10? | [
"filtered_elements = arr[arr > 10]",
"filtered_elements = np.extract(arr, arr > 10)",
"filtered_elements = np.filter(arr, arr > 10)",
"filtered_elements = arr.extract(arr > 10)"
] |
k00479 | How can you find the indices of the maximum value in a NumPy array arr? | [
"max_index = np.find_max_index(arr)",
"max_index = np.argmax(arr)",
"max_index = arr.max_index()",
"max_index = np.argmax(arr)"
] |
k00480 | How can you handle duplicate values in a Pandas DataFrame? | [
"Use the df.drop_duplicates() method",
"Use the df.remove_duplicates() method",
"Use the df.drop_duplicate_rows() method",
"Use the df.eliminate_duplicates() method"
] |
k00481 | Question: What does the np.zeros((3, 4)) function in NumPy do? | [
"Creates an array with ones",
"Creates an array with random values",
"Creates an array with zeros",
"Creates an identity matrix"
] |
k00482 | How can you access the element at the second row and third column of a 2D NumPy array arr? | [
"arr[1, 2]",
"arr[2, 3]",
"arr[1][2]",
"arr[2][3]"
] |
k00483 | How can you perform element-wise multiplication of two NumPy arrays a and b? | [
"a * b",
"np.multiply(a, b)",
"np.mult(a, b)",
"a.dot(b)"
] |
k00484 | What does the np.arange(5, 15, 2) function in NumPy do? | [
"Creates an array with values from 5 to 15",
"Creates an array with values from 5 to 14 with a step of 2",
"Creates an array with values from 5 to 15 with a step of 2",
"Creates an array with values from 5 to 14"
] |
k00485 | How can you find the mean of a NumPy array arr? | [
"arr.mean()",
"np.mean(arr)",
"mean(arr)",
"arr.average()"
] |
k00486 | What is the purpose of the np.reshape() function in NumPy? | [
"Changes the shape of an array",
"Transposes the array",
"Rotates the array",
"Inverts the array"
] |
k00487 | What is the shape of a 1D NumPy array with 5 elements? | [
"(1, 5)",
"(5,)",
"(5, 1)",
"(1,)"
] |
k00488 | What is the correct way to calculate the dot product of two NumPy arrays a and b? | [
"dot_product = a x b",
"dot_product = np.dot(a, b)",
"dot_product = a.dot(b)",
"dot_product = np.cross(a, b)"
] |
k00489 | How can you create a NumPy array from a Python list? | [
"np.array(list)",
"numpy(list)",
"array(list)",
"create.array(list)"
] |
k00490 | How can you perform a time-based resampling in Pandas? | [
"df.resample()",
"df.time_resample()",
"df.groupby(\"time_column\").resample()",
"df.time_groupby().resample()"
] |
k00491 | How can you reset the index of a Pandas DataFrame? | [
"df.reset_index()",
"df.set_index()",
"df.index_reset()",
"df.index_reset()"
] |
k00492 | What does the nunique() method in Pandas calculate? | [
"The number of non-null values",
"The number of unique values",
"The number of distinct groups",
"The number of unique rows"
] |
k00493 | What is the purpose of the melt() function in Pandas? | [
"To melt a DataFrame into a longer format",
"To create a melted cheese plot",
"To melt a DataFrame into a wider format",
"To melt a DataFrame into a binary format"
] |
k00494 | Question: How can you handle duplicate values in a Pandas DataFrame? | [
"Use the df.drop_duplicates() method",
"Use the df.remove_duplicates() method",
"Use the df.drop_duplicate_rows() method",
"Use the df.eliminate_duplicates() method"
] |
k00495 | What is the purpose of the head() method in Pandas? | [
"To display the last few rows of a DataFrame",
"To display the first few rows of a DataFrame",
"To display summary statistics of a DataFrame",
"To display summary statistics of a DataFrame"
] |
k00496 | How can you handle missing values in a Pandas DataFrame? | [
"Use df.fillna(value) to replace missing values",
"Use df.dropna() to remove rows with missing values",
"Both A and B",
"Neither A nor B"
] |
k00497 | How can you save a Pandas DataFrame to a CSV file? | [
"df.save_csv(\"filename.csv\")",
"df.write_csv(\"filename.csv\")",
"df.to_csv(\"filename.csv\")",
"df.export_csv(\"filename.csv\")"
] |
k00498 | Question: What does the nlargest() method in Pandas do? | [
"Returns the smallest values in a DataFrame",
"Returns the largest values in a DataFrame",
"Returns the smallest values in a column",
"Returns the largest values in a column"
] |
k00499 | What is the purpose of the pd.cut() function in Pandas? | [
"To cut a DataFrame into smaller pieces",
"To categorize continuous data into discrete bins",
"To remove duplicate values from a DataFrame",
"To concatenate DataFrames along a particular axis"
] |
k00500 | How can you filter rows in a DataFrame based on a condition? | [
"df.filter(condition)",
"df.select_rows(condition)",
"df[condition]",
"df.filter_rows(condition)"
] |