{"id":180971,"date":"2025-01-09T09:06:27","date_gmt":"2025-01-09T09:06:27","guid":{"rendered":"https:\/\/learnexams.com\/blog\/?p=180971"},"modified":"2025-01-09T09:06:29","modified_gmt":"2025-01-09T09:06:29","slug":"which-from-the-following-is-not-a-maths-functions","status":"publish","type":"post","link":"https:\/\/www.learnexams.com\/blog\/2025\/01\/09\/which-from-the-following-is-not-a-maths-functions\/","title":{"rendered":"Which from the following is not a maths functions"},"content":{"rendered":"\n<p>Which from the following is not a maths functions? *<\/p>\n\n\n\n<p>a. exp()<\/p>\n\n\n\n<p>b. time ()<\/p>\n\n\n\n<p>c. log ()<\/p>\n\n\n\n<p>d. pow ().<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>What is the output of below program?<br>main() {<br>int a = 10;<br>cout<br>}<\/li>\n<\/ol>\n\n\n\n<p>a. 11<\/p>\n\n\n\n<p>b. 10<\/p>\n\n\n\n<p>c. 12<\/p>\n\n\n\n<p>d. Not defined<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>What should be passed in parameters when function does not require any parameters? *<\/li>\n<\/ol>\n\n\n\n<p>a. tab space<\/p>\n\n\n\n<p>b. blank space<\/p>\n\n\n\n<p>c. void<\/p>\n\n\n\n<p>d. both void &amp; blank space<\/p>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-6-color\"><strong>The Correct Answer and Explanation is :<\/strong><\/mark><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Which from the following is not a math function?<\/h3>\n\n\n\n<p><strong>Answer: b. time()<\/strong><\/p>\n\n\n\n<p>Explanation:<br>Math functions typically perform mathematical operations, such as logarithms, exponentiation, or power. The options provided are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>exp()<\/strong>: A mathematical function that calculates the exponential value of a number (e^x).<\/li>\n\n\n\n<li><strong>log()<\/strong>: A mathematical function that computes the natural logarithm (log base e) of a number.<\/li>\n\n\n\n<li><strong>pow()<\/strong>: A mathematical function that returns the value of a number raised to a specified power.<\/li>\n<\/ul>\n\n\n\n<p>However, the <strong>time()<\/strong> function is not a math function; it is typically used in programming (e.g., C, Python) to get the current system time or calculate the elapsed time.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. What is the output of the below program?<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>main() {\n    int a = 10;\n    cout &lt;&lt; a;\n}<\/code><\/pre>\n\n\n\n<p><strong>Answer: b. 10<\/strong><\/p>\n\n\n\n<p>Explanation:<br>In the given code snippet, a variable <code>a<\/code> is initialized with the value <code>10<\/code>. The <code>cout<\/code> statement is used to print the value of <code>a<\/code>. Since no modification is made to <code>a<\/code> in the code, the output will simply display the value of <code>a<\/code>, which is <strong>10<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. What should be passed in parameters when a function does not require any parameters?<\/h3>\n\n\n\n<p><strong>Answer: c. void<\/strong><\/p>\n\n\n\n<p>Explanation:<br>In programming, when defining a function, the parameter list defines what values (if any) the function expects when it is called. If a function does not require any parameters, the following options are valid:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>void<\/strong>: The <code>void<\/code> keyword is used in the function definition to indicate that the function does not expect any arguments. This means the function does not require parameters to be passed when called.<\/li>\n\n\n\n<li><strong>blank space<\/strong>: This is not a valid choice for function parameters. An empty parameter list is represented by <code>void<\/code> in many programming languages (e.g., C, C++, Java).<\/li>\n\n\n\n<li><strong>tab space<\/strong>: A tab space is not used in function parameters; it is just a formatting tool to make code more readable.<\/li>\n<\/ul>\n\n\n\n<p>The correct answer is <strong>void<\/strong>, because it explicitly indicates that the function does not expect parameters.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void myFunction() {\n    cout &lt;&lt; \"This function does not take parameters.\";\n}<\/code><\/pre>\n\n\n\n<p>In this function, <code>void<\/code> indicates that <code>myFunction()<\/code> does not take any parameters when called.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Which from the following is not a maths functions? * a. exp() b. time () c. log () d. pow (). a. 11 b. 10 c. 12 d. Not defined a. tab space b. blank space c. void d. both void &amp; blank space The Correct Answer and Explanation is : 1. Which from the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25],"tags":[],"class_list":["post-180971","post","type-post","status-publish","format-standard","hentry","category-exams-certification"],"_links":{"self":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/180971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/comments?post=180971"}],"version-history":[{"count":0,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/posts\/180971\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/media?parent=180971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/categories?post=180971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.learnexams.com\/blog\/wp-json\/wp\/v2\/tags?post=180971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}