logo

CuriousTab

CuriousTab

Discussion


Home Technical Questions Programming See What Others Are Saying!
  • Question
  • What is the output of this C code? #include void main() { int y = 3; int x = 5 % 2 * 3 / 2; printf("Value of x is %d", x); }


  • Options
  • A. Value of x is 1
  • B. Value of x is 2
  • C. Value of x is 3
  • D. Compile time error

  • Correct Answer
  • Value of x is 1 


  • More questions

    • 1. Would the following program compile? main() { int a = 10, *j; void *k; J = k = &a; J++; k++; printf ("\n%u %u", j, k); }
    • Discuss
    • 2. What would be the output of the following program? main() { char ch ='A'; printf ("%d%d", sizeof (ch), sizeof ('A')); }
    • Discuss
    • 3. What is the type of the algorithm used in solving the 8 Queens problem ?

    • Options
    • A. Dynamic Programming
    • B. BackTracking
    • C. Branch and Bound
    • D. None
    • Discuss
    • 4. The SQL statements that take care of security and authorization are

    • Options
    • A. DDL
    • B. DML
    • C. DCL
    • D. None
    • Discuss
    • 5. ON UPDATE CASCADE ensures which of the following?

    • Options
    • A. Normalization
    • B. Data Integrity
    • C. Materialized Views
    • D. All of the above.
    • Discuss
    • 6. A DBMS that combines a DBMS and an application generator is ________ .

    • Options
    • A. Microsoft's SQL Server
    • B. Microsoft's Access
    • C. IBM's DB2
    • D. Oracle Corporation's Oracle
    • Discuss
    • 7. A goal of data mining includes which of the following?

    • Options
    • A. To explain some observed event or condition
    • B. To analyze data for expected relationships
    • C. To confirm that data exists
    • D. To create a new data warehouse
    • Discuss
    • 8. ________ is an open source DBMS product that runs on UNIX, Linux and Windows.

    • Options
    • A. MySQL
    • B. JSP/SQL
    • C. JDBC/SQL
    • D. Sun ACCESS
    • Discuss
    • 9. Which of the following is the original purpose of SQL?

    • Options
    • A. To specify the syntax and semantics of SQL data definition language
    • B. To specify the syntax and semantics of SQL manipulation language
    • C. To define the data structures
    • D. All of the above.
    • Discuss
    • 10. If no multivalued attributes exist and no partial dependencies exist in a relation, then the relation is in what normal form?

    • Options
    • A. First normal form
    • B. Second normal form
    • C. Third normal form
    • D. Fourth normal form
    • Discuss


    Comments

    There are no comments.

Enter a new Comment