C Language: Decision Control - Online Test
Test Difficulty Level: Medium
Syllabus of Test
Computer Programming: Questions about C related to decision control structures.
Sample Question from this online test:
Question: main( )
{
int i = 5, j = -1, k = 0, y, z ;
y = i + 5 && j + 1 || k + 2 ;
z = i + 5 || j + 1 || k + 2 ;
printf ( "\ny = %d z = %d", y, z ) ;
}
Option A: 1 0
Option B: 0 1
Option C: 1 1
Option D: none
To answer, click the "Start This Test" button below.
Start this Test
Related Online Tests:
- Datatypes- The Building blocks
- Basics of C Test 2
- Basics of C Language:Test 2
- Basics of C Test 5
- C: Operators & Keywords
- C Language: Conditional Statements and Operators
- C Language: Introductory Test
- C Language: Introductory Test 2
- C Language: Arithmatic Operations and Data Types
- Basics of C language: Test 7
Comments
![]() | Rajat Jindal on 2011-08-22 02:45:34 wrote, answer of 20 no qustion is wrong i think it should be error.... |
![]() | karthik ravi on 2011-10-19 03:48:19 wrote, C language: decision control ==> |

