Round1

Round1

University

25 Qs

quiz-placeholder

Similar activities

DPSD QUIZ 1

DPSD QUIZ 1

University

20 Qs

Fundamentals of C Programming

Fundamentals of C Programming

University

20 Qs

C Programming Fundamentals Assessment

C Programming Fundamentals Assessment

University

20 Qs

C Programming Quiz

C Programming Quiz

University

25 Qs

NEXUS'25

NEXUS'25

University

20 Qs

Pemograman (PAM)

Pemograman (PAM)

11th Grade - University

25 Qs

CIPHER QUEST ROUND 1 SET 1

CIPHER QUEST ROUND 1 SET 1

University

25 Qs

Aptitude and OOP Concepts Assessment

Aptitude and OOP Concepts Assessment

University

20 Qs

Round1

Round1

Assessment

Quiz

Engineering

University

Medium

Created by

Pavan Reddy

Used 11+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Guess the output of following C code

int x=10;

printf(x);

10

x

no output

compile error

2.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What will be the output of the following C code?

int a=5, b=10;

printf("%d", a+b);

15

510

5+10

compile error

3.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Identify the output of this C code snippet:

char c='A';

printf("%c", c+1);

B

A

compile error

no output

4.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What will be printed by the following C code?

float f=3.14;

printf("%.1f", f);

3.1

3.14

3.140

compile error

5.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Which of the following is a valid data type in C?

String

char

boolean

list

6.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What does the if statement do in C?

Executes a block of code repeatedly

Executes a block of code only if a specified condition is true

Exits a loop

Declares a function

7.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What is the output of print(10 // 3) in Python?

3.33

3

3.0

4

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?