Semicolon Dotcom

Semicolon Dotcom

Share

Empowering Dreams, Navigating Careers: Your Path to CSE Success in BD!

12/12/2023

পৃথিবীতে অনেকের সাথেই আমাদের শেষ দেখা হয়ে গেছে। আমরা জানিই না।
সেই যে ঘর ছেড়েছি। তারপর কত আপন জন, কাছের জন আমাদের চির বিদায় দিয়ে চলে গেছে আমরা জানিও না।
ছোট বেলা থেকে কোলে পিঠে করে যারা আদর ভালোবাসা দিয়ে বড় করেছে অনেকের সাথেই শেষ দেখা আর হলো না।
অনেক সময় রক্তের সম্পর্কের চেয়েও বড় সম্পর্ক থাকে।
কাছের মানুষোগুলোর সাথে শেষ দেখা হয়ে গেছে কি না জানি না।

24/11/2023

কিছুদিন যাবত এ ধরনের এসএমএস আসতেছে। এ ধরনের লিংক থেকে সচেতন এবং সাবধানে থাকবেন।

সচেতন হোন এবং এ ধরনের লিঙ্কে ক্লিক করা থেকে বিরত থাকুন - 🚫

" Dear You passed the interview. An advantage of 2,000 TK can be received everyday......... "
ফোনে এ ধরনের Smishing আসলে তা থেকে সাবধান হোন।
শুধু এটা নয় যেকোনো প্রকার অজানা লিঙ্কে ক্লিক করা থেকে বিরত থাকুন !

04/10/2023

সাম্প্রতিক (আন্তর্জাতিক বিষয়াবলি)

24/09/2023

Determine Output:
void main()
{
int i=3;
switch(i)
{
default: printf("zero");
case 1: printf("one"); break;
case 2: printf("two"); break;
case 3: printf("three"); break;
}
}
A. zero B. three
C. Error D. None of These
Answer: Option B
Solution (By Examveda Team)
The default case can be placed anywhere inside the loop. It is executed only when all other cases doesn't match.

24/09/2023

09. Determine Output:
int char
void main()
{
int i = 65;
printf("sizeof(i)=%d", sizeof(i));
}
A. sizeof(i)=2 B. sizeof(i)=1
C. Compiler Error D. None of These
Answer: Option B
Solution (By Examveda Team)
Since the replaces the string int by the macro char.

24/09/2023

08. Determine Output:
void main()
{
int c = - -2;
printf("c=%d", c);
}
A. 1 B. -2 C. 2 D. Error
Answer: Option C
Solution (By Examveda Team)
Here unary minus (or negation) operator is used twice. Same maths rule applies, ie. minus * minus= plus.
Note: However you cannot give like --2. Because -- operator can only be applied to variables as a decrement operator (eg., i--). 2 is a constant and not a variable.

24/09/2023

07. Determine Output:
void main()
{
int i=10;
i=!i>14;
printf("i=%d", i);
}
A. 10 B. 14 C. 0 D. 1
Answer: Option C
Solution (By Examveda Team)
In the expression !i>14 , NOT (!) operator has more precedence than ">" symbol. ! is a unary logical operator. !i (!10) is 0 (not of true is false). 0>14 is false (zero).

24/09/2023

06. Determine the Final Output:
void main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}
A. absiha B. asiha C. haasi D. hai
Answer: Option D
Solution (By Examveda Team)
\n - newline - printf("\nab"); - Prints ab
\b - backspace - printf("\bsi"); - firstly '\b' removes 'b' from 'ab ' and then prints 'si'. So after ex*****on of printf
n - newline - printf("nab"); - Prints "ab"
b - backspace - firstly 'b' removes 'b' from 'ab ' and then prints 'asi'.
r - currsor point to start and then "ha" overrides "as" and then print "hai"

24/09/2023

05. Determine Output:
void main()
{
char *p;
printf("%d %d", sizeof(*p), sizeof(p));
}
A. 1 1 B. 1 2 C. 2 1 D. 2 2

Answer: Option B
Solution (By Examveda Team)
The sizeof() operator gives the number of bytes taken by its operand. P is a character pointer, which needs one byte for storing its value (a character). Hence sizeof(*p) gives a value of 1. Since it needs two bytes to store the address of the character pointer sizeof(p) gives 2.

24/09/2023

04. Determine Output:
void main()
{
static int var = 5;
printf("%d ", var--);
if(var)
main();
}
A. 5 5 5 5 5 B. 5 4 3 2 1
C. Infinite Loop D. None of These
Answer: Option B
Solution (By Examveda Team)
When static storage class is given, it is initialized once. The change in the value of a static variable is retained even between the function calls. Main is also treated like any other ordinary function, which can be called recursively.

Want your school to be the top-listed School/college in sadar?

Click here to claim your Sponsored Listing.

Location

Telephone

Website

Address

Gazipur Sadar
Sadar
1700