{"id":2573,"date":"2021-08-27T00:27:57","date_gmt":"2021-08-27T00:27:57","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=2573"},"modified":"2021-09-20T10:47:56","modified_gmt":"2021-09-20T10:47:56","slug":"what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/","title":{"rendered":"What will the output of the following code statements be ? Integer x = 34.54, y = 20, z = -5 print (y > 50 AND z > 10 or x > 30)"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<p class=\"color-pink\">What will the output of the following code statements be ?<br \/>\nInteger x = 34.54, y = 20, z = -5 print (y > 50 AND z > 10 or x > 30) ?<\/p>\n<div class=\"row\">\n<div class=\"col-sm-6\">\n<p>A. 0<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>B. 1<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>C. -1<\/p>\n<\/div>\n<div class=\"col-sm-6\">\n<p>D. 10<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 id=\"answer-b-1\"><b>Answer :\u00a0<\/b>B. 1<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Answer :\u00a0B. 1<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15949],"tags":[16090,16519,16081,16087,16085,16078,16082,16084,16080,16086,16033,16079,16089,16088,16083],"class_list":["post-2573","post","type-post","status-publish","format-standard","hentry","category-programming","tag-amcat-computer-programming-questions-and-answers","tag-amcat-question-papers-with-answers","tag-basic-computer-science-interview-questions","tag-computer-programming-exam-questions","tag-computer-programming-questions-and-answers","tag-computer-science-multiple-choice-questions-with-answers","tag-computer-science-multiple-choice-questions-with-answers-doc","tag-computer-science-objective-questions-for-competitive-exams","tag-computer-science-quiz-questions-with-answers","tag-general-programming-quiz","tag-interview-questions-to-ask-a-computer-programmer","tag-multiple-choice-questions-in-computer-science","tag-programming-languages-quiz-questions-and-answers","tag-programming-quiz-java","tag-technical-aptitude-questions-with-answers-for-computer-science"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What will the output of the following code - x = 34.54, y = 20, z = -5<\/title>\n<meta name=\"description\" content=\"Programming - What will the output of the following code - This is the programming questions and answers with explanations for various interview, entrance test\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What will the output of the following code - x = 34.54, y = 20, z = -5\" \/>\n<meta property=\"og:description\" content=\"Programming - What will the output of the following code - This is the programming questions and answers with explanations for various interview, entrance test\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-27T00:27:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-20T10:47:56+00:00\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"What will the output of the following code statements be ? Integer x = 34.54, y = 20, z = -5 print (y > 50 AND z > 10 or x > 30)\",\"datePublished\":\"2021-08-27T00:27:57+00:00\",\"dateModified\":\"2021-09-20T10:47:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\\\/\"},\"wordCount\":52,\"commentCount\":0,\"keywords\":[\"amcat computer programming questions and answers\",\"AMCAT Question Papers with Answers\",\"basic computer science interview questions\",\"computer programming exam questions\",\"computer programming questions and answers\",\"computer science multiple choice questions with answers\",\"computer science multiple choice questions with answers doc\",\"computer science objective questions for competitive exams\",\"computer science quiz questions with answers\",\"general programming quiz\",\"interview questions to ask a computer programmer\",\"multiple choice questions in computer science\",\"programming languages quiz questions and answers\",\"programming quiz java\",\"technical aptitude questions with answers for computer science\"],\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\\\/\",\"name\":\"What will the output of the following code - x = 34.54, y = 20, z = -5\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"datePublished\":\"2021-08-27T00:27:57+00:00\",\"dateModified\":\"2021-09-20T10:47:56+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Programming - What will the output of the following code - This is the programming questions and answers with explanations for various interview, entrance test\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/programming\\\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What will the output of the following code - x = 34.54, y = 20, z = -5","description":"Programming - What will the output of the following code - This is the programming questions and answers with explanations for various interview, entrance test","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/","og_locale":"en_US","og_type":"article","og_title":"What will the output of the following code - x = 34.54, y = 20, z = -5","og_description":"Programming - What will the output of the following code - This is the programming questions and answers with explanations for various interview, entrance test","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/","og_site_name":"Wikitechy","article_published_time":"2021-08-27T00:27:57+00:00","article_modified_time":"2021-09-20T10:47:56+00:00","author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"What will the output of the following code statements be ? Integer x = 34.54, y = 20, z = -5 print (y > 50 AND z > 10 or x > 30)","datePublished":"2021-08-27T00:27:57+00:00","dateModified":"2021-09-20T10:47:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/"},"wordCount":52,"commentCount":0,"keywords":["amcat computer programming questions and answers","AMCAT Question Papers with Answers","basic computer science interview questions","computer programming exam questions","computer programming questions and answers","computer science multiple choice questions with answers","computer science multiple choice questions with answers doc","computer science objective questions for competitive exams","computer science quiz questions with answers","general programming quiz","interview questions to ask a computer programmer","multiple choice questions in computer science","programming languages quiz questions and answers","programming quiz java","technical aptitude questions with answers for computer science"],"articleSection":["Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/","name":"What will the output of the following code - x = 34.54, y = 20, z = -5","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-08-27T00:27:57+00:00","dateModified":"2021-09-20T10:47:56+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Programming - What will the output of the following code - This is the programming questions and answers with explanations for various interview, entrance test","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/programming\/what-will-the-output-of-the-following-code-statements-be-integer-x-34-54-y-20-z-5-print-y-50-and-z-10-or-x-30\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=2573"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2573\/revisions"}],"predecessor-version":[{"id":2686,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/2573\/revisions\/2686"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=2573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=2573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=2573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}