FP - Topic 2 - Types, Operators and Expressions - Q2

FP - Topic 2 - Types, Operators and Expressions - Q2

University

24 Qs

quiz-placeholder

Similar activities

PYTHON REVISION

PYTHON REVISION

University

20 Qs

การเขียนโปรแกรมด้วย Python

การเขียนโปรแกรมด้วย Python

University

20 Qs

DBMS Relational Algebra & Calculus Quiz 4

DBMS Relational Algebra & Calculus Quiz 4

University

20 Qs

การเขียนโปรแกรมด้วย Python

การเขียนโปรแกรมด้วย Python

University

20 Qs

C++ Quiz

C++ Quiz

University

20 Qs

Chapter 4-Java Selection & Loops

Chapter 4-Java Selection & Loops

University

21 Qs

C Language Basics

C Language Basics

University

26 Qs

Demo Teaching

Demo Teaching

University

20 Qs

FP - Topic 2 - Types, Operators and Expressions - Q2

FP - Topic 2 - Types, Operators and Expressions - Q2

Assessment

Quiz

Computers

University

Hard

Created by

Thành Ngọc

FREE Resource

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output “1 plus 2 equal 3” and newline.

printf(" plus ");

printf("%d", a);

printf("%d plus %d equal %d\n", a, b, a+b);

printf("%d", b);

printf(" equal ");

2.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are types of operators in C?(Choose 3)
Arithmetic operators
Logical operators
Reference operators
Bitwise operators

3.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are valid arithmetic operators in C?(Choose 3)
+
-
&&
%

4.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following expressions will return 1 (true)?(Choose 2)
5 > 2
3 == 4
7 != 7
8 <= 9

5.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are bitwise operators?(Choose 3)
&
|
<<
&&

6.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are true about the unary operator in C?(Choose 2)
It operates on two operands.
It includes increment (++) and decrement (--) operators.
It requires parentheses to function.
It modifies the operand before or after its value is used in an expression.

7.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are valid binary operators in C?(Choose 2)
+
++
-
--

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?