C-Programming Flashcards

1
Q

ASCII of A-Z

A

65-90

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ASCII of a-z is

A

97-122

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The output window of c prigram is

A

80 cols x 25 rows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is expression in clang?

A

Any statement that has value associated with it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Assignment has associativity

A

Right to left

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What must be the datype when % is used?

A

Both nume and denomi must be type int else error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Priority of relational operators

A

«=»= high
== != low

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Return types of scanf function

A

0 -if no matching input scanned
-1 if any exit key clicked in terminal
>0 no of values successfully copied into their variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Left shift of a is

A

a x 2^n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Right shift if a is

A

a/2^n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

~a=?

A

-(a+1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

~a=?

A

-(a+1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Size of operator takes input

A

Variable,expression,literal,datatype

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

in most compilers the evaluation of printf statement is from

A

right to left

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can the if condition be empty

A

No never it should not be empty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Can there be any statement between if and else?

A

No neber

17
Q

All the 3 expressions in a for loop can be

A

Empty,if exp2 (condition) not specified it is assumed to be true

18
Q

The sign of the modulo operator is

A

The sign of first operand

19
Q

is it mandatory to specify the condition in the while loop

A

Yes ,true