aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Basic Number Concepts
  • If x = 1, y = 2 and z = 0, then the value of 3(x.y + y.z ...
Multiple choice

If x = 1, y = 2 and z = 0, then the value of 3(x.y + y.z + x.z) + x is

  1. 2

  2. 6

  3. 4

  4. 7

  5. None of these

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

3{(x.y + y.z + x.z)} + 1 = 3{(1) (2) + (2) (0) + (1) (0)} + 1 = 3 X 2 + 1 = 6 + 1 = 7

Keep practicing — related questions

  • Which of the following are legal lines of code? 1. int w = (int)888.8; 2. byte x = (byte)1000L; 3. long y =...
  • What will be the output of the program? public class Switch2 { final static short x = 2; public static int ...
  • If 1 + 1 = 0 2 + 2 = 2 3 + 3 = 24, then 4 + 4 = ?
  • What will be the output of the program? class Test { public static void main(String [] args) { int x= 0; in...
  • switch(x) { default: System.out.println(Hello); } Which two are acceptable types for x? 1. byte 2. long 3. ...
  • public class Test2 { public static int x; public static int foo(int y) { return y * 2; } public static void...
  • Which three are valid method signatures in an interface? 1. private int getArea(); 2. public float getVol(f...
  • Consider the following array definition int ia[] = { 0, 1, 2, 3, 4, 5 }; What is the equivalent of the foll...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Algebraic Expressions (157 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy