C- Geniusia

C- Geniusia

University

25 Qs

quiz-placeholder

Similar activities

GNIDOC ROUND 1

GNIDOC ROUND 1

University

25 Qs

C-Programming

C-Programming

University

30 Qs

Unit-2 Test-1

Unit-2 Test-1

University

20 Qs

Computer Fundamental and C Programming  Concept

Computer Fundamental and C Programming Concept

University

20 Qs

C PROGRAMMING

C PROGRAMMING

University

25 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

Pointers

Pointers

University

20 Qs

String in C Programming

String in C Programming

University

26 Qs

C- Geniusia

C- Geniusia

Assessment

Quiz

Computers

University

Hard

Created by

Sanjeevrajan . E

Used 2+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one in this code is literal?

int age = 25;

int

int age

25

=

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to get input from user?

scanf ("%d", &var)

printf("%d", var)

printf (var)

scanf("%d", var)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Format specifier for double:

%d

%c

%f

%lf

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the code?

#include<stdio.h>

intmain() {

int x=10;

printf("%d", x) ;

x=x+10;

printf("%d", x) ;

}

10 10

10 0

0 10

10 20

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of variable x?

int = x;

float a=x;

Integer

Float

Both Integer and float

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int a = 5;

printf("%d\n", a > -1);

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to represent logical AND operator in C?

And

and

&&

&

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?